You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
429 B
Go

package main
import (
"gorm.io/gorm"
)
type Area struct {
gorm.Model
Uid string
Name, Flags string
}
type Room struct {
gorm.Model
Uid string
Name, Area string
Building string
Info, Notes, Flags string
X, Y, Z int
Norecall, Noportal int
Exits []Exit `gorm:"foreignKey:Fromuid"`
}
type Exit struct {
gorm.Model
Dir, Fromuid, Touid, Level string
}