gorm/model.go

11 lines
166 B
Go
Raw Normal View History

2015-04-13 05:09:00 +03:00
package gorm
import "time"
type Model struct {
ID uint `gorm:"primary_key"`
CreatedAt time.Time
UpdatedAt time.Time
2015-09-18 05:28:09 +03:00
DeletedAt *time.Time `sql:"index"`
2015-04-13 05:09:00 +03:00
}