...
|
...
|
@@ -8,17 +8,16 @@ import ( |
|
|
)
|
|
|
|
|
|
type Company struct {
|
|
|
Id int64 `orm:"column(id);auto"`
|
|
|
Name string `orm:"column(name);size(40)"`
|
|
|
AdminId int64 `orm:"column(admin_id)"`
|
|
|
CreateAt time.Time `orm:"column(create_at);type(timestamp);auto_now"`
|
|
|
UpdateAt time.Time `orm:"column(update_at);type(timestamp)"`
|
|
|
DeleteAt time.Time `orm:"column(delete_at);type(timestamp)"`
|
|
|
Logo string `orm:"column(logo);size(255)"`
|
|
|
Enable int8 `orm:"column(enable)"`
|
|
|
UserCenterId int64 `orm:"column(user_center_id)"`
|
|
|
Remark string `orm:"column(remark)"`
|
|
|
UserCompanyId int64 `orm:"column(user_company_id)"`
|
|
|
Id int64 `orm:"column(id);auto"`
|
|
|
Name string `orm:"column(name);size(40)"`
|
|
|
AdminId int64 `orm:"column(admin_id)"`
|
|
|
CreateAt time.Time `orm:"column(create_at);type(timestamp);auto_now"`
|
|
|
UpdateAt time.Time `orm:"column(update_at);type(timestamp)"`
|
|
|
DeleteAt time.Time `orm:"column(delete_at);type(timestamp)"`
|
|
|
Logo string `orm:"column(logo);size(255)"`
|
|
|
Enable int8 `orm:"column(enable)"`
|
|
|
UserCenterId int64 `orm:"column(user_center_id)"`
|
|
|
Remark string `orm:"column(remark)"`
|
|
|
}
|
|
|
|
|
|
func (t *Company) TableName() string {
|
...
|
...
|
|