summaryrefslogtreecommitdiff
path: root/lisp/sql/states.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/sql/states.lisp')
-rw-r--r--lisp/sql/states.lisp18
1 files changed, 18 insertions, 0 deletions
diff --git a/lisp/sql/states.lisp b/lisp/sql/states.lisp
new file mode 100644
index 0000000..7968c16
--- /dev/null
+++ b/lisp/sql/states.lisp
@@ -0,0 +1,18 @@
+;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
+(declaim (optimize (speed 0) (safety 3) (debug 3)))
+
+(in-package :resume)
+
+(defclass states (postgres-record)
+ ((id :initarg :id
+ :initform nil
+ :accessor id)
+ (state :initarg :state
+ :initform nil
+ :accessor state)
+ (abbr :initarg :abbr
+ :initform nil
+ :accessor abbr)
+ (*table :initform "resume.states")
+ (*where-expression :initform "id = ~a"))
+ (:documentation "Holds the data for a resume.states record."))