summaryrefslogtreecommitdiff
path: root/lisp/sql/gallery.lisp
blob: 501691d4754c4d461938d0c5eb7de183b9822f32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
(declaim (optimize (speed 0) (safety 3) (debug 3)))

(in-package :woodriverlessons)

(defclass gallery (postgres-record)
  ((id :initarg :id
       :initform nil
       :accessor id)
   (description :initarg :description
                :initform nil
                :accessor description)
   (filename :initarg :filename
             :initform nil
             :accessor filename)
   (mime_type :initarg :mime_type
              :initform nil
              :accessor mime_type)
   (video_embed_url :initarg :video_embed_url
                    :initform nil
                    :accessor video_embed_url)
   (content :initarg :content
            :initform nil
            :accessor content)
   (created :initarg :created
            :initform nil
            :accessor created)
   (modified :initarg :modified
             :initform nil
             :accessor modified)
   (*table :initform "general.gallery")
   (*where-expression :initform "id = ~a"))
  (:documentation "Holds the data for a general.gallery type."))