mirror of
https://github.com/wahyd4/badger.git
synced 2026-08-09 05:15:58 +10:00
18 lines
488 B
Go
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:"-"`
|
|
}
|