Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
scmet committed Apr 26, 2024
1 parent 4b86b4c commit 5aa8d04
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
BEGIN;


CREATE TABLE IF NOT EXISTS `fbs`.`group` (
`group_id` INT NOT NULL AUTO_INCREMENT,
`course_id` INT NOT NULL,
`name` VARCHAR(100) NOT NULL,
`membership` INT NOT NULL,
`visible` TINYINT(1) NOT NULL DEFAULT 1,
PRIMARY KEY (`group_id`),
FOREIGN KEY (`course_id`) REFERENCES `fbs`.`course`(`course_id`),
UNIQUE INDEX `groups_groupid_courseid_uindex` (`group_id`, `course_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;

INSERT INTO migration (number) VALUES (20);

COMMIT;


0 comments on commit 5aa8d04

Please sign in to comment.