-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschedule.lisp
38 lines (37 loc) · 1.19 KB
/
schedule.lisp
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
34
35
36
37
38
(defpackage #:rakugobot-models/schedule
(:use #:cl
#:mito)
(:import-from #:rakugobot-models/place
#:place)
(:export #:schedule
#:schedule-title
#:schedule-start-date
#:schedule-end-date
#:schedule-start-time
#:schedule-end-time
#:schedule-fetched-url
#:schedule-place))
(in-package #:rakugobot-models/schedule)
(defclass schedule ()
((title :col-type (:varchar 256)
:initarg :title
:accessor schedule-title)
(start-date :col-type :date
:initarg :start-date
:accessor schedule-start-date)
(end-date :col-type :date
:initarg :end-date
:accessor schedule-end-date)
(start-time :col-type :time
:initarg :start-time
:accessor schedule-start-time)
(end-time :col-type :time
:initarg :end-time
:accessor schedule-end-time)
(fetched-url :col-type (:varchar 256)
:initarg :fetched-url
:accessor schedule-fetched-url)
(place :col-type place
:initarg :place
:accessor schedule-place))
(:metaclass dao-table-class))