Skip to content

Commit

Permalink
feat: add subject_template_group create table sql
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu327 committed Oct 25, 2023
1 parent d73b1b3 commit 0b2ef56
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 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,11 @@
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`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

0 comments on commit 0b2ef56

Please sign in to comment.