mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
Convert db backend to use Gorm, with basis for support
for Mysql and Postgres in addition to existing Sqlite
This commit is contained in:
11
backend/internal/entity/capability.go
Normal file
11
backend/internal/entity/capability.go
Normal file
@ -0,0 +1,11 @@
|
||||
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"
|
||||
}
|
Reference in New Issue
Block a user