feat: add core data model

This commit is contained in:
2026-07-18 15:52:54 +08:00
parent 619a8b4b3b
commit cccd0e6ce5
5 changed files with 233 additions and 0 deletions

10
backend/internal/db/db.go Normal file
View 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{})
}