busybar / internal / models / achievements.models.go
achievements.models.go
Raw
package models

import "time"

type Achievement struct {
	ID             int        `json:"id"`
	Name           string     `json:"name"`
	Description    string     `json:"description"`
	RequiredAction string     `json:"required_action"`
	Threshold      int        `json:"threshold"`
	BarID          *int       `json:"bar_id,omitempty"`
	RequiredDays   []int      `json:"required_days,omitempty"`
	SpecificDate   *time.Time `json:"specific_date,omitempty"`
	TimeRestricted bool       `json:"time_restricted"`
	AchievedAt     *time.Time `json:"achieved_at,omitempty"`
	IsUnlocked     bool       `json:"is_unlocked"`
}