-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate.sql
49 lines (44 loc) · 867 Bytes
/
create.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
drop schema if exists cccat12 cascade;
create schema cccat12;
create table cccat12.passenger (
passenger_id uuid primary key,
name text,
email text,
document text
);
create table cccat12.driver (
driver_id uuid primary key,
name text,
email text,
document text,
car_plate text
);
create table cccat12.ride (
ride_id uuid primary key,
passenger_id uuid,
driver_id uuid,
transaction_id uuid,
from_lat numeric,
from_long numeric,
to_lat numeric,
to_long numeric,
status text,
request_date timestamp,
accept_date timestamp,
start_date timestamp,
end_date timestamp,
price numeric
);
create table cccat12.transactions (
transaction_id uuid primary key,
name text,
email text,
amount numeric
);
create table cccat12.user (
user_id uuid primary key,
email text,
password text,
password_type text,
salt text
);