diff --git a/types/db.go b/types/db.go index f20b1d8..4dbde7e 100644 --- a/types/db.go +++ b/types/db.go @@ -28,8 +28,8 @@ type ( Std_IICUDS struct { ID uint `gorm:"primarykey;" json:"id"` Identity string `gorm:"column:identity;type:varchar(36);uniqueIndex;" json:"identity"` // 唯一标识,24位NanoID,36位为ULID - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` + CreatedAt time.Time `gorm:"" json:"created_at"` + UpdatedAt time.Time `gorm:"" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"index;" json:"deleted_at"` Status int8 `gorm:"default:0;index;" json:"status"` // 状态:默认为0,-1禁止,1为正常 } @@ -37,15 +37,15 @@ type ( // standard ID,Identity,Created,Updated,Deleted,Status definition. Std_ICUD struct { ID uint `gorm:"primarykey;" json:"id"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` + CreatedAt time.Time `gorm:"" json:"created_at"` + UpdatedAt time.Time `gorm:"" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"index;" json:"deleted_at"` } // standard ID,Created definition. Std_IdCreated struct { ID uint `gorm:"primarykey;" json:"id"` - CreatedAt time.Time `json:"created_at"` + CreatedAt time.Time `gorm:"" json:"created_at"` } // standard PassportID,PassportIdentity definition.