forked from hol-workshop/migrate_to_atp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CreateTables.sql
70 lines (65 loc) · 3.02 KB
/
CreateTables.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
64
65
66
67
68
69
70
CREATE TABLE "CITIES"
( "CITYID" VARCHAR2(3 BYTE) COLLATE "USING_NLS_COMP",
"CITY" VARCHAR2(30 BYTE) COLLATE "USING_NLS_COMP",
"COUNTRYID" VARCHAR2(3 BYTE) COLLATE "USING_NLS_COMP"
) DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "DATA" ;
CREATE TABLE "COUNTRIES"
( "COUNTRYID" VARCHAR2(3 BYTE) COLLATE "USING_NLS_COMP",
"COUNTRY" VARCHAR2(40 BYTE) COLLATE "USING_NLS_COMP",
"REGIONID" NUMBER(*,0)
) DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "DATA" ;
CREATE TABLE "PARKINGDATA"
( "PARKINGDATAID" NUMBER(18,0),
"PARKINGID" VARCHAR2(12 BYTE) COLLATE "USING_NLS_COMP",
"CARREGID" VARCHAR2(12 BYTE) COLLATE "USING_NLS_COMP",
"INTIME" DATE,
"OUTTIME" DATE,
"PARKINGRATE" FLOAT(126)
) DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "DATA" ;
CREATE TABLE "PARKINGS"
( "PARKINGID" VARCHAR2(12 BYTE) COLLATE "USING_NLS_COMP",
"PARKINGNAME" VARCHAR2(30 BYTE) COLLATE "USING_NLS_COMP",
"AVAILABLESLOT" NUMBER(*,0),
"COUNTRYID" VARCHAR2(3 BYTE) COLLATE "USING_NLS_COMP",
"CITYID" VARCHAR2(3 BYTE) COLLATE "USING_NLS_COMP",
"STREETADDRESS" VARCHAR2(40 BYTE) COLLATE "USING_NLS_COMP",
"LONGITUDE" FLOAT(126),
"LATITUDE" FLOAT(126)
) DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "DATA" ;
CREATE TABLE "PAYMENTDATA"
( "TRANSACTIONID" VARCHAR2(24 BYTE) COLLATE "USING_NLS_COMP",
"TransactionAmount" FLOAT(126),
"TransactionMethod" VARCHAR2(8 BYTE) COLLATE "USING_NLS_COMP",
"PARKINGDATAID" NUMBER(18,0),
"PARKINGID" VARCHAR2(12 BYTE) COLLATE "USING_NLS_COMP"
) DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "DATA" ;