正在显示
1 个修改的文件
包含
10 行增加
和
11 行删除
@@ -8,17 +8,16 @@ import ( | @@ -8,17 +8,16 @@ import ( | ||
8 | ) | 8 | ) |
9 | 9 | ||
10 | type Company struct { | 10 | type Company struct { |
11 | - Id int64 `orm:"column(id);auto"` | ||
12 | - Name string `orm:"column(name);size(40)"` | ||
13 | - AdminId int64 `orm:"column(admin_id)"` | ||
14 | - CreateAt time.Time `orm:"column(create_at);type(timestamp);auto_now"` | ||
15 | - UpdateAt time.Time `orm:"column(update_at);type(timestamp)"` | ||
16 | - DeleteAt time.Time `orm:"column(delete_at);type(timestamp)"` | ||
17 | - Logo string `orm:"column(logo);size(255)"` | ||
18 | - Enable int8 `orm:"column(enable)"` | ||
19 | - UserCenterId int64 `orm:"column(user_center_id)"` | ||
20 | - Remark string `orm:"column(remark)"` | ||
21 | - UserCompanyId int64 `orm:"column(user_company_id)"` | 11 | + Id int64 `orm:"column(id);auto"` |
12 | + Name string `orm:"column(name);size(40)"` | ||
13 | + AdminId int64 `orm:"column(admin_id)"` | ||
14 | + CreateAt time.Time `orm:"column(create_at);type(timestamp);auto_now"` | ||
15 | + UpdateAt time.Time `orm:"column(update_at);type(timestamp)"` | ||
16 | + DeleteAt time.Time `orm:"column(delete_at);type(timestamp)"` | ||
17 | + Logo string `orm:"column(logo);size(255)"` | ||
18 | + Enable int8 `orm:"column(enable)"` | ||
19 | + UserCenterId int64 `orm:"column(user_center_id)"` | ||
20 | + Remark string `orm:"column(remark)"` | ||
22 | } | 21 | } |
23 | 22 | ||
24 | func (t *Company) TableName() string { | 23 | func (t *Company) TableName() string { |
-
请 注册 或 登录 后发表评论