工单可以关联客户

This commit is contained in:
2026-04-29 14:52:42 +08:00
parent dc6e423299
commit af5dc954e3
17 changed files with 1993 additions and 83 deletions
+10
View File
@@ -56,6 +56,15 @@ type TabWorkOrderPurchaseOrderBind struct {
CreatedAt *time.Time `gorm:"type:datetime;autoCreateTime"`
}
// TabWorkOrderCustomerBind 工单与客户关联表
type TabWorkOrderCustomerBind struct {
ID uint `gorm:"primarykey"`
WorkOrderID uint `gorm:"not null;index;comment:关联工单ID"`
CustomerID uint `gorm:"not null;index;comment:关联客户ID"`
CreatorID uint `gorm:"not null;comment:绑定人id"`
CreatedAt *time.Time `gorm:"type:datetime;autoCreateTime"`
}
type TabWarehouseContainerFileBind struct {
ID uint `gorm:"primaryKey"`
ContainerID uint `gorm:"not null;index;comment:关联容器id"`
@@ -73,6 +82,7 @@ func BindsInit() {
&TabWorkOrderFileBind{},
&TabWorkOrderCommitFileBind{},
&TabWorkOrderPurchaseOrderBind{},
&TabWorkOrderCustomerBind{},
)
}