From c90b44b2c55d694b7b6294267940ad9135169596 Mon Sep 17 00:00:00 2001 From: "DESKTOP-4RNDQIC\\29019" <290198252@qq.com> Date: Tue, 16 Feb 2021 10:52:29 +0800 Subject: [PATCH] no message --- model/model.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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"`