作者 陈志颖

feat:自动建表

@@ -26,6 +26,17 @@ func init() { @@ -26,6 +26,17 @@ func init() {
26 if !constant.DISABLE_CREATE_TABLE { 26 if !constant.DISABLE_CREATE_TABLE {
27 for _, model := range []interface{}{ 27 for _, model := range []interface{}{
28 &models.ColumnSetting{}, 28 &models.ColumnSetting{},
  29 + &models.AdminPermission{},
  30 + &models.BusinessBonus{},
  31 + &models.Company{},
  32 + &models.OrderBase{},
  33 + &models.OrderBestshop{},
  34 + &models.OrderGood{},
  35 + &models.OrderGoodBestshop{},
  36 + &models.OrderLog{},
  37 + &models.PartnerCategoryInfo{},
  38 + &models.PartnerInfo{},
  39 + &models.Users{},
29 } { 40 } {
30 err := DB.Model(model).CreateTable(&orm.CreateTableOptions{ 41 err := DB.Model(model).CreateTable(&orm.CreateTableOptions{
31 Temp: false, 42 Temp: false,