summaryrefslogtreecommitdiff
path: root/pkg/db/entity.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-21 13:06:56 -0600
committermo khan <mo@mokhan.ca>2025-04-21 13:06:56 -0600
commit1ece3b42051d26050cd612a3ed9a20122d501746 (patch)
tree1e873073ac585efc610fa5e734f3eeeaaa69b01e /pkg/db/entity.go
parentf157746e34f62621d85b2cbda982b90d9af06125 (diff)
feat: attach current user if they are in the db
Diffstat (limited to 'pkg/db/entity.go')
-rw-r--r--pkg/db/entity.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/db/entity.go b/pkg/db/entity.go
new file mode 100644
index 0000000..1dcf4c3
--- /dev/null
+++ b/pkg/db/entity.go
@@ -0,0 +1,7 @@
+package db
+
+type Entity interface {
+ GetID() string
+ SetID(id string) error
+ Validate() error
+}