feat: add core data model
This commit is contained in:
10
backend/internal/db/db.go
Normal file
10
backend/internal/db/db.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"gorm.io/driver/postgres"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
func Open(databaseURL string) (*gorm.DB, error) {
|
||||
return gorm.Open(postgres.Open(databaseURL), &gorm.Config{})
|
||||
}
|
||||
Reference in New Issue
Block a user