feat(课堂看板): 「这节课」写上是哪位老师布置的,别的老师改题也不换人
Deploy / deploy (push) Canceled after 0s

看板题号后面从「09:56 布置」变成「09:56 徐越 布置」,老师首页「今天的课」同样带上名字。
老师写真名(用户名 lwp0201、little 认不出是谁),没填真名的退回用户名。
「改」不再覆盖 created_by,和布置时间一样认第一次布置的人。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-20 09:56:46 +08:00
1 parent 3fa897bec1
commit df152f505d
5 files changed
+21 -4

No files matched your search

+1
View File
@@ -1431,6 +1431,7 @@ export const classLesson = pgTable(
* 没有它。写入侧在 PUT /classroom/lesson 按 lessonLanguageSchema 校验过
*/
language: text().$type<LessonLanguage>(),
/** 这天第一次布置的老师,别的老师「改」也不换(和 createdAt 一样)。看板上写「HH:mm 谁 布置」 */
createdBy: integer("created_by").notNull(),
/**
* 这天第一次布置的时刻,之后「改」只动 updatedAt。清掉(删行)再布置算重新开始。