2024-07-24 12:30:35 +05:30
|
|
|
package database
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"cybertron/models/db"
|
|
|
|
|
"gorm.io/gorm"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func InitProjectRepository(dbClient *gorm.DB) *gorm.DB {
|
|
|
|
|
dbClient.AutoMigrate(&db.Project{})
|
|
|
|
|
return dbClient
|
|
|
|
|
}
|
2024-07-27 17:02:42 +05:30
|
|
|
|
|
|
|
|
func InitReleaseRepository(dbClient *gorm.DB) *gorm.DB {
|
|
|
|
|
dbClient.AutoMigrate(&db.Release{})
|
|
|
|
|
return dbClient
|
|
|
|
|
}
|