Files
cybertron/internal/database/repositories.go
2024-09-12 13:18:04 +05:30

28 lines
529 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.SourceMap{})
return dbClient
}
func InitHoustonRepository(dbClient *gorm.DB) *gorm.DB {
dbClient.AutoMigrate(&db.Houston{})
return dbClient
}