summaryrefslogtreecommitdiff
path: root/internal/models
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/models.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/internal/models/models.go b/internal/models/models.go
new file mode 100644
index 0000000..eb90a0d
--- /dev/null
+++ b/internal/models/models.go
@@ -0,0 +1,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
+ }
+)