liujiandao
2023-11-02 f9ce7300c4ce1673d06a052e43cb462f8a69c13c
initialize/gorm.go
@@ -30,33 +30,14 @@
func RegisterTables() {
   db := global.GVA_DB
   err := db.AutoMigrate(
      //system.SysApi{},
      //system.SysUser{},
      //system.SysBaseMenu{},
      //system.JwtBlacklist{},
      //system.SysAuthority{},
      //system.SysDictionary{},
      //system.SysOperationRecord{},
      //system.SysAutoCodeHistory{},
      //system.SysDictionaryDetail{},
      //system.SysBaseMenuParameter{},
      //system.SysBaseMenuBtn{},
      //system.SysAuthorityBtn{},
      //system.SysAutoCode{},
      //system.SysChatGptOption{},
      //example.ExaFile{},
      //example.ExaCustomer{},
      //example.ExaFileChunk{},
      //example.ExaFileUploadAndDownload{},
      test.Industry{},
      test.SupplierType{},
      test.Supplier{},
      test.Contract{},
      test.Product{},
      //test.Member{},
      purchase.Purchase{}, purchase.PurchaseProducts{},
      test.Member{},
      purchase.Purchase{},
      purchase.PurchaseProducts{},
   )
   if err != nil {
      global.GVA_LOG.Error("register table failed", zap.Error(err))