diff options
author | Grant Shoshin Shangreaux <shoshin@cicadas.surf> | 2023-01-07 11:12:15 -0600 |
---|---|---|
committer | Grant Shoshin Shangreaux <shoshin@cicadas.surf> | 2023-01-07 11:12:15 -0600 |
commit | aee7f487f97c10c15b6c7b48156cc95db19d9137 (patch) | |
tree | 9ccdb9b7a3e356ed39f2ed71b2d04b7e2718df20 /model.lisp | |
parent | 9a040d4e78ab07eb9c482a40042f2ba92d2a8e3b (diff) |
First Draft of hero creation and login
Diffstat (limited to 'model.lisp')
-rw-r--r-- | model.lisp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |