1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| package db
|
| import (
| "gorm.io/gorm"
| "time"
| )
|
| type BaseEntity struct {
| 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 {
| Id string
| AreaId string
| TableId string
| FaceFeature []float32
| }
|
|