1Panel/agent/app/model/database_postgresql.go

15 lines
540 B
Go
Raw Normal View History

2024-07-23 14:48:37 +08:00
package model
type DatabasePostgresql struct {
BaseModel
2024-08-14 10:43:32 +08:00
Name string `json:"name" gorm:"not null"`
From string `json:"from" gorm:"not null;default:local"`
PostgresqlName string `json:"postgresqlName" gorm:"not null"`
Format string `json:"format" gorm:"not null"`
Username string `json:"username" gorm:"not null"`
Password string `json:"password" gorm:"not null"`
SuperUser bool `json:"superUser"`
IsDelete bool `json:"isDelete"`
Description string `json:"description"`
2024-07-23 14:48:37 +08:00
}