-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmigration.sql
More file actions
48 lines (48 loc) · 1.19 KB
/
Copy pathmigration.sql
File metadata and controls
48 lines (48 loc) · 1.19 KB
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
45
46
47
48
CREATE TABLE IF NOT EXISTS orders(
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
amounts TEXT,
register TEXT,
prepared BOOLEAN DEFAULT false,
served BOOLEAN DEFAULT false,
canceled BOOLEAN DEFAULT false
);
CREATE TABLE IF NOT EXISTS menus(
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
name TEXT,
description TEXT,
totalStocks INTEGER,
stocks INTEGER
);
-----
INSERT INTO menus(id, name, description, totalStocks, stocks)
VALUES(
0,
'Spicy Red',
'Sambal Oelek, Grilled vegetables (peppers, eggplant, zucchini), Crispy onions',
64,
64
) ON CONFLICT DO NOTHING;
INSERT INTO menus(id, name, description, totalStocks, stocks)
VALUES(
1,
'Pesto Green',
'Pesto, Sun-dried tomatoes, Mozzarella',
72,
72
) ON CONFLICT DO NOTHING;
INSERT INTO menus(id, name, description, totalStocks, stocks)
VALUES(
2,
'Goaty Blue',
'Goat cheese, Honey',
85,
85
) ON CONFLICT DO NOTHING;
INSERT INTO menus(id, name, description, totalStocks, stocks)
VALUES(
3,
'Crunchy Ovo',
'Ovomaltine',
72,
72
) ON CONFLICT DO NOTHING;