chore add core rust project files and diesel migrations
Track required workspace crates, scripts, and historical diesel migrations so the repository contains the complete runnable backend baseline. Made-with: Cursor
This commit is contained in:
@@ -0,0 +1 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
@@ -0,0 +1,22 @@
|
||||
-- Your SQL goes here
|
||||
create table kecheng_repeat
|
||||
(
|
||||
id varchar not null
|
||||
primary key
|
||||
unique,
|
||||
kecheng_root_id varchar not null,
|
||||
kecheng_id varchar not null,
|
||||
kecheng_type varchar,
|
||||
start_from timestamp,
|
||||
end_by timestamp,
|
||||
repeat_start timestamp
|
||||
);
|
||||
|
||||
comment on column kecheng_repeat.kecheng_type is 'STUDENT或者TEACHER';
|
||||
|
||||
comment on column kecheng_repeat.start_from is '课程当天开始时间';
|
||||
|
||||
comment on column kecheng_repeat.end_by is '课程的当天结束时间';
|
||||
|
||||
comment on column kecheng_repeat.repeat_start is '不需要`repeat_end`了,因为同一组`kecheng_root_id`的数据按照`repeat_start`时间排列,后一个就是前一个的end时间。';
|
||||
|
||||
Reference in New Issue
Block a user