From c514348b1bdae99301988f1cf9656cc60766358a Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Mon, 1 May 2023 00:56:24 +0800 Subject: [PATCH] Updated init.sql --- sql/init.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sql/init.sql b/sql/init.sql index 08fb3b3..a7ddcac 100644 --- a/sql/init.sql +++ b/sql/init.sql @@ -316,5 +316,7 @@ create table `t_attendance` `modify_id` bigint not null comment '修改人', `modify_time` datetime not null default CURRENT_TIMESTAMP comment '修改时间', `deleted` int not null default 0, - `version` int not null default 0 + `version` int not null default 0, + constraint t_attendance_user_id_fk foreign key (user_id) references t_user(id), + constraint t_attendance_modify_id_fk foreign key (modify_id) references t_user(id) ) comment '考勤'; \ No newline at end of file