-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add subject template group api (#273)
- Loading branch information
Showing
554 changed files
with
52,794 additions
and
25,876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE `bkiam`.`subject_template_group` ( | ||
`pk` int(10) unsigned NOT NULL AUTO_INCREMENT, | ||
`subject_pk` int(10) unsigned NOT NULL, | ||
`template_id` int(10) unsigned NOT NULL, | ||
`group_pk` int(10) unsigned NOT NULL, | ||
`expired_at` int(10) unsigned NOT NULL, | ||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`pk`), | ||
UNIQUE KEY `idx_uk_subject_template_group` (`subject_pk`,`group_pk`,`template_id`), | ||
INDEX `idx_group_template_subject` (`group_pk`, `template_id`,`subject_pk`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
Oops, something went wrong.