2021-05-08 18:00:33 +08:00
|
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
2022-06-02 17:41:11 +08:00
|
|
|
|
"mayfly-go/pkg/model"
|
2021-05-08 18:00:33 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type Db struct {
|
|
|
|
|
|
model.Model
|
|
|
|
|
|
|
2021-07-28 18:03:19 +08:00
|
|
|
|
Name string `orm:"column(name)" json:"name"`
|
|
|
|
|
|
Type string `orm:"column(type)" json:"type"` // 类型,mysql oracle等
|
|
|
|
|
|
Host string `orm:"column(host)" json:"host"`
|
|
|
|
|
|
Port int `orm:"column(port)" json:"port"`
|
|
|
|
|
|
Network string `orm:"column(network)" json:"network"`
|
|
|
|
|
|
Username string `orm:"column(username)" json:"username"`
|
|
|
|
|
|
Password string `orm:"column(password)" json:"-"`
|
|
|
|
|
|
Database string `orm:"column(database)" json:"database"`
|
2022-07-10 12:14:06 +08:00
|
|
|
|
Params string `json:"params"`
|
2021-07-28 18:03:19 +08:00
|
|
|
|
ProjectId uint64
|
|
|
|
|
|
Project string
|
|
|
|
|
|
EnvId uint64
|
|
|
|
|
|
Env string
|
2022-07-20 01:37:25 +00:00
|
|
|
|
|
|
|
|
|
|
EnableSSH int `orm:"column(enable_ssh)" json:"enable_ssh"`
|
|
|
|
|
|
SSHHost string `orm:"column(ssh_host)" json:"ssh_host"`
|
|
|
|
|
|
SSHPort int `orm:"column(ssh_port)" json:"ssh_port"`
|
|
|
|
|
|
SSHUser string `orm:"column(ssh_user)" json:"ssh_user"`
|
|
|
|
|
|
SSHPass string `orm:"column(ssh_pass)" json:"-"`
|
2021-05-08 18:00:33 +08:00
|
|
|
|
}
|