2018-03-21 05:56:33 +00:00
|
|
|
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?
|
2019-10-26 23:11:09 +00:00
|
|
|
func (a *Adventure) GetTable() string {
|
2018-03-21 05:56:33 +00:00
|
|
|
return "adventure"
|
|
|
|
}
|