models/db.go
@@ -73,7 +73,20 @@ func RegisterTables() error { db := mysqlx.GetDB() err := db.AutoMigrate( Company{}, Warehouse{}, OperationType{}, Location{}, OperationType{}, Operation{}, OperationDetails{}, Scrap{}, MoveHistory{}, //Product{}, ProductCategory{}, Material{}, LocationProduct{}, LocationProductAmount{}, ) return err } @@ -85,6 +98,7 @@ func InsertDefaultData() { models := []interface{}{ NewDepartmentSearch(), NewLocationSearch(), } for _, model := range models { if id, ok := model.(InitDefaultData); ok {