-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.txt
44 lines (37 loc) · 829 Bytes
/
schema.txt
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
39
40
41
42
43
44
--- TABLES
user
---
pk int id
str name
location
---
pk int id
str name
str address
-----
item
-----
pk int id
str name
------
event - Arbitrary event where sales can be made
------
pk int id
str name
starts datetime
created_at datetime
----------
event_item - stock for items available at an event
----------
pk int id
x int event_id
x int item_id
int quantity
---------
item_sale - Records which can be used to track stock changes and sales from each event
---------
pk int id
x int item_id
x int event_id
float price
int quantity