summaryrefslogtreecommitdiff
path: root/internal/models/models.go
blob: 58191a25b7a34e0efe7b9b5990417b5b6ff9ae12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package models

import "time"

type ActionType string

const (
	ActionTypePlus  ActionType = "ActionTypePlus"
	ActionTypeMinus ActionType = "ActionTypeMinus"
)

type (
	UserScore struct {
		Username string
		Actions  []Action
		BurnTime time.Time
		Score    int8
	}
	Action struct {
		ID         uint32
		Name       string
		Magnitude  uint8
		Repeatable bool
		Type       ActionType
		Done       bool
		Username   string
	}
)