summaryrefslogtreecommitdiff
path: root/internal/models/models.go
blob: eb90a0dddedd5306a5abcded2210749210b27b14 (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
29
package models

import "time"

type (
	ScoreChanger interface {
		ChangeScore() error
	}

	UserScore struct {
		ID       string
		Acts     []ScoreChanger
		BurnTime time.Time
		Score    int8
	}

	// plus 1
	PlusAction struct {
		Name       string
		Repeatable bool
	}

	// minus x
	// always repeatable
	MinusAction struct {
		Name      string
		Magnitude uint8
	}
)