mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-05 02:19:00 +08:00
2a20ff0b79
Co-authored-by: 邵传波 <shaocb@mail.unitid.cn>
14 lines
634 B
Go
14 lines
634 B
Go
package model
|
|
|
|
type DatabaseMysql struct {
|
|
BaseModel
|
|
Name string `json:"name" gorm:"type:varchar(256);not null"`
|
|
From string `json:"type" gorm:"type:varchar(256);not null;default:'local'"`
|
|
MysqlName string `json:"mysqlName" gorm:"type:varchar(64);not null"`
|
|
Format string `json:"format" gorm:"type:varchar(64);not null"`
|
|
Username string `json:"username" gorm:"type:varchar(256);not null"`
|
|
Password string `json:"password" gorm:"type:varchar(256);not null"`
|
|
Permission string `json:"permission" gorm:"type:varchar(256);not null"`
|
|
Description string `json:"description" gorm:"type:varchar(256);"`
|
|
}
|