diff --git a/model.go b/model.go index 3334d17c..34d3da0d 100644 --- a/model.go +++ b/model.go @@ -8,8 +8,10 @@ import "time" // gorm.Model // } type Model struct { - ID uint `gorm:"primarykey"` - CreatedAt time.Time - UpdatedAt time.Time - DeletedAt DeletedAt `gorm:"index"` + ID uint `gorm:"primarykey"` + ActivatedAt time.Time `gorm:"not null"` + CreatedAt time.Time + UpdatedAt time.Time + DeletedAt gorm.DeletedAt `gorm:"index"` } +