Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add subject template group api #273

Merged
merged 11 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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