package models
|
|
type SubPlatform struct {
|
Id string `gorm:"primary_key;" json:"id"`
|
HeartbeatTime string `gorm:"column:heartbeat_time" json:"heartbeat_time"`
|
Name string `gorm:"not null;default:''" json:"name"`
|
UserName string `gorm:"not null;default:''" json:"user_name"`
|
Realm string `gorm:"not null;default:''" json:"realm"`
|
Password string `gorm:"not null;default:''" json:"password"`
|
Description string `gorm:"not null;default:''" json:"description"`
|
RemoteIP string `gorm:"not null;default:''" json:"remote_ip"`
|
RemotePort int `gorm:"not null;default:0" json:"remote_port"`
|
CreateTime int64 `gorm:"column:create_time;autoCreateTime;" json:"create_time"`
|
UpdateTime int64 `gorm:"column:update_time;autoUpdateTime" json:"-"`
|
DeleteTime int64 `gorm:"column:delete_time" json:"-"`
|
}
|
|
func (s *SubPlatform) TableName() string {
|
return "sub_platforms"
|
}
|