Skip to content

Commit

Permalink
feat: add subject template group api (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu327 committed Nov 30, 2023
1 parent 2fcb542 commit a932930
Show file tree
Hide file tree
Showing 554 changed files with 52,794 additions and 25,876 deletions.
12 changes: 12 additions & 0 deletions build/support-files/sql/0031_iam_20231025-1600_mysql.sql
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;
Loading

0 comments on commit a932930

Please sign in to comment.