From f3b918596c0a7a4a29a69e3b6858bbee47ffd8db Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 19 Feb 2019 10:40:24 +0800 Subject: [PATCH] - make JxBadComments.CreatedAt nullable --- business/model/legacymodel/jxbadcomments.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/legacymodel/jxbadcomments.go b/business/model/legacymodel/jxbadcomments.go index e63ea63ba..230167655 100644 --- a/business/model/legacymodel/jxbadcomments.go +++ b/business/model/legacymodel/jxbadcomments.go @@ -4,7 +4,7 @@ import "time" type JxBadComments struct { Id int `json:"id" orm:"column(id)"` - CreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"createdAt"` + CreatedAt time.Time `orm:"auto_now_add;type(datetime);null" json:"createdAt"` OrderId string `json:"order_id" orm:"column(order_id);size(25);unique" description:"订单ID"` Jxstoreid string `json:"jxstoreid" orm:"column(jxstoreid);size(11);index" description:"京西门店ID"` Userphone string `json:"userPhone" orm:"column(userphone);size(255);null" description:"评价的用户的联系方式"`