Files
huike-back/htykc_models/migrations/2026-04-27-100000_add_clazz_completed_at/up.sql
T
weli 0e53c9f66d feat(htykc): clazz completed_at migration; logrotate for htykc/htyproc/htyts
Portable run_rotate; moicen_start_huiwings_stack and ws_clazz updates; schema/models sync.

Made-with: Cursor
2026-04-26 17:14:44 +08:00

8 lines
351 B
SQL

-- 业务「已结课」:首次点名落库时间;清空出勤后回到 NULL。与 start_from/end_by 日历态互补。
ALTER TABLE clazz
ADD COLUMN completed_at TIMESTAMP NULL;
COMMENT ON COLUMN clazz.completed_at IS
'首次批量保存出勤且存在有效行时写入;出勤被清空则置 NULL。NULL 表示业务上未结课。';