merp/models/merp.go

14 lines
448 B
Go

package models
import "time"
// Merps are the primary database item in merp
type Merp struct {
ID int `orm:"auto;column(id)"`
Content string `json:"content" orm:"type(jsonb);column(content)"`
Created time.Time `orm:"auto_now_add;type(datetime);column(created)"`
RemoteIP string `orm:"size(128);column(remoteip)"`
Thing string `json:"thing" orm:"index;size(256)"`
UUID string `orm:"size(36);column(uuid)"`
}