mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-17 02:17:49 +08:00
46e7431c4c
* feat: 数据库面板新增 PostgreSQL 管理,支持远程/本地数据库,支持与应用关联等 #758 #1978
13 lines
589 B
Go
13 lines
589 B
Go
package model
|
|
|
|
type DatabasePostgresql struct {
|
|
BaseModel
|
|
Name string `json:"name" gorm:"type:varchar(256);not null"`
|
|
From string `json:"from" gorm:"type:varchar(256);not null;default:local"`
|
|
PostgresqlName string `json:"postgresqlName" 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"`
|
|
Description string `json:"description" gorm:"type:varchar(256);"`
|
|
}
|