| | |
| | | package db |
| | | |
| | | import ( |
| | | "gorm.io/gorm" |
| | | "time" |
| | | ) |
| | | |
| | | type BaseEntity struct { |
| | | Id string `gorm:"primary_key;column:id" json:"id" example:""` |
| | | CreateTime string `gorm:"column:createTime" json:"createTime,omitempty" example:""` |
| | | UpdateTime string `gorm:"column:updateTime" json:"updateTime,omitempty" example:""` |
| | | CreateBy string `gorm:"column:createBy" json:"createBy,omitempty" example:""` |
| | | IsDelete int `gorm:"column:isDelete" json:"isDelete" example:"0 未删除 1已删除"` |
| | | Enable int `gorm:"column:enable" json:"enable" example:" 1生效 0未生效"` |
| | | ID string `gorm:"primary_key;column:id;type:varchar(255);" json:"id"` |
| | | CreatedAt time.Time |
| | | UpdatedAt time.Time |
| | | DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` |
| | | } |
| | | |
| | | type FeatureCacheBase struct { |
| | |
| | | AreaId string |
| | | TableId string |
| | | FaceFeature []float32 |
| | | Enable int32 |
| | | } |