Add ActivatedAt for scheduling future events.

This commit is contained in:
Ralic Lo 2021-02-22 13:03:12 +08:00 committed by GitHub
parent 79225bfe48
commit def34ab5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,9 @@ import "time"
// }
type Model struct {
ID uint `gorm:"primarykey"`
ActivatedAt time.Time `gorm:"not null"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt DeletedAt `gorm:"index"`
DeletedAt gorm.DeletedAt `gorm:"index"`
}