finish world initialization, set up init on startup and on shutdown, move all models to main directory
This commit is contained in:
26
internal/foundry/models/db/foundry_data.go
Normal file
26
internal/foundry/models/db/foundry_data.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"time"
|
||||
)
|
||||
|
||||
type FoundryDataType string
|
||||
|
||||
const (
|
||||
SetupType = FoundryDataType("setup")
|
||||
GameType = FoundryDataType("game")
|
||||
)
|
||||
|
||||
type FoundryData struct {
|
||||
ID uint
|
||||
|
||||
Type FoundryDataType
|
||||
Setup *Setup
|
||||
Game *Game
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type FoundryDataModel struct {
|
||||
DB *sql.DB
|
||||
}
|
||||
Reference in New Issue
Block a user