TP-55555 | crud ingestor
This commit is contained in:
11
internal/database/product.go
Normal file
11
internal/database/product.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
"cybertron/models/db"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
func InitProductRepository(dbClient *gorm.DB) *gorm.DB {
|
||||
dbClient.AutoMigrate(&db.Product{})
|
||||
return dbClient
|
||||
}
|
||||
Reference in New Issue
Block a user