2022-10-20 10:45:47 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
type DatabaseMysql struct {
|
|
|
|
BaseModel
|
2022-10-24 10:46:19 +00:00
|
|
|
Name string `json:"name" gorm:"type:varchar(256);not null"`
|
2023-07-27 08:07:27 +00:00
|
|
|
From string `json:"from" gorm:"type:varchar(256);not null;default:local"`
|
2023-09-16 05:16:15 +00:00
|
|
|
MysqlName string `json:"mysqlName" gorm:"type:varchar(64);not null"`
|
2022-10-24 10:46:19 +00:00
|
|
|
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);"`
|
2022-10-20 10:45:47 +00:00
|
|
|
}
|