mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 19:19:15 +08:00
16 lines
725 B
Go
16 lines
725 B
Go
package model
|
|
|
|
type Database struct {
|
|
BaseModel
|
|
AppInstallID uint `json:"appInstallID" gorm:"type:decimal"`
|
|
Name string `json:"name" gorm:"type:varchar(64);not null;unique"`
|
|
Type string `json:"type" gorm:"type:varchar(64);not null"`
|
|
Version string `json:"version" gorm:"type:varchar(64);not null"`
|
|
From string `json:"from" gorm:"type:varchar(64);not null"`
|
|
Address string `json:"address" gorm:"type:varchar(64);not null"`
|
|
Port uint `json:"port" gorm:"type:decimal;not null"`
|
|
Username string `json:"username" gorm:"type:varchar(64)"`
|
|
Password string `json:"password" gorm:"type:varchar(64)"`
|
|
Description string `json:"description" gorm:"type:varchar(256);"`
|
|
}
|