From c7ee091ad18e29ca3ab8bad7533ae7fb78202815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=87=E5=B3=B0?= Date: Wed, 6 May 2026 22:31:26 +0800 Subject: [PATCH] up --- backend/my_work/routers/binds.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backend/my_work/routers/binds.go b/backend/my_work/routers/binds.go index e5199b3..86f6976 100644 --- a/backend/my_work/routers/binds.go +++ b/backend/my_work/routers/binds.go @@ -82,6 +82,15 @@ type TabWarehouseItemCustomerBind struct { CreatedAt *time.Time `gorm:"type:datetime;autoCreateTime"` } +// TabCalendarEventUserBind 日程与用户关联表(日程分配给的用户) +type TabCalendarEventUserBind struct { + ID uint `gorm:"primarykey"` + EventID uint `gorm:"not null;index;comment:关联日程ID"` + UserID uint `gorm:"not null;index;comment:关联用户ID"` + CreatorID uint `gorm:"not null;comment:分配人id"` + CreatedAt *time.Time `gorm:"type:datetime;autoCreateTime"` +} + func BindsInit() { models.DB.AutoMigrate( &TabPurchaseFileBind{}, @@ -93,6 +102,7 @@ func BindsInit() { &TabWorkOrderPurchaseOrderBind{}, &TabWorkOrderCustomerBind{}, &TabWarehouseItemCustomerBind{}, + &TabCalendarEventUserBind{}, ) }