summaryrefslogtreecommitdiff
path: root/model.lisp
diff options
context:
space:
mode:
authorGrant Shoshin Shangreaux <shoshin@cicadas.surf>2023-01-07 11:12:15 -0600
committerGrant Shoshin Shangreaux <shoshin@cicadas.surf>2023-01-07 11:12:15 -0600
commitaee7f487f97c10c15b6c7b48156cc95db19d9137 (patch)
tree9ccdb9b7a3e356ed39f2ed71b2d04b7e2718df20 /model.lisp
parent9a040d4e78ab07eb9c482a40042f2ba92d2a8e3b (diff)
First Draft of hero creation and login
Diffstat (limited to 'model.lisp')
-rw-r--r--model.lisp10
1 files changed, 10 insertions, 0 deletions
diff --git a/model.lisp b/model.lisp
index 8605ace..46bf4e3 100644
--- a/model.lisp
+++ b/model.lisp
@@ -62,6 +62,16 @@
:documentation "Salt for this hero's password hash."))
(:metaclass db:persistent-class))
+;; TODO expiration?
+(defclass session (db:store-object)
+ ((hero :reader session-hero
+ :initarg :hero)
+ (id :reader session-id
+ :initform (nuid)
+ :index-type idx:string-unique-index
+ :index-reader session-with-id))
+ (:metaclass db:persistent-class))
+
;; aka an issue
;; (defclass monster (can-equip has-uid)
;; ((name)