Files
badger/models/badge.go
T
2020-09-05 16:25:29 +10:00

18 lines
488 B
Go

package models
import (
"github.com/jinzhu/gorm"
"github.com/jinzhu/gorm/dialects/postgres"
)
type Badge struct {
gorm.Model
Label string `json:"label"`
ULID string `gorm:"column:ulid;type:varchar;not null;unique_index" json:"ulid"`
Type string `json:"type"`
User User `json:"-"`
UserID int `json:"userId"`
Options *postgres.Jsonb `json:"-"`
OptionStruct interface{} `gorm:"-"`
}