merp/models/merp.go

13 lines
433 B
Go
Raw Normal View History

2019-10-27 12:38:03 +00:00
package models
import "time"
type Merp struct {
2019-10-27 13:26:07 +00:00
ID int `json:"id" 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 `json:"remoteIP" orm:"size(128);column(remoteip)"`
Thing string `json:"thing" orm:"size(256)"`
UUID string `json:"uuid" orm:"size(36);column(uuid)"`
2019-10-27 12:38:03 +00:00
}