25 lines
949 B
Go
25 lines
949 B
Go
package model
|
|
|
|
// SysTenant 租户数据管理模型
|
|
type SysTenant struct {
|
|
Model
|
|
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"`
|
|
Area
|
|
Domain string `gorm:"column:domain;type:varchar(255);default:'';comment:域名地址" json:"domain"`
|
|
IP string `gorm:"column:ip;type:char(16);default:'';comment:IP地址" json:"ip"`
|
|
Remark string `gorm:"column:remark;type:varchar(255);default:'';comment:备注信息" json:"remark"`
|
|
ModelDeleted
|
|
ModelAt
|
|
}
|
|
|
|
func (m *SysTenant) TableName() string {
|
|
return "sys_tenant"
|
|
}
|
|
|
|
func NewSysTenant() *SysTenant {
|
|
return &SysTenant{}
|
|
}
|