nginx-proxy-manager/backend/internal/entity/capability.go
Jamie Curnow 29990110b1
Convert db backend to use Gorm, with basis for support
for Mysql and Postgres in addition to existing Sqlite
2023-05-26 11:37:39 +10:00

12 lines
265 B
Go

package entity
// Capability is the db model
type Capability struct {
Name string `json:"name" gorm:"column:name;primaryKey" filter:"name,string"`
}
// TableName overrides the table name used by gorm
func (Capability) TableName() string {
return "capability"
}