forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.sql
49 lines (45 loc) · 914 Bytes
/
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
38
39
40
41
42
43
44
45
46
47
48
CREATE TABLE products(
id bigserial PRIMARY KEY,
created_at timestamp,
category text,
ean text,
price float,
quantity int default(5000),
rating float,
title text,
vendor text
);
CREATE TABLE users(
id bigserial PRIMARY KEY,
created_at timestamp,
name text,
email text,
address text,
city text,
state text,
zip text,
birth_date text,
latitude float,
longitude float,
password text,
source text
);
CREATE TABLE orders(
id bigserial PRIMARY KEY,
created_at timestamp,
user_id bigint,
product_id bigint,
discount float,
quantity int,
subtotal float,
tax float,
total float
);
CREATE TABLE reviews(
id bigserial PRIMARY KEY,
created_at timestamp,
reviewer text,
product_id bigint,
rating int,
body text
);