- change BlackClient.CreatedAt and UpdatedAt to nullable.

This commit is contained in:
gazebo
2018-07-02 14:18:29 +08:00
parent b82729709d
commit b48340156a

View File

@@ -7,6 +7,8 @@ import (
type BlackClient struct {
ID int `orm:"column(id)"`
Mobile string `orm:"size(16);unique"`
CreatedAt time.Time `orm:"auto_now_add;type(datetime)`
UpdatedAt time.Time `orm:"auto_now;type(datetime)`
Name string `orm:"size(8)"`
Note string `orm:"size(256)"`
CreatedAt time.Time `orm:"auto_now_add;type(datetime);null"`
UpdatedAt time.Time `orm:"auto_now;type(datetime);null"`
}