mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-14 20:41:21 +08:00
316fa371f2
- 用户id没有自增解决方案
15 lines
311 B
Go
15 lines
311 B
Go
package global
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type GVA_MODEL struct {
|
|
ID uint `gorm:"primarykey;autoIncrement" json:"ID"` // 主键ID
|
|
CreatedAt time.Time // 创建时间
|
|
UpdatedAt time.Time // 更新时间
|
|
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
|
|
}
|