This commit is contained in:
@@ -97,6 +97,15 @@ type AttendanceResult struct {
|
||||
|
||||
func (AttendanceResult) TableName() string { return "attendance_results" }
|
||||
|
||||
// ClassSeatingLayout lưu sơ đồ chỗ ngồi theo lớp
|
||||
type ClassSeatingLayout struct {
|
||||
ClassRkID int64 `gorm:"column:class_rk_id;primaryKey;not null" json:"classRkId"`
|
||||
LayoutJSON string `gorm:"column:layout_json;type:longtext;not null" json:"layoutJson"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
func (ClassSeatingLayout) TableName() string { return "class_seating_layouts" }
|
||||
|
||||
// ClassAllowedApp lưu từ khóa app được mở của lớp
|
||||
type ClassAllowedApp struct {
|
||||
ClassRkID int64 `gorm:"column:class_rk_id;primaryKey;not null" json:"classRkId"`
|
||||
|
||||
@@ -38,6 +38,14 @@ type PasswordResetToken struct {
|
||||
|
||||
func (PasswordResetToken) TableName() string { return "password_reset_tokens" }
|
||||
|
||||
// StaffMyClass lưu danh sách lớp học cá nhân của giáo viên
|
||||
type StaffMyClass struct {
|
||||
StaffID uint `gorm:"column:staff_id;primaryKey;not null;index" json:"staffId"`
|
||||
ClassRkID int64 `gorm:"column:class_rk_id;primaryKey;not null" json:"classRkId"`
|
||||
}
|
||||
|
||||
func (StaffMyClass) TableName() string { return "staff_my_classes" }
|
||||
|
||||
// ChatMessage — tin nhắn thầy cô ↔ sinh viên
|
||||
type ChatMessage struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
|
||||
Reference in New Issue
Block a user