orm:change the models_test default value
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -205,7 +205,7 @@ type User struct { | ... | @@ -205,7 +205,7 @@ type User struct { |
| 205 | Password string `orm:"size(100)"` | 205 | Password string `orm:"size(100)"` |
| 206 | Status int16 `orm:"column(Status)"` | 206 | Status int16 `orm:"column(Status)"` |
| 207 | IsStaff bool | 207 | IsStaff bool |
| 208 | IsActive bool `orm:"default(1)"` | 208 | IsActive bool `orm:"default(TRUE)"` |
| 209 | Created time.Time `orm:"auto_now_add;type(date)"` | 209 | Created time.Time `orm:"auto_now_add;type(date)"` |
| 210 | Updated time.Time `orm:"auto_now"` | 210 | Updated time.Time `orm:"auto_now"` |
| 211 | Profile *Profile `orm:"null;rel(one);on_delete(set_null)"` | 211 | Profile *Profile `orm:"null;rel(one);on_delete(set_null)"` | ... | ... |
-
Please register or sign in to post a comment