1
0
mirror of https://github.com/NginxProxyManager/nginx-proxy-manager.git synced 2025-07-28 08:02:00 +03:00

Skip auto dumping database migration

Fix user id from context
This commit is contained in:
Jamie Curnow
2023-05-29 14:33:58 +10:00
parent cbcb0cc0f8
commit dde368f733
9 changed files with 9 additions and 8 deletions

View File

@ -15,7 +15,7 @@ import (
// Model is the model
type Model struct {
entity.ModelBase
UserID int `json:"user_id" gorm:"column:user_id" filter:"user_id,integer"`
UserID uint `json:"user_id" gorm:"column:user_id" filter:"user_id,integer"`
Name string `json:"name" gorm:"column:name" filter:"name,string"`
AcmeshName string `json:"acmesh_name" gorm:"column:acmesh_name" filter:"acmesh_name,string"`
DNSSleep int `json:"dns_sleep" gorm:"column:dns_sleep" filter:"dns_sleep,integer"`