22 lines
413 B
Go
22 lines
413 B
Go
package database
|
|
|
|
import (
|
|
"cybertron/models/db"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
func InitProjectRepository(dbClient *gorm.DB) *gorm.DB {
|
|
dbClient.AutoMigrate(&db.Project{})
|
|
return dbClient
|
|
}
|
|
|
|
func InitReleaseRepository(dbClient *gorm.DB) *gorm.DB {
|
|
dbClient.AutoMigrate(&db.Release{})
|
|
return dbClient
|
|
}
|
|
|
|
func InitSourceMapRepository(dbClient *gorm.DB) *gorm.DB {
|
|
dbClient.AutoMigrate(&db.SourcMap{})
|
|
return dbClient
|
|
}
|