diff --git a/model/model.go b/model/model.go index a573da3..8376e16 100644 --- a/model/model.go +++ b/model/model.go @@ -9,6 +9,21 @@ import ( "log" ) + + +type Plan struct { + ID uint32 `gorm:"column:id;primary_key" json:"id"` + StartTime utils.OrmTime `gorm:"column:start_time" json:"start_time"` + EndTime utils.OrmTime `gorm:"column:end_time" json:"end_time"` + Date utils.OrmTime `gorm:"column:date" json:"date"` + Content string `gorm:"column:content" json:"content"` +} + +func (m *Plan) TableName() string { + return "plan" +} + + type Users struct { ID int64 `sql:"id" json:"id"` UserName string `sql:"user_name" json:"user_name"`