|
@@ -15,7 +15,7 @@ const (
|
|
|
type Employ struct {
|
|
type Employ struct {
|
|
|
Id int64 `orm:"column(id);pk" json:"id"` // int(11)
|
|
Id int64 `orm:"column(id);pk" json:"id"` // int(11)
|
|
|
Mobile string `orm:"column(mobile);null" json:"-"` // varchar(64)
|
|
Mobile string `orm:"column(mobile);null" json:"-"` // varchar(64)
|
|
|
- UserName int64 `orm:"column(user_name);null" json:"user_name"` // tinyint(1)
|
|
|
|
|
|
|
+ UserName string `orm:"column(user_name);null" json:"user_name"` // tinyint(1)
|
|
|
CreatedAt time.Time `orm:"column(created_at);auto_now_add;type(datetime)" json:"-"` // datetime
|
|
CreatedAt time.Time `orm:"column(created_at);auto_now_add;type(datetime)" json:"-"` // datetime
|
|
|
UpdatedAt time.Time `orm:"column(updated_at);auto_now;type(datetime)" json:"-"` // datetime
|
|
UpdatedAt time.Time `orm:"column(updated_at);auto_now;type(datetime)" json:"-"` // datetime
|
|
|
}
|
|
}
|