2021-09-28 11:47:19 +08:00
|
|
|
package model
|
|
|
|
|
2022-01-05 16:09:55 +08:00
|
|
|
// SysTenant 租户数据管理模型
|
2021-09-28 11:47:19 +08:00
|
|
|
type SysTenant struct {
|
|
|
|
Model
|
2022-01-05 16:09:55 +08:00
|
|
|
Key string `gorm:"column:key;type:varchar(30);default:'';comment:key" json:"key"`
|
|
|
|
Name string `gorm:"column:name;type:varchar(30);default:'';comment:名称" json:"name"`
|
|
|
|
Contact string `gorm:"column:contact;type:varchar(30);default:'';comment:联系人" json:"contact"`
|
|
|
|
ContactMobile string `gorm:"column:contact_mobile;type:varchar(15);default:'';comment:联系方式" json:"contact_mobile"`
|
2021-10-08 17:33:19 +08:00
|
|
|
Area
|
2022-01-10 17:43:43 +08:00
|
|
|
Domain string `gorm:"column:domain;type:varchar(255);default:'';comment:域名地址" json:"domain"`
|
2022-01-05 16:09:55 +08:00
|
|
|
Remark string `gorm:"column:remark;type:varchar(255);default:'';comment:备注信息" json:"remark"`
|
2021-09-28 11:47:19 +08:00
|
|
|
ModelDeleted
|
|
|
|
ModelAt
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SysTenant) TableName() string {
|
|
|
|
return "sys_tenant"
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewSysTenant() *SysTenant {
|
|
|
|
return &SysTenant{}
|
|
|
|
}
|