mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-23 21:28:15 -05:00
14 lines
503 B
Go
14 lines
503 B
Go
|
package entity
|
||
|
|
||
|
import (
|
||
|
"gorm.io/plugin/soft_delete"
|
||
|
)
|
||
|
|
||
|
// ModelBase include common fields for db control
|
||
|
type ModelBase struct {
|
||
|
ID uint `json:"id" gorm:"column:id;primaryKey"`
|
||
|
CreatedAt int64 `json:"created_at" gorm:"<-:create;autoCreateTime:milli;column:created_at"`
|
||
|
UpdatedAt int64 `json:"updated_at" gorm:"<-;autoUpdateTime:milli;column:updated_at"`
|
||
|
DeletedAt soft_delete.DeletedAt `json:"-" gorm:"column:is_deleted;softDelete:flag"`
|
||
|
}
|