merp/models/merp.go

14 lines
448 B
Go
Raw Normal View History

2019-10-27 12:38:03 +00:00
package models
import "time"
2019-11-07 20:54:49 +00:00
// Merps are the primary database item in merp
2019-10-27 12:38:03 +00:00
type Merp struct {
2019-10-29 16:40:30 +00:00
ID int `orm:"auto;column(id)"`
2019-10-27 13:26:07 +00:00
Content string `json:"content" orm:"type(jsonb);column(content)"`
Created time.Time `orm:"auto_now_add;type(datetime);column(created)"`
2019-10-29 16:40:30 +00:00
RemoteIP string `orm:"size(128);column(remoteip)"`
Thing string `json:"thing" orm:"index;size(256)"`
UUID string `orm:"size(36);column(uuid)"`
2019-10-27 12:38:03 +00:00
}