ferry/models/system/model.go
2020-07-14 14:47:17 +08:00

15 lines
336 B
Go

package system
/*
@Author : lanyulei
*/
import (
"time"
)
type BaseModel struct {
CreatedAt time.Time `gorm:"column:create_time" json:"create_time" form:"create_time"`
UpdatedAt time.Time `gorm:"column:update_time" json:"update_time" form:"update_time"`
DeletedAt *time.Time `gorm:"column:delete_time" sql:"index" json:"-"`
}