-
Notifications
You must be signed in to change notification settings - Fork 0
/
ddl.sql
49 lines (33 loc) · 1.11 KB
/
ddl.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
-- Database: mop_test_assignment
-- DROP DATABASE IF EXISTS mop_test_assignment;
CREATE DATABASE mop_test_assignment
WITH
OWNER = postgres
ENCODING = 'UTF8'
LC_COLLATE = 'Croatian_Bosnia & Herzegovina.1252'
LC_CTYPE = 'Croatian_Bosnia & Herzegovina.1252'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
-- Table: public.temp_product_price
-- DROP TABLE IF EXISTS public.temp_product_price;
CREATE TABLE IF NOT EXISTS public.temp_product_price
(
product_id integer NOT NULL,
price numeric NOT NULL
)
TABLESPACE pg_default;
ALTER TABLE IF EXISTS public.temp_product_price
OWNER to postgres;
-- Table: public.request_execution_time
-- DROP TABLE IF EXISTS public.request_execution_time;
CREATE TABLE IF NOT EXISTS public.request_execution_time
(
request_id uuid NOT NULL,
url text COLLATE pg_catalog."default" NOT NULL,
request_executed_at timestamp without time zone NOT NULL,
response_time integer NOT NULL,
CONSTRAINT pk_request_id PRIMARY KEY (request_id)
)
TABLESPACE pg_default;
ALTER TABLE IF EXISTS public.request_execution_time
OWNER to postgres;