up
This commit is contained in:
@@ -82,6 +82,15 @@ type TabWarehouseItemCustomerBind struct {
|
|||||||
CreatedAt *time.Time `gorm:"type:datetime;autoCreateTime"`
|
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() {
|
func BindsInit() {
|
||||||
models.DB.AutoMigrate(
|
models.DB.AutoMigrate(
|
||||||
&TabPurchaseFileBind{},
|
&TabPurchaseFileBind{},
|
||||||
@@ -93,6 +102,7 @@ func BindsInit() {
|
|||||||
&TabWorkOrderPurchaseOrderBind{},
|
&TabWorkOrderPurchaseOrderBind{},
|
||||||
&TabWorkOrderCustomerBind{},
|
&TabWorkOrderCustomerBind{},
|
||||||
&TabWarehouseItemCustomerBind{},
|
&TabWarehouseItemCustomerBind{},
|
||||||
|
&TabCalendarEventUserBind{},
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user