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:
2026-04-23 17:20:01 +08:00
parent c843fecbce
commit 44c320d8fa
392 changed files with 11786 additions and 0 deletions
@@ -0,0 +1 @@
-- This file should undo anything in `up.sql`
@@ -0,0 +1,18 @@
-- Your SQL goes here
alter table kecheng
rename column group_id to kecheng_teacher_id;
alter table kecheng
alter column kecheng_teacher_id set not null;
alter table kecheng
drop column teacher_id;
alter table kecheng
rename to kecheng_student;
alter table kecheng_student
add constraint kecheng_student_kecheng_teacher_id_fk
foreign key (kecheng_teacher_id) references kecheng_teacher;