From c7e82fd1d76b9fb25497d5aba4372bbfe13a8468 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 28 三月 2024 20:00:21 +0800 Subject: [PATCH] 采购入库增加来源 --- initialize/gorm.go | 33 ++++++--------------------------- 1 files changed, 6 insertions(+), 27 deletions(-) diff --git a/initialize/gorm.go b/initialize/gorm.go index 4602c13..d0ef90c 100644 --- a/initialize/gorm.go +++ b/initialize/gorm.go @@ -4,12 +4,9 @@ "os" "srm/model/purchase" - "srm/global" - "srm/model/example" - "srm/model/system" - "go.uber.org/zap" "gorm.io/gorm" + "srm/global" "srm/model/test" ) @@ -33,33 +30,15 @@ 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.SupplierMaterial{}, + purchase.Purchase{}, + purchase.PurchaseProducts{}, + purchase.PurchaseProductConfirm{}, + purchase.PurchaseQualityInspection{}, ) if err != nil { global.GVA_LOG.Error("register table failed", zap.Error(err)) -- Gitblit v1.8.0