Files
huike-back/htyws_models/migrations/2022-09-25-161509_add_kecheng_repeat/up.sql
T
weli 44c320d8fa 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
2026-04-23 17:20:01 +08:00

23 lines
747 B
SQL

-- 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时间。';