-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.sql
37 lines (33 loc) · 1.05 KB
/
schema.sql
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
-- Use MemberType to determine what subclass of Member to cast the blob to when deserializing
CREATE TABLE MEMBERS (
MemberID INTEGER,
Name TEXT,
MemberType TEXT,
MemberData BLOB,
PRIMARY KEY (MemberID)
);
-- Use EmployeeType to determine what subclass of Employee to cast the blob to when deserializing
CREATE TABLE EMPLOYEES (
EmployeeID INTEGER,
Name TEXT,
EmployeeType TEXT,
EmployeeData BLOB,
PRIMARY KEY (EmployeeID)
);
-- Use ItemType to determine what subclass of LibraryItem to cast the blob to when deserializing
CREATE TABLE ITEMS (
ItemID CHARACTER(6),
Title TEXT,
Section TEXT,
ItemType TEXT,
ItemData BLOB,
PRIMARY KEY (ItemID)
);
-- CREATE TABLE LOANS (
-- BorrowerId INTEGER,
-- ItemId CHARACTER(6),
-- BLOB
-- PRIMARY KEY(BorrowerId, ItemId),
--
--
-- )