This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
api/database/schemas.go
2023-01-21 02:10:32 +01:00

61 lines
860 B
Go

package database
import (
"time"
"github.com/lib/pq"
)
type Quote struct {
ID string `gorm:"primaryKey"`
Date *time.Time
Tags pq.StringArray `gorm:"type:varchar(64)[]"`
}
type QuoteLine struct {
Author string
Content string
}
type Image struct {
Id string
Title string
Description string
Date *time.Time
Place string
Link string
}
type Admincard struct {
Id string
Name string
Desc string
Img string
DevBadge bool
IsAdmin bool
AssignedUser string
}
type Splash struct {
Id string
Splash string
}
type User struct {
Id string
UserId string
AccentColor string
}
type Badge struct {
Id string
Name string
Desc string
Expl string
Img string
}
type GivenBadges struct {
UserId string
BadgeId string
Date *time.Time
}