We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d331fc commit 09d99d3Copy full SHA for 09d99d3
manager/models/models.go
@@ -30,8 +30,8 @@ import (
30
31
type BaseModel struct {
32
ID uint `gorm:"primarykey;comment:id" json:"id"`
33
- CreatedAt time.Time `gorm:"column:created_at;type:timestamp;default:current_timestamp;comment:created at" json:"created_at"`
34
- UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp;default:current_timestamp;comment:updated at" json:"updated_at"`
+ CreatedAt time.Time `json:"created_at"`
+ UpdatedAt time.Time `json:"updated_at"`
35
IsDel soft_delete.DeletedAt `gorm:"softDelete:flag;comment:soft delete flag" json:"is_del"`
36
}
37
0 commit comments