...
|
...
|
@@ -26,6 +26,17 @@ func init() { |
|
|
if !constant.DISABLE_CREATE_TABLE {
|
|
|
for _, model := range []interface{}{
|
|
|
&models.ColumnSetting{},
|
|
|
&models.AdminPermission{},
|
|
|
&models.BusinessBonus{},
|
|
|
&models.Company{},
|
|
|
&models.OrderBase{},
|
|
|
&models.OrderBestshop{},
|
|
|
&models.OrderGood{},
|
|
|
&models.OrderGoodBestshop{},
|
|
|
&models.OrderLog{},
|
|
|
&models.PartnerCategoryInfo{},
|
|
|
&models.PartnerInfo{},
|
|
|
&models.Users{},
|
|
|
} {
|
|
|
err := DB.Model(model).CreateTable(&orm.CreateTableOptions{
|
|
|
Temp: false,
|
...
|
...
|
|