forked from arensalmela/hydrohomies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseed.sql
53 lines (32 loc) · 1.57 KB
/
seed.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
-- ==================================================================
use hydro_db;
INSERT INTO all_Reviews (brand, carbonation, flavor, title, body, rating, user_name, email, createdAt, updatedAt)
VALUES ("Bubly", true, "Grape", "Yum", "Tastes great", 5, "ReindeerCode", "ReindeerCode@gmail.com", current_timestamp(), CURRENT_TIMESTAMP);
select * from all_Reviews
-- ==================================================================
use hydro_db;
INSERT INTO brand (brand_name, createdAt, updatedAt)
VALUES ("Bubly", current_timestamp(), CURRENT_TIMESTAMP);
select * from brand
-- ==================================================================
use hydro_db;
INSERT INTO Bubbles (carbonation, createdAt, updatedAt)
VALUES (1, current_timestamp(), CURRENT_TIMESTAMP);
INSERT INTO Bubbles (carbonation, createdAt, updatedAt)
VALUES (2, current_timestamp(), CURRENT_TIMESTAMP);
select * from Bubbles
-- ==================================================================
use hydro_db;
INSERT INTO brand (brand_name, createdAt, updatedAt)
VALUES ("Bubly", current_timestamp(), CURRENT_TIMESTAMP);
select * from brand
-- ==================================================================
use hydro_db;
INSERT INTO Flavor (flavor, createdAt, updatedAt)
VALUES ("Peach", current_timestamp(), CURRENT_TIMESTAMP);
select * from Flavor
-- ==================================================================
use hydro_db;
INSERT INTO User (user_name, email, createdAt, updatedAt)
VALUES ("ReindeerCode", "ReindeerCode@gmail.com", current_timestamp(), CURRENT_TIMESTAMP);
select * from User