-
Notifications
You must be signed in to change notification settings - Fork 0
/
createSchema.sql
63 lines (55 loc) · 2.32 KB
/
createSchema.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
54
55
56
57
58
59
60
61
62
63
CREATE SCHEMA IF NOT EXISTS ofac;
DROP TABLE IF EXISTS ofac."ALT";
CREATE TABLE ofac."ALT"
(
ent_num integer,
alt_num integer NOT NULL,
alt_type character varying COLLATE pg_catalog."default",
alt_name character varying COLLATE pg_catalog."default",
alt_remarks character varying COLLATE pg_catalog."default",
CONSTRAINT "ALT_pkey" PRIMARY KEY (alt_num)
);
DROP TABLE IF EXISTS ofac."CONS_ALT";
CREATE TABLE ofac."CONS_ALT"
(
ent_num integer,
alt_num integer NOT NULL,
alt_type character varying COLLATE pg_catalog."default",
alt_name character varying COLLATE pg_catalog."default",
alt_remarks character varying COLLATE pg_catalog."default",
CONSTRAINT "CONS_ALT_pkey" PRIMARY KEY (alt_num)
);
DROP TABLE IF EXISTS ofac."CONS_PRIM";
CREATE TABLE ofac."CONS_PRIM"
(
ent_num integer NOT NULL,
sdn_name character varying COLLATE pg_catalog."default",
sdn_type character varying COLLATE pg_catalog."default",
program character varying COLLATE pg_catalog."default",
title character varying COLLATE pg_catalog."default",
call_sign character varying COLLATE pg_catalog."default",
vess_type character varying COLLATE pg_catalog."default",
tonnage character varying COLLATE pg_catalog."default",
grt character varying COLLATE pg_catalog."default",
vess_flag character varying COLLATE pg_catalog."default",
vess_owner character varying COLLATE pg_catalog."default",
remarks character varying COLLATE pg_catalog."default",
CONSTRAINT "CONS_PRIM_pkey" PRIMARY KEY (ent_num)
);
DROP TABLE IF EXISTS ofac."SDN";
CREATE TABLE ofac."SDN"
(
ent_num integer NOT NULL,
sdn_name character varying COLLATE pg_catalog."default",
sdn_type character varying COLLATE pg_catalog."default",
program character varying COLLATE pg_catalog."default",
title character varying COLLATE pg_catalog."default",
call_sign character varying COLLATE pg_catalog."default",
vess_type character varying COLLATE pg_catalog."default",
tonnage character varying COLLATE pg_catalog."default",
grt character varying COLLATE pg_catalog."default",
vess_flag character varying COLLATE pg_catalog."default",
vess_owner character varying COLLATE pg_catalog."default",
remarks character varying COLLATE pg_catalog."default",
CONSTRAINT "SDN_pkey" PRIMARY KEY (ent_num)
);