2021-09-28 11:47:19 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
type SysTenant struct {
|
|
|
|
Model
|
|
|
|
ParentID uint64 `gorm:"column:parent_id;type:int;default:0;comment:父级ID" json:"-"`
|
|
|
|
Image
|
2021-10-08 17:33:19 +08:00
|
|
|
Name string `gorm:"column:name;type:varchar(30);default:null;comment:名称" json:"name"`
|
|
|
|
Code string `gorm:"column:code;type:varchar(30);default:null;comment:信用代码" json:"code"`
|
|
|
|
Images
|
|
|
|
Area
|
|
|
|
Position string `gorm:"column:position;type:varchar(255);default:null;comment:坐标" json:"-"`
|
|
|
|
Industry uint64 `gorm:"column:industry;type:int(11);default:0;comment:所属领域" json:"industry"`
|
|
|
|
Introduce string `gorm:"column:introduce;type:text;comment:介绍描述" json:"introduce"`
|
|
|
|
Config string `gorm:"column:config;type:varchar(255);default:null;comment:配置信息" json:"-"`
|
2021-09-28 11:47:19 +08:00
|
|
|
ModelDeleted
|
|
|
|
ModelAt
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SysTenant) TableName() string {
|
|
|
|
return "sys_tenant"
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewSysTenant() *SysTenant {
|
|
|
|
return &SysTenant{}
|
|
|
|
}
|