Permalink
Switch branches/tags
Nothing to show
Find file Copy path
d08894c Mar 8, 2016
1 contributor

Users who have contributed to this file

15 lines (12 sloc) 351 Bytes
package gorm
import "time"
// Model base model definition, including fields `ID`, `CreatedAt`, `UpdatedAt`, `DeletedAt`, which could be embedded in your models
// type User struct {
// gorm.Model
// }
type Model struct {
ID uint `gorm:"primary_key"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt *time.Time `sql:"index"`
}