TP-55555 | crud ingestor (#2)
* TP-55555 | crud ingestor * TP-55555 | Project handler (#4) --------- Co-authored-by: Lokesh Dugar <lokesh.dugar@navi.com>
This commit is contained in:
11
internal/database/project.go
Normal file
11
internal/database/project.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
"cybertron/models/db"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
func InitProjectRepository(dbClient *gorm.DB) *gorm.DB {
|
||||
dbClient.AutoMigrate(&db.Project{})
|
||||
return dbClient
|
||||
}
|
||||
Reference in New Issue
Block a user