model.go 286 B

12345678910111213
  1. package global
  2. import (
  3. "gorm.io/gorm"
  4. "time"
  5. )
  6. type GVA_MODEL struct {
  7. ID uint `gorm:"primarykey"` // 主键ID
  8. CreatedAt time.Time // 创建时间
  9. UpdatedAt time.Time // 更新时间
  10. DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
  11. }