Add ActivatedAt for scheduling future events.
This commit is contained in:
parent
79225bfe48
commit
def34ab5fb
10
model.go
10
model.go
@ -8,8 +8,10 @@ import "time"
|
|||||||
// gorm.Model
|
// gorm.Model
|
||||||
// }
|
// }
|
||||||
type Model struct {
|
type Model struct {
|
||||||
ID uint `gorm:"primarykey"`
|
ID uint `gorm:"primarykey"`
|
||||||
CreatedAt time.Time
|
ActivatedAt time.Time `gorm:"not null"`
|
||||||
UpdatedAt time.Time
|
CreatedAt time.Time
|
||||||
DeletedAt DeletedAt `gorm:"index"`
|
UpdatedAt time.Time
|
||||||
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user