gosora/extend/adventure/lib/adventure.go
Azareal 1189967f2b Add a missing instruction to the installation guide.
Add the /tmp/ folder, currently unused.

Shorten some things.
2019-10-27 09:11:09 +10:00

16 lines
461 B
Go

package adventure
// We're experimenting with struct tags here atm
type Adventure struct {
ID int `schema:"name=aid;primary;auto"`
Name string `schema:"name=name;type=short_text"`
Desc string `schema:"name=desc;type=text"`
CreatedBy int `schema:"name=createdBy"`
//CreatedBy int `schema:"name=createdBy;relatesTo=users.uid"`
}
// TODO: Should we add a table interface?
func (a *Adventure) GetTable() string {
return "adventure"
}