1234567891011121314151617181920212223242526272829303132333435363738 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- import (
- "time"
- )
- const TableNameServerDeploy = "server_deploy"
- // ServerDeploy mapped from table <server_deploy>
- type ServerDeploy struct {
- ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
- Environment string `gorm:"column:environment;type:varchar(64);not null;index:environment,priority:1" json:"environment"` // 所在环境
- AdminID int64 `gorm:"column:admin_id;type:bigint(20);index:admin_id,priority:1" json:"admin_id"` // 管理员ID
- GroupID int32 `gorm:"column:group_id;type:int(11);not null;default:1" json:"group_id"` // 分组,1微信,2抖音
- ServerType string `gorm:"column:server_type;type:varchar(128);not null" json:"server_type"`
- ContainerName string `gorm:"column:container_name;type:varchar(255);not null" json:"container_name"` // 容器名称
- Name string `gorm:"column:name;type:varchar(255);not null" json:"name"` // 应用名称
- DockerAddr string `gorm:"column:docker_addr;type:varchar(255);not null" json:"docker_addr"` // dockerAPI地址
- CaPem string `gorm:"column:ca_pem;type:varchar(255);not null" json:"ca_pem"` // ca.pem路径
- CertPem string `gorm:"column:cert_pem;type:varchar(255);not null" json:"cert_pem"` // cert.pem路径
- KeyPem string `gorm:"column:key_pem;type:varchar(255);not null" json:"key_pem"` // key.pem路径
- Remark string `gorm:"column:remark;type:varchar(255);not null" json:"remark"` // 备注
- RunStatus int32 `gorm:"column:run_status;type:int(11);not null" json:"run_status"`
- LastSyncAt time.Time `gorm:"column:last_sync_at;type:datetime" json:"last_sync_at"`
- DeployStatus int32 `gorm:"column:deploy_status;type:int(11);not null" json:"deploy_status"` // 部署状态
- CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"` // 创建时间
- AlarmSwitch int64 `gorm:"column:alarm_switch;type:bigint(20);default:1" json:"alarm_switch"` // 报警开关
- IsMproom int32 `gorm:"column:is_mproom;type:int(11);default:2" json:"is_mproom"`
- }
- // TableName ServerDeploy's table name
- func (*ServerDeploy) TableName() string {
- return TableNameServerDeploy
- }
|