Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
frontend
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antrian
frontend
Commits
95e7301f
Commit
95e7301f
authored
Sep 28, 2020
by
Azy Mushofy Anwary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Database
parent
d226a35c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
27 deletions
+52
-27
public/antrian.sql
public/antrian.sql
+52
-27
No files found.
public/antrian.sql
View file @
95e7301f
/*
PostgreSQL Backup
Database: antrian/public
Backup Time: 2020-09-2
4 10:55:02
Backup Time: 2020-09-2
8 16:59:05
*/
DROP
SEQUENCE
IF
EXISTS
"public"
.
"antrian_id_antrian"
;
...
...
@@ -14,6 +14,7 @@ DROP SEQUENCE IF EXISTS "public"."no_rekam_medis";
DROP
SEQUENCE
IF
EXISTS
"public"
.
"pasien_id_pasien_seq"
;
DROP
SEQUENCE
IF
EXISTS
"public"
.
"poli_id_poli_seq"
;
DROP
SEQUENCE
IF
EXISTS
"public"
.
"register_antrian_id_register"
;
DROP
SEQUENCE
IF
EXISTS
"public"
.
"user_data_header_iduser_seq1"
;
DROP
SEQUENCE
IF
EXISTS
"public"
.
"user_data_header_iduser_seq"
;
DROP
TABLE
IF
EXISTS
"public"
.
"antrian"
;
DROP
TABLE
IF
EXISTS
"public"
.
"antrian_pasien"
;
...
...
@@ -101,6 +102,12 @@ MINVALUE 1
MAXVALUE
9223372036854775807
START
1
CACHE
1
;
CREATE
SEQUENCE
"user_data_header_iduser_seq1"
INCREMENT
1
MINVALUE
1
MAXVALUE
2147483647
START
1
CACHE
1
;
CREATE
SEQUENCE
"user_data_header_iduser_seq"
INCREMENT
1
MINVALUE
1
...
...
@@ -132,7 +139,8 @@ CREATE TABLE "antrian_pasien" (
"id_antrian"
int2
NOT
NULL
DEFAULT
nextval
(
'id_antrian_seq2'
::
regclass
),
"status_code"
int2
,
"id_ruang"
int2
,
"waktu"
time
(
6
)
"waktu"
time
(
6
),
"no_rekam_medis"
varchar
(
20
)
COLLATE
"pg_catalog"
.
"default"
)
;
ALTER
TABLE
"antrian_pasien"
OWNER
TO
"postgres"
;
...
...
@@ -187,14 +195,14 @@ CREATE TABLE "master_parameter" (
ALTER
TABLE
"master_parameter"
OWNER
TO
"postgres"
;
COMMENT
ON
TABLE
"master_parameter"
IS
'master parameter'
;
CREATE
TABLE
"pasien"
(
"id_pasien"
int2
,
"id_pasien"
int2
NOT
NULL
,
"nama"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"tempat_lahir"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"tanggal_lahir"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"alamat"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"no_hp"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"ktp"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"create_date"
date
,
"create_date"
date
NOT
NULL
,
"no_rekam_medis"
varchar
(
20
)
COLLATE
"pg_catalog"
.
"default"
NOT
NULL
DEFAULT
lpad
((
nextval
(
'no_rekam_medis'
::
regclass
))::
text
,
8
,
'0'
::
text
)
)
;
...
...
@@ -225,7 +233,7 @@ CREATE TABLE "register_antrian" (
;
ALTER
TABLE
"register_antrian"
OWNER
TO
"postgres"
;
CREATE
TABLE
"register_dokter"
(
"id_register"
int2
DEFAULT
nextval
(
'id_antrian_seq'
::
regclass
),
"id_register"
int2
NOT
NULL
DEFAULT
nextval
(
'id_antrian_seq'
::
regclass
),
"id_poli"
int2
,
"id_dokter"
int2
,
"id_ruang"
int2
,
...
...
@@ -431,12 +439,12 @@ ALTER FUNCTION "insert_data"("input_id_pasien" int4, "input_id_poli" int4) OWNER
BEGIN
;
LOCK
TABLE
"public"
.
"antrian"
IN
SHARE
MODE
;
DELETE
FROM
"public"
.
"antrian"
;
INSERT
INTO
"public"
.
"antrian"
(
"id_antrian"
,
"no_antrian"
,
"kode_antrian"
,
"create_date"
)
VALUES
(
2102
,
1
,
1
,
'2020-09-24'
),(
2103
,
2
,
1
,
'2020-09-24'
),(
2104
,
3
,
1
,
'2020-09-24'
),(
2105
,
4
,
1
,
'2020-09-24'
),(
2106
,
5
,
2
,
'2020-09-24'
),(
2107
,
6
,
2
,
'2020-09-24'
),(
2108
,
7
,
2
,
'2020-09-24'
),(
2109
,
8
,
2
,
'2020-09-24'
),(
2110
,
9
,
2
,
'2020-09-24'
),(
2111
,
10
,
2
,
'2020-09-24'
);
INSERT
INTO
"public"
.
"antrian"
(
"id_antrian"
,
"no_antrian"
,
"kode_antrian"
,
"create_date"
)
VALUES
(
2102
,
1
,
1
,
'2020-09-24'
),(
2103
,
2
,
1
,
'2020-09-24'
),(
2104
,
3
,
1
,
'2020-09-24'
),(
2105
,
4
,
1
,
'2020-09-24'
),(
2106
,
5
,
2
,
'2020-09-24'
),(
2107
,
6
,
2
,
'2020-09-24'
),(
2108
,
7
,
2
,
'2020-09-24'
),(
2109
,
8
,
2
,
'2020-09-24'
),(
2110
,
9
,
2
,
'2020-09-24'
),(
2111
,
10
,
2
,
'2020-09-24'
)
,(
2113
,
1
,
1
,
'2020-09-25'
),(
2114
,
2
,
1
,
'2020-09-25'
),(
2115
,
3
,
1
,
'2020-09-25'
),(
2116
,
4
,
1
,
'2020-09-25'
),(
2117
,
5
,
2
,
'2020-09-25'
),(
2118
,
6
,
2
,
'2020-09-25'
),(
2119
,
7
,
1
,
'2020-09-25'
),(
2120
,
8
,
1
,
'2020-09-25'
),(
2121
,
9
,
1
,
'2020-09-25'
),(
2122
,
10
,
1
,
'2020-09-25'
),(
2123
,
11
,
1
,
'2020-09-25'
),(
2124
,
12
,
1
,
'2020-09-25'
),(
2125
,
1
,
1
,
'2020-09-25'
),(
2126
,
2
,
1
,
'2020-09-25'
),(
2127
,
3
,
1
,
'2020-09-25'
),(
2128
,
4
,
1
,
'2020-09-25'
),(
2129
,
5
,
2
,
'2020-09-25'
),(
2130
,
6
,
2
,
'2020-09-25'
),(
2131
,
7
,
1
,
'2020-09-25'
),(
2132
,
8
,
1
,
'2020-09-25'
),(
2133
,
9
,
1
,
'2020-09-25'
),(
2134
,
10
,
1
,
'2020-09-25'
),(
2135
,
1
,
1
,
'2020-09-25'
),(
2136
,
2
,
1
,
'2020-09-25'
),(
2137
,
3
,
1
,
'2020-09-25'
),(
2138
,
4
,
1
,
'2020-09-25'
),(
2139
,
5
,
2
,
'2020-09-25'
),(
2140
,
6
,
2
,
'2020-09-25'
),(
2141
,
7
,
1
,
'2020-09-25'
),(
2142
,
8
,
1
,
'2020-09-25'
),(
2143
,
9
,
1
,
'2020-09-25'
),(
2144
,
10
,
1
,
'2020-09-25'
),(
2145
,
1
,
1
,
'2020-09-25'
),(
2146
,
2
,
1
,
'2020-09-25'
),(
2147
,
3
,
1
,
'2020-09-25'
),(
2148
,
4
,
1
,
'2020-09-25'
),(
2149
,
5
,
2
,
'2020-09-25'
),(
2150
,
6
,
2
,
'2020-09-25'
),(
2151
,
7
,
1
,
'2020-09-25'
),(
2152
,
8
,
1
,
'2020-09-25'
),(
2153
,
9
,
1
,
'2020-09-25'
),(
2154
,
10
,
1
,
'2020-09-25'
),(
2155
,
1
,
1
,
'2020-09-25'
),(
2156
,
2
,
1
,
'2020-09-25'
),(
2157
,
3
,
1
,
'2020-09-25'
),(
2158
,
4
,
1
,
'2020-09-25'
),(
2159
,
5
,
1
,
'2020-09-25'
),(
2160
,
6
,
1
,
'2020-09-25'
),(
2161
,
7
,
2
,
'2020-09-25'
),(
2162
,
8
,
2
,
'2020-09-25'
),(
2163
,
9
,
1
,
'2020-09-25'
),(
2164
,
10
,
1
,
'2020-09-25'
),(
2165
,
1
,
1
,
'2020-09-25'
),(
2166
,
2
,
1
,
'2020-09-25'
),(
2167
,
3
,
1
,
'2020-09-25'
),(
2168
,
4
,
1
,
'2020-09-25'
),(
2169
,
5
,
1
,
'2020-09-25'
),(
2170
,
6
,
2
,
'2020-09-25'
),(
2171
,
7
,
2
,
'2020-09-25'
),(
2172
,
8
,
1
,
'2020-09-25'
),(
2173
,
9
,
1
,
'2020-09-25'
),(
2174
,
10
,
1
,
'2020-09-25'
)
;
COMMIT
;
BEGIN
;
LOCK
TABLE
"public"
.
"antrian_pasien"
IN
SHARE
MODE
;
DELETE
FROM
"public"
.
"antrian_pasien"
;
INSERT
INTO
"public"
.
"antrian_pasien"
(
"id_pasien"
,
"no_antrian"
,
"create_date"
,
"nama"
,
"tempat_lahir"
,
"tanggal_lahir"
,
"alamat"
,
"no_hp"
,
"id_poli"
,
"id_dokter"
,
"ktp"
,
"kode_antrian"
,
"id_register"
,
"id_antrian"
,
"status_code"
,
"id_ruang"
,
"waktu"
)
VALUES
(
NULL
,
2
,
'2020-09-24'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
9
,
17
,
NULL
,
'1'
,
249
,
2103
,
NULL
,
16
,
NULL
),(
NULL
,
3
,
'2020-09-24'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
9
,
17
,
NULL
,
'1'
,
249
,
2104
,
NULL
,
16
,
NULL
),(
NULL
,
4
,
'2020-09-24'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
9
,
17
,
NULL
,
'1'
,
249
,
2105
,
NULL
,
16
,
NULL
),(
NULL
,
5
,
'2020-09-24'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
9
,
17
,
NULL
,
'2'
,
249
,
2106
,
NULL
,
16
,
NULL
),(
NULL
,
6
,
'2020-09-24'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
9
,
17
,
NULL
,
'2'
,
249
,
2107
,
NULL
,
16
,
NULL
),(
NULL
,
7
,
'2020-09-24'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
9
,
17
,
NULL
,
'2'
,
249
,
2108
,
NULL
,
16
,
NULL
),(
NULL
,
8
,
'2020-09-24'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
9
,
17
,
NULL
,
'2'
,
249
,
2109
,
NULL
,
16
,
NULL
),(
NULL
,
9
,
'2020-09-24'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
9
,
17
,
NULL
,
'2'
,
249
,
2110
,
NULL
,
16
,
NULL
),(
NULL
,
10
,
'2020-09-24'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
9
,
17
,
NULL
,
'2'
,
249
,
2111
,
NULL
,
16
,
NULL
),(
1
,
1
,
'2020-09-24'
,
''
,
''
,
''
,
''
,
''
,
9
,
17
,
''
,
'1'
,
249
,
2102
,
10
,
16
,
NULL
);
INSERT
INTO
"public"
.
"antrian_pasien"
(
"id_pasien"
,
"no_antrian"
,
"create_date"
,
"nama"
,
"tempat_lahir"
,
"tanggal_lahir"
,
"alamat"
,
"no_hp"
,
"id_poli"
,
"id_dokter"
,
"ktp"
,
"kode_antrian"
,
"id_register"
,
"id_antrian"
,
"status_code"
,
"id_ruang"
,
"waktu"
,
"no_rekam_medis"
)
VALUES
(
10
,
1
,
'2020-09-28'
,
'azy'
,
''
,
''
,
''
,
''
,
9
,
17
,
'1234567891'
,
'1'
,
249
,
10
,
10
,
16
,
NULL
,
'00000083'
),(
NULL
,
5
,
'2020-09-25'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
12
,
23
,
NULL
,
'1'
,
255
,
21
,
NULL
,
22
,
NULL
,
NULL
),(
NULL
,
5
,
'2020-09-27'
,
NULL
,
NULL
,
''
,
''
,
''
,
11
,
20
,
NULL
,
'1'
,
252
,
1
,
10
,
19
,
NULL
,
NULL
),(
14
,
1
,
'2020-09-28'
,
'KAKA'
,
''
,
''
,
''
,
''
,
11
,
20
,
'12'
,
'1'
,
252
,
11
,
10
,
19
,
NULL
,
'00000119'
),(
NULL
,
3
,
'2020-09-27'
,
NULL
,
NULL
,
''
,
''
,
''
,
13
,
25
,
NULL
,
'1'
,
256
,
2
,
10
,
23
,
NULL
,
NULL
),(
21
,
2
,
'2020-09-28'
,
'INDRA'
,
''
,
''
,
''
,
''
,
11
,
20
,
''
,
'2'
,
252
,
12
,
10
,
19
,
NULL
,
'00000126'
),(
16
,
3
,
'2020-09-28'
,
'Indra'
,
'Bandung'
,
''
,
''
,
''
,
11
,
20
,
'1235466'
,
'2'
,
252
,
13
,
10
,
19
,
NULL
,
'00000121'
),(
NULL
,
2
,
'2020-09-27'
,
NULL
,
NULL
,
''
,
''
,
''
,
9
,
19
,
NULL
,
'1'
,
251
,
3
,
10
,
18
,
NULL
,
NULL
),(
NULL
,
7
,
'2020-09-28'
,
NULL
,
NULL
,
''
,
''
,
''
,
11
,
20
,
NULL
,
'1'
,
252
,
4
,
10
,
19
,
NULL
,
NULL
),(
NULL
,
6
,
'2020-09-28'
,
NULL
,
NULL
,
''
,
''
,
''
,
11
,
20
,
NULL
,
'1'
,
252
,
5
,
10
,
19
,
NULL
,
NULL
),(
NULL
,
3
,
'2020-09-27'
,
NULL
,
NULL
,
''
,
''
,
''
,
9
,
17
,
NULL
,
'1'
,
249
,
6
,
10
,
16
,
NULL
,
NULL
),(
NULL
,
4
,
'2020-09-27'
,
NULL
,
NULL
,
''
,
''
,
''
,
9
,
19
,
NULL
,
'1'
,
251
,
7
,
10
,
18
,
NULL
,
NULL
),(
NULL
,
5
,
'2020-09-27'
,
NULL
,
NULL
,
''
,
''
,
''
,
9
,
19
,
NULL
,
'2'
,
251
,
8
,
10
,
18
,
NULL
,
NULL
),(
NULL
,
8
,
'2020-09-27'
,
NULL
,
NULL
,
''
,
''
,
''
,
11
,
20
,
NULL
,
'1'
,
252
,
9
,
10
,
19
,
NULL
,
NULL
),(
NULL
,
1
,
'2020-09-27'
,
NULL
,
NULL
,
''
,
''
,
''
,
13
,
25
,
NULL
,
'1'
,
256
,
14
,
10
,
23
,
NULL
,
NULL
),(
NULL
,
4
,
'2020-09-27'
,
NULL
,
NULL
,
''
,
''
,
''
,
11
,
20
,
NULL
,
'1'
,
252
,
15
,
10
,
19
,
NULL
,
NULL
),(
NULL
,
2
,
'2020-09-27'
,
NULL
,
NULL
,
''
,
''
,
''
,
13
,
25
,
NULL
,
'1'
,
256
,
16
,
10
,
23
,
NULL
,
NULL
),(
NULL
,
1
,
'2020-09-25'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
12
,
23
,
NULL
,
'1'
,
255
,
17
,
NULL
,
22
,
NULL
,
NULL
),(
NULL
,
2
,
'2020-09-25'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
12
,
23
,
NULL
,
'1'
,
255
,
18
,
NULL
,
22
,
NULL
,
NULL
),(
NULL
,
3
,
'2020-09-25'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
12
,
23
,
NULL
,
'1'
,
255
,
19
,
NULL
,
22
,
NULL
,
NULL
),(
NULL
,
4
,
'2020-09-25'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
12
,
23
,
NULL
,
'1'
,
255
,
20
,
NULL
,
22
,
NULL
,
NULL
);
COMMIT
;
BEGIN
;
LOCK
TABLE
"public"
.
"condition"
IN
SHARE
MODE
;
...
...
@@ -455,12 +463,12 @@ COMMIT;
BEGIN
;
LOCK
TABLE
"public"
.
"dokter"
IN
SHARE
MODE
;
DELETE
FROM
"public"
.
"dokter"
;
INSERT
INTO
"public"
.
"dokter"
(
"id_dokter"
,
"nama_dokter"
,
"kode_dokter"
)
VALUES
(
17
,
'Azy'
,
'AZ'
);
INSERT
INTO
"public"
.
"dokter"
(
"id_dokter"
,
"nama_dokter"
,
"kode_dokter"
)
VALUES
(
17
,
'Azy'
,
'AZ'
)
,(
19
,
'Rey'
,
'RY'
),(
20
,
'Dr. usep A'
,
'UA'
),(
21
,
'LALA'
,
'LL'
),(
22
,
'PAPA'
,
'PP'
),(
23
,
'yaya'
,
'YY'
),(
25
,
'WAWN'
,
'WW'
),(
26
,
'YAYA'
,
'YY'
)
;
COMMIT
;
BEGIN
;
LOCK
TABLE
"public"
.
"dokter_to_poli"
IN
SHARE
MODE
;
DELETE
FROM
"public"
.
"dokter_to_poli"
;
INSERT
INTO
"public"
.
"dokter_to_poli"
(
"id_dokter"
,
"nama_dokter"
,
"id_poli"
,
"id_condition"
,
"kode_dokter"
,
"create_date"
)
VALUES
(
17
,
'Azy'
,
9
,
2
,
'AZ'
,
'2020-09-24'
);
INSERT
INTO
"public"
.
"dokter_to_poli"
(
"id_dokter"
,
"nama_dokter"
,
"id_poli"
,
"id_condition"
,
"kode_dokter"
,
"create_date"
)
VALUES
(
17
,
'Azy'
,
9
,
2
,
'AZ'
,
'2020-09-24'
)
,(
19
,
'Rey'
,
9
,
2
,
'RY'
,
'2020-09-25'
),(
26
,
'YAYA'
,
13
,
1
,
'YY'
,
'2020-09-25'
),(
20
,
'Dr. usep A'
,
11
,
2
,
'UA'
,
'2020-09-25'
),(
21
,
'LALA'
,
11
,
2
,
'LL'
,
'2020-09-25'
),(
25
,
'WAWN'
,
13
,
2
,
'WW'
,
'2020-09-25'
)
;
COMMIT
;
BEGIN
;
LOCK
TABLE
"public"
.
"master_parameter"
IN
SHARE
MODE
;
...
...
@@ -470,12 +478,12 @@ COMMIT;
BEGIN
;
LOCK
TABLE
"public"
.
"pasien"
IN
SHARE
MODE
;
DELETE
FROM
"public"
.
"pasien"
;
INSERT
INTO
"public"
.
"pasien"
(
"id_pasien"
,
"nama"
,
"tempat_lahir"
,
"tanggal_lahir"
,
"alamat"
,
"no_hp"
,
"ktp"
,
"create_date"
,
"no_rekam_medis"
)
VALUES
(
NULL
,
''
,
''
,
''
,
''
,
''
,
''
,
'2020-09-24'
,
'00000002
'
);
INSERT
INTO
"public"
.
"pasien"
(
"id_pasien"
,
"nama"
,
"tempat_lahir"
,
"tanggal_lahir"
,
"alamat"
,
"no_hp"
,
"ktp"
,
"create_date"
,
"no_rekam_medis"
)
VALUES
(
1
,
'qwqw'
,
''
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-25'
,
'00000074'
),(
2
,
'huha'
,
''
,
''
,
''
,
''
,
'3224'
,
'2020-09-25'
,
'00000075'
),(
3
,
'qqq'
,
''
,
''
,
''
,
''
,
'2131'
,
'2020-09-25'
,
'00000076'
),(
4
,
'fewf'
,
''
,
''
,
''
,
''
,
'212'
,
'2020-09-25'
,
'00000077'
),(
5
,
'qweq'
,
''
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-25'
,
'00000078'
),(
6
,
'huha'
,
''
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-25'
,
'00000079'
),(
7
,
'ass'
,
'ass'
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-25'
,
'00000080'
),(
8
,
'ass'
,
'ass'
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-25'
,
'00000081'
),(
9
,
'ass'
,
'ass'
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-25'
,
'00000082'
),(
10
,
'azy'
,
''
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-25'
,
'00000083'
),(
11
,
'Hehe'
,
''
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-25'
,
'00000084'
),(
12
,
'qsw'
,
''
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-25'
,
'00000085'
),(
13
,
'de'
,
''
,
''
,
''
,
''
,
'21321'
,
'2020-09-25'
,
'00000086'
),(
14
,
'KAKA'
,
''
,
''
,
''
,
''
,
'12'
,
'2020-09-27'
,
'00000119'
),(
15
,
''
,
''
,
''
,
''
,
''
,
''
,
'2020-09-27'
,
'00000120'
),(
16
,
'Indra'
,
'Bandung'
,
''
,
''
,
''
,
'1235466'
,
'2020-09-28'
,
'00000121'
),(
17
,
'ANJING'
,
''
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-28'
,
'00000122'
),(
18
,
'123'
,
''
,
''
,
''
,
''
,
'1234567891'
,
'2020-09-28'
,
'00000123'
),(
19
,
'ANJING'
,
''
,
''
,
''
,
''
,
'123'
,
'2020-09-28'
,
'00000124'
),(
20
,
'HAHAHA'
,
''
,
''
,
''
,
''
,
'12345'
,
'2020-09-28'
,
'00000125'
),(
21
,
'INDRA'
,
''
,
''
,
''
,
''
,
''
,
'2020-09-28'
,
'00000126
'
);
COMMIT
;
BEGIN
;
LOCK
TABLE
"public"
.
"poli"
IN
SHARE
MODE
;
DELETE
FROM
"public"
.
"poli"
;
INSERT
INTO
"public"
.
"poli"
(
"id_poli"
,
"nama_poli"
,
"kode_poli"
,
"deskripsi_poli"
)
VALUES
(
9
,
'Umum'
,
'UM'
,
''
);
INSERT
INTO
"public"
.
"poli"
(
"id_poli"
,
"nama_poli"
,
"kode_poli"
,
"deskripsi_poli"
)
VALUES
(
9
,
'Umum'
,
'UM'
,
''
)
,(
11
,
'Mata'
,
'MT'
,
'1111'
),(
13
,
'Kulit'
,
'KT'
,
'asdasd'
),(
12
,
'GIGI'
,
'GG'
,
'ASDASDASD'
)
;
COMMIT
;
BEGIN
;
LOCK
TABLE
"public"
.
"regional"
IN
SHARE
MODE
;
...
...
@@ -484,17 +492,17 @@ COMMIT;
BEGIN
;
LOCK
TABLE
"public"
.
"register_antrian"
IN
SHARE
MODE
;
DELETE
FROM
"public"
.
"register_antrian"
;
INSERT
INTO
"public"
.
"register_antrian"
(
"id_register"
,
"antrian_all"
,
"antrian_awal"
,
"antrian_akhir"
,
"create_date"
,
"jam_mulai"
,
"waktu_antrian"
)
VALUES
(
244
,
10
,
5
,
10
,
'2020-09-24'
,
'6:57'
,
'0:20'
);
INSERT
INTO
"public"
.
"register_antrian"
(
"id_register"
,
"antrian_all"
,
"antrian_awal"
,
"antrian_akhir"
,
"create_date"
,
"jam_mulai"
,
"waktu_antrian"
)
VALUES
(
244
,
10
,
5
,
10
,
'2020-09-24'
,
'6:57'
,
'0:20'
)
,(
246
,
12
,
5
,
6
,
'2020-09-25'
,
'6:15'
,
'0:15'
),(
247
,
10
,
5
,
6
,
'2020-09-25'
,
'6:15'
,
'0:15'
),(
248
,
10
,
5
,
6
,
'2020-09-25'
,
'6:15'
,
'0:15'
),(
249
,
10
,
5
,
6
,
'2020-09-25'
,
'6:16'
,
'0:15'
),(
250
,
10
,
7
,
8
,
'2020-09-25'
,
'6:14'
,
'0:16'
),(
251
,
10
,
6
,
7
,
'2020-09-25'
,
'6:15'
,
'0:15'
)
;
COMMIT
;
BEGIN
;
LOCK
TABLE
"public"
.
"register_dokter"
IN
SHARE
MODE
;
DELETE
FROM
"public"
.
"register_dokter"
;
INSERT
INTO
"public"
.
"register_dokter"
(
"id_register"
,
"id_poli"
,
"id_dokter"
,
"id_ruang"
,
"antrian_all"
,
"antrian_awal"
,
"antrian_akhir"
,
"create_date"
,
"id_condition"
,
"jam_mulai"
,
"waktu_antrian"
)
VALUES
(
249
,
9
,
17
,
16
,
10
,
5
,
10
,
'2020-09-24'
,
1
,
'6:57'
,
'0:20'
);
INSERT
INTO
"public"
.
"register_dokter"
(
"id_register"
,
"id_poli"
,
"id_dokter"
,
"id_ruang"
,
"antrian_all"
,
"antrian_awal"
,
"antrian_akhir"
,
"create_date"
,
"id_condition"
,
"jam_mulai"
,
"waktu_antrian"
)
VALUES
(
249
,
9
,
17
,
16
,
10
,
5
,
10
,
'2020-09-24'
,
1
,
'6:57'
,
'0:20'
)
,(
251
,
9
,
19
,
18
,
12
,
5
,
6
,
'2020-09-25'
,
1
,
'6:15'
,
'0:15'
),(
252
,
11
,
20
,
19
,
10
,
5
,
6
,
'2020-09-25'
,
1
,
'6:15'
,
'0:15'
),(
253
,
11
,
21
,
20
,
10
,
5
,
6
,
'2020-09-25'
,
1
,
'6:15'
,
'0:15'
),(
254
,
12
,
22
,
21
,
10
,
5
,
6
,
'2020-09-25'
,
1
,
'6:16'
,
'0:15'
),(
255
,
12
,
23
,
22
,
10
,
7
,
8
,
'2020-09-25'
,
1
,
'6:14'
,
'0:16'
),(
256
,
13
,
25
,
23
,
10
,
6
,
7
,
'2020-09-25'
,
1
,
'6:15'
,
'0:15'
)
;
COMMIT
;
BEGIN
;
LOCK
TABLE
"public"
.
"ruang"
IN
SHARE
MODE
;
DELETE
FROM
"public"
.
"ruang"
;
INSERT
INTO
"public"
.
"ruang"
(
"id_ruang"
,
"nama_ruang"
,
"id_poli"
,
"id_condition"
)
VALUES
(
16
,
'R 1.1'
,
9
,
2
);
INSERT
INTO
"public"
.
"ruang"
(
"id_ruang"
,
"nama_ruang"
,
"id_poli"
,
"id_condition"
)
VALUES
(
16
,
'R 1.1'
,
9
,
2
)
,(
18
,
'R 12'
,
9
,
2
),(
19
,
'R 15'
,
11
,
2
),(
20
,
'R 16'
,
11
,
2
),(
21
,
'R 16'
,
12
,
2
),(
22
,
'R 21'
,
12
,
2
),(
23
,
'R 22'
,
13
,
2
),(
24
,
'R 21'
,
13
,
1
),(
25
,
'R 21'
,
13
,
1
)
;
COMMIT
;
BEGIN
;
LOCK
TABLE
"public"
.
"user_data_access"
IN
SHARE
MODE
;
...
...
@@ -519,8 +527,9 @@ COMMIT;
BEGIN
;
LOCK
TABLE
"public"
.
"user_data_session"
IN
SHARE
MODE
;
DELETE
FROM
"public"
.
"user_data_session"
;
INSERT
INTO
"public"
.
"user_data_session"
(
"session_id"
,
"name"
,
"modified"
,
"lifetime"
,
"data"
,
"owner"
)
VALUES
(
'
8e7im25fc6a2i57hc5mee01ugp'
,
'KHANSIA'
,
1600833370
,
86400
,
'__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1600833370.930789;s:6:"_VALID";a:1:{s:25:"Zend
\S
ession
\V
alidator
\I
d";s:26:"8e7im25fc6a2i57hc5mee01ugp";}s:3:"_LT";i:86400;s:3:"_LA";i:1600833370;s:6:"_OWNER";s:1:"2";}__KHANSIA|a:14:{s:14:"token_keamanan";s:32:"cfa97a952b0b994a6264a4ac1f5c6ced";s:7:"baseurl";s:16:"//frontend.indra";s:7:"user_id";s:1:"2";s:9:"usernamed";s:5:"admin";s:6:"passwd";s:32:"21232f297a57a5a743894a0e4a801fc3";s:4:"name";s:5:"Atang";s:4:"role";s:2:"10";s:6:"status";s:2:"10";s:8:"deviceid";N;s:5:"token";N;s:7:"retries";s:4:"NULL";s:10:"create_dtm";s:19:"2017-08-10 10:29:40";s:6:"access";a:0:{}s:9:"role_code";s:1:"E";}'
,
'2'
),(
'77j0vj9vahnbu84i2sb5ceo41s'
,
'KHANSIA'
,
1600919661
,
86400
,
'__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1600919661.165525;s:6:"_VALID";a:1:{s:25:"Zend
\S
ession
\V
alidator
\I
d";s:26:"77j0vj9vahnbu84i2sb5ceo41s";}s:3:"_LT";i:86400;s:3:"_LA";i:1600919661;s:6:"_OWNER";s:1:"2";}__KHANSIA|a:14:{s:14:"token_keamanan";s:32:"a0ab4a5c76f3587f2a11611163d8d067";s:7:"baseurl";s:16:"//frontend.indra
";s:7:"user_id";s:1:"2";s:9:"usernamed";s:5:"admin";s:6:"passwd";s:32:"21232f297a57a5a743894a0e4a801fc3";s:4:"name";s:5:"Atang";s:4:"role";s:2:"10";s:6:"status";s:2:"10";s:8:"deviceid";N;s:5:"token";N;s:7:"retries";s:4:"NULL";s:10:"create_dtm";s:19:"2017-08-10 10:29:40";s:6:"access";a:0:{}s:9:"role_code";s:1:"E";}'
,
'2'
);
INSERT
INTO
"public"
.
"user_data_session"
(
"session_id"
,
"name"
,
"modified"
,
"lifetime"
,
"data"
,
"owner"
)
VALUES
(
'
plbu72bdqvueahipj23g07lqd1'
,
'KHANSIA'
,
1601032657
,
86400
,
'__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1601032657.764406;s:6:"_VALID";a:1:{s:25:"Zend
\S
ession
\V
alidator
\I
d";s:26:"plbu72bdqvueahipj23g07lqd1";}s:3:"_LT";i:86400;s:3:"_LA";i:1601032657;s:6:"_OWNER";s:1:"2";}__KHANSIA|a:14:{s:14:"token_keamanan";s:32:"be494965e8a3ba5ada5e71bb98173d44";s:7:"baseurl";s:14:"//frontend.azy";s:7:"user_id";s:1:"2";s:9:"usernamed";s:5:"admin";s:6:"passwd";s:32:"21232f297a57a5a743894a0e4a801fc3";s:4:"name";s:5:"Atang";s:4:"role";s:2:"10";s:6:"status";s:2:"10";s:8:"deviceid";N;s:5:"token";N;s:7:"retries";s:4:"NULL";s:10:"create_dtm";s:19:"2017-08-10 10:29:40";s:6:"access";a:0:{}s:9:"role_code";s:1:"E";}'
,
'2'
),(
'1nljcdjb435aripmcoase49tm6'
,
'KHANSIA'
,
1601216386
,
86400
,
'__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1601216386.807401;s:6:"_VALID";a:1:{s:25:"Zend
\S
ession
\V
alidator
\I
d";s:26:"1nljcdjb435aripmcoase49tm6";}s:3:"_LT";i:86400;s:3:"_LA";i:1601216386;s:6:"_OWNER";s:1:"2";}__KHANSIA|a:14:{s:14:"token_keamanan";s:32:"6677a8384b855fa20dc069b7fdd989d3";s:7:"baseurl";s:14:"//frontend.azy";s:7:"user_id";s:1:"2";s:9:"usernamed";s:5:"admin";s:6:"passwd";s:32:"21232f297a57a5a743894a0e4a801fc3";s:4:"name";s:5:"Atang";s:4:"role";s:2:"10";s:6:"status";s:2:"10";s:8:"deviceid";N;s:5:"token";N;s:7:"retries";s:4:"NULL";s:10:"create_dtm";s:19:"2017-08-10 10:29:40";s:6:"access";a:0:{}s:9:"role_code";s:1:"E";}'
,
'2'
),(
'mmg78bkbgip9qgtu8mbo0cfmc8'
,
'KHANSIA'
,
1601284788
,
86400
,
'__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1601284788.800771;s:6:"_VALID";a:1:{s:25:"Zend
\S
ession
\V
alidator
\I
d";s:26:"mmg78bkbgip9qgtu8mbo0cfmc8";}s:3:"_LT";i:86400;s:3:"_LA";i:1601284788;s:6:"_OWNER";s:1:"2";}__KHANSIA|a:14:{s:14:"token_keamanan";s:32:"7d896d538aa63eca003cca740ee7aa0d";s:7:"baseurl";s:14:"//frontend.azy
";s:7:"user_id";s:1:"2";s:9:"usernamed";s:5:"admin";s:6:"passwd";s:32:"21232f297a57a5a743894a0e4a801fc3";s:4:"name";s:5:"Atang";s:4:"role";s:2:"10";s:6:"status";s:2:"10";s:8:"deviceid";N;s:5:"token";N;s:7:"retries";s:4:"NULL";s:10:"create_dtm";s:19:"2017-08-10 10:29:40";s:6:"access";a:0:{}s:9:"role_code";s:1:"E";}'
,
'2'
);
COMMIT
;
ALTER
TABLE
"antrian_pasien"
ADD
CONSTRAINT
"antrian_pasien_pkey"
PRIMARY
KEY
(
"id_antrian"
);
ALTER
TABLE
"condition"
ADD
CONSTRAINT
"condition_pkey"
PRIMARY
KEY
(
"id_condition"
);
ALTER
TABLE
"counter_status"
ADD
CONSTRAINT
"counter_status_pkey"
PRIMARY
KEY
(
"id_status"
);
ALTER
TABLE
"divisi_witel"
ADD
CONSTRAINT
"divisi_witel_pkey"
PRIMARY
KEY
(
"divisi_witel_id"
);
...
...
@@ -548,8 +557,10 @@ CREATE INDEX "index6" ON "master_parameter" USING btree (
CREATE
INDEX
"index7"
ON
"master_parameter"
USING
btree
(
"param_parent"
"pg_catalog"
.
"int4_ops"
ASC
NULLS
LAST
);
ALTER
TABLE
"pasien"
ADD
CONSTRAINT
"pasien_pkey"
PRIMARY
KEY
(
"id_pasien"
,
"no_rekam_medis"
);
ALTER
TABLE
"poli"
ADD
CONSTRAINT
"poli_pkey"
PRIMARY
KEY
(
"id_poli"
);
ALTER
TABLE
"regional"
ADD
CONSTRAINT
"regional_pkey"
PRIMARY
KEY
(
"id_regional"
);
ALTER
TABLE
"register_dokter"
ADD
CONSTRAINT
"register_dokter_pkey"
PRIMARY
KEY
(
"id_register"
);
ALTER
TABLE
"ruang"
ADD
CONSTRAINT
"ruang_pkey"
PRIMARY
KEY
(
"id_ruang"
);
ALTER
TABLE
"user_data_access"
ADD
CONSTRAINT
"user_data_access_pkey"
PRIMARY
KEY
(
"access_id"
);
ALTER
TABLE
"user_data_header"
ADD
CONSTRAINT
"user_data_header_pkey"
PRIMARY
KEY
(
"iduser"
);
...
...
@@ -562,47 +573,61 @@ CREATE INDEX "xrole" ON "user_data_header" USING btree (
ALTER
TABLE
"user_data_map"
ADD
CONSTRAINT
"user_data_map_pkey"
PRIMARY
KEY
(
"map_id"
);
ALTER
TABLE
"user_data_role"
ADD
CONSTRAINT
"user_data_role_pkey"
PRIMARY
KEY
(
"access_role_id"
);
ALTER
TABLE
"user_data_session"
ADD
CONSTRAINT
"user_data_session_pkey"
PRIMARY
KEY
(
"session_id"
);
ALTER
TABLE
"dokter_to_poli"
ADD
CONSTRAINT
"dokter to poli"
FOREIGN
KEY
(
"id_poli"
)
REFERENCES
"public"
.
"poli"
(
"id_poli"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"antrian_pasien"
ADD
CONSTRAINT
"Poli"
FOREIGN
KEY
(
"id_poli"
)
REFERENCES
"public"
.
"poli"
(
"id_poli"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"antrian_pasien"
ADD
CONSTRAINT
"antrian_pasien_id_register_fkey"
FOREIGN
KEY
(
"id_register"
)
REFERENCES
"public"
.
"register_dokter"
(
"id_register"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"antrian_pasien"
ADD
CONSTRAINT
"antrian_pasien_id_ruang_fkey"
FOREIGN
KEY
(
"id_ruang"
)
REFERENCES
"public"
.
"ruang"
(
"id_ruang"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"antrian_pasien"
ADD
CONSTRAINT
"dokter"
FOREIGN
KEY
(
"id_dokter"
)
REFERENCES
"public"
.
"dokter"
(
"id_dokter"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"antrian_pasien"
ADD
CONSTRAINT
"no_rekam_medis"
FOREIGN
KEY
(
"no_rekam_medis"
)
REFERENCES
"public"
.
"pasien"
(
"no_rekam_medis"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"dokter_to_poli"
ADD
CONSTRAINT
"Dokter"
FOREIGN
KEY
(
"id_dokter"
)
REFERENCES
"public"
.
"dokter"
(
"id_dokter"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"dokter_to_poli"
ADD
CONSTRAINT
"Poli"
FOREIGN
KEY
(
"id_poli"
)
REFERENCES
"public"
.
"poli"
(
"id_poli"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"dokter_to_poli"
ADD
CONSTRAINT
"condition"
FOREIGN
KEY
(
"id_condition"
)
REFERENCES
"public"
.
"condition"
(
"id_condition"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"master_parameter"
ADD
CONSTRAINT
"master_parameter_ibfk_1"
FOREIGN
KEY
(
"param_parent"
)
REFERENCES
"public"
.
"master_parameter"
(
"idm_parameter"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"pasien"
ADD
CONSTRAINT
"id_pasien"
UNIQUE
(
"no_rekam_medis"
);
ALTER
TABLE
"ruang"
ADD
CONSTRAINT
"condition"
FOREIGN
KEY
(
"id_condition"
)
REFERENCES
"public"
.
"condition"
(
"id_condition"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
TABLE
"ruang"
ADD
CONSTRAINT
"id_poli"
FOREIGN
KEY
(
"id_poli"
)
REFERENCES
"public"
.
"poli"
(
"id_poli"
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
;
ALTER
SEQUENCE
"antrian_id_antrian"
OWNED
BY
"antrian"
.
"id_antrian"
;
SELECT
setval
(
'"antrian_id_antrian"'
,
21
12
,
true
);
SELECT
setval
(
'"antrian_id_antrian"'
,
21
75
,
true
);
ALTER
SEQUENCE
"antrian_id_antrian"
OWNER
TO
"postgres"
;
ALTER
SEQUENCE
"dokter
\_
id_dokter_seq"
OWNED
BY
"dokter_to_poli"
.
"id_dokter"
;
SELECT
setval
(
'"dokter
\_
id_dokter_seq"'
,
18
,
true
);
SELECT
setval
(
'"dokter
\_
id_dokter_seq"'
,
27
,
true
);
ALTER
SEQUENCE
"dokter
\_
id_dokter_seq"
OWNER
TO
"postgres"
;
ALTER
SEQUENCE
"id_antrian_seq2"
OWNED
BY
"antrian_pasien"
.
"id_antrian"
;
SELECT
setval
(
'"id_antrian_seq2"'
,
21
12
,
true
);
SELECT
setval
(
'"id_antrian_seq2"'
,
21
75
,
true
);
ALTER
SEQUENCE
"id_antrian_seq2"
OWNER
TO
"postgres"
;
ALTER
SEQUENCE
"id_antrian_seq"
OWNED
BY
"register_dokter"
.
"id_register"
;
SELECT
setval
(
'"id_antrian_seq"'
,
25
0
,
true
);
SELECT
setval
(
'"id_antrian_seq"'
,
25
7
,
true
);
ALTER
SEQUENCE
"id_antrian_seq"
OWNER
TO
"postgres"
;
ALTER
SEQUENCE
"id_dokter_seq"
OWNED
BY
"dokter"
.
"id_dokter"
;
SELECT
setval
(
'"id_dokter_seq"'
,
18
,
true
);
SELECT
setval
(
'"id_dokter_seq"'
,
27
,
true
);
ALTER
SEQUENCE
"id_dokter_seq"
OWNER
TO
"postgres"
;
ALTER
SEQUENCE
"id_ruang_seq"
OWNED
BY
"ruang"
.
"id_ruang"
;
SELECT
setval
(
'"id_ruang_seq"'
,
17
,
true
);
SELECT
setval
(
'"id_ruang_seq"'
,
26
,
true
);
ALTER
SEQUENCE
"id_ruang_seq"
OWNER
TO
"postgres"
;
SELECT
setval
(
'"no_rekam_medis"'
,
3
,
true
);
SELECT
setval
(
'"no_rekam_medis"'
,
127
,
true
);
ALTER
SEQUENCE
"no_rekam_medis"
OWNER
TO
"postgres"
;
ALTER
SEQUENCE
"pasien_id_pasien_seq"
OWNED
BY
"antrian_pasien"
.
"id_pasien"
;
SELECT
setval
(
'"pasien_id_pasien_seq"'
,
3
4
,
true
);
SELECT
setval
(
'"pasien_id_pasien_seq"'
,
3
5
,
true
);
ALTER
SEQUENCE
"pasien_id_pasien_seq"
OWNER
TO
"postgres"
;
ALTER
SEQUENCE
"poli_id_poli_seq"
OWNED
BY
"poli"
.
"id_poli"
;
SELECT
setval
(
'"poli_id_poli_seq"'
,
1
0
,
true
);
SELECT
setval
(
'"poli_id_poli_seq"'
,
20
0
,
true
);
ALTER
SEQUENCE
"poli_id_poli_seq"
OWNER
TO
"postgres"
;
ALTER
SEQUENCE
"register_antrian_id_register"
OWNED
BY
"register_antrian"
.
"id_register"
;
SELECT
setval
(
'"register_antrian_id_register"'
,
2
45
,
true
);
SELECT
setval
(
'"register_antrian_id_register"'
,
2
52
,
true
);
ALTER
SEQUENCE
"register_antrian_id_register"
OWNER
TO
"postgres"
;
ALTER
SEQUENCE
"user_data_header_iduser_seq1"
OWNED
BY
"user_data_header"
.
"iduser"
;
SELECT
setval
(
'"user_data_header_iduser_seq1"'
,
2
,
false
);
ALTER
SEQUENCE
"user_data_header_iduser_seq1"
OWNER
TO
"postgres"
;
ALTER
SEQUENCE
"user_data_header_iduser_seq"
OWNED
BY
"user_data_header"
.
"iduser"
;
SELECT
setval
(
'"user_data_header_iduser_seq"'
,
2
,
false
);
SELECT
setval
(
'"user_data_header_iduser_seq"'
,
3
,
false
);
ALTER
SEQUENCE
"user_data_header_iduser_seq"
OWNER
TO
"postgres"
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment