statping/types/group.go

14 lines
482 B
Go
Raw Normal View History

2018-12-31 11:41:19 +00:00
package types
import "time"
// Group is the main struct for Groups
type Group struct {
Id int64 `gorm:"primary_key;column:id" json:"id"`
Name string `gorm:"column:name" json:"name"`
2019-01-04 00:49:10 +00:00
Public NullBool `gorm:"default:true;column:public" json:"public"`
2019-02-20 02:11:40 +00:00
Order int `gorm:"default:0;column:order_id" json:"order_id"`
2018-12-31 11:41:19 +00:00
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
}