1234567891011121314151617181920212223242526272829 |
- package models
- import (
- "gorm.io/datatypes"
- )
- type Warehouse struct {
- Id int `gorm:"column:id" json:"id"`
- CreatedTime MyTime `gorm:"column:created_time" json:"createdTime"`
- CreatedBy int `gorm:"column:created_by" json:"createdBy"`
- UpdatedTime MyTime `gorm:"column:updated_time" json:"updatedTime"`
- UpdatedBy int `gorm:"column:updated_by" json:"updatedBy"`
- DeletedTime MyTime `gorm:"column:deleted_time" json:"deletedTime"`
- DeletedBy int `gorm:"column:deleted_by" json:"deletedBy"`
- Deleted int `gorm:"column:deleted" json:"deleted"`
- Pid int `gorm:"column:pid" json:"pid"`
- Name string `gorm:"column:name" json:"name"`
- SnCode string `gorm:"column:sn_code" json:"snCode"`
- Capacity int `gorm:"column:capacity" json:"capacity"`
- ManagerUuid datatypes.JSON `gorm:"column:manager_uuid" json:"managerUuid"`
- Address string `gorm:"column:address" json:"address"`
- Enable int `gorm:"column:enable" json:"enable"`
- }
- func (*Warehouse) TableName() string {
- return "warehouse"
- }
|