Files
huike-back/htyws_models/migrations/2022-08-07-143009_add_kecheng_tbl/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
515 B
SQL

-- Your SQL goes here
create table kecheng
(
id varchar not null,
group_id varchar,
kecheng_name varchar not null,
kecheng_desc varchar,
teacher_id varchar not null,
student_id varchar not null,
start_from timestamp not null,
end_by timestamp not null,
kecheng_status varchar not null
);
create unique index kecheng_id_uindex
on kecheng (id);
alter table kecheng
add constraint kecheng_pk
primary key (id);