Commit 0f6047ed authored by Indra Raja's avatar Indra Raja

update database

parent 17518758
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
Target Server Version : 110005 Target Server Version : 110005
File Encoding : 65001 File Encoding : 65001
Date: 22/09/2020 16:55:39 Date: 23/09/2020 11:32:54
*/ */
...@@ -60,6 +60,18 @@ MAXVALUE 9223372036854775807 ...@@ -60,6 +60,18 @@ MAXVALUE 9223372036854775807
START 1 START 1
CACHE 1; CACHE 1;
-- ----------------------------
-- Sequence structure for id_dokter_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."id_dokter_seq";
CREATE SEQUENCE "public"."id_dokter_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1
CYCLE ;
-- ---------------------------- -- ----------------------------
-- Sequence structure for id_ruang_seq -- Sequence structure for id_ruang_seq
-- ---------------------------- -- ----------------------------
...@@ -175,6 +187,16 @@ INSERT INTO "public"."antrian" VALUES (1811, 7, 2, '2020-09-22'); ...@@ -175,6 +187,16 @@ INSERT INTO "public"."antrian" VALUES (1811, 7, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1812, 8, 2, '2020-09-22'); INSERT INTO "public"."antrian" VALUES (1812, 8, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1813, 9, 2, '2020-09-22'); INSERT INTO "public"."antrian" VALUES (1813, 9, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1814, 10, 2, '2020-09-22'); INSERT INTO "public"."antrian" VALUES (1814, 10, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1815, 1, 1, '2020-09-23');
INSERT INTO "public"."antrian" VALUES (1816, 2, 1, '2020-09-23');
INSERT INTO "public"."antrian" VALUES (1817, 3, 1, '2020-09-23');
INSERT INTO "public"."antrian" VALUES (1818, 4, 1, '2020-09-23');
INSERT INTO "public"."antrian" VALUES (1819, 5, 2, '2020-09-23');
INSERT INTO "public"."antrian" VALUES (1820, 6, 2, '2020-09-23');
INSERT INTO "public"."antrian" VALUES (1821, 7, 2, '2020-09-23');
INSERT INTO "public"."antrian" VALUES (1822, 8, 2, '2020-09-23');
INSERT INTO "public"."antrian" VALUES (1823, 9, 2, '2020-09-23');
INSERT INTO "public"."antrian" VALUES (1824, 10, 2, '2020-09-23');
-- ---------------------------- -- ----------------------------
-- Table structure for antrian_pasien -- Table structure for antrian_pasien
...@@ -205,6 +227,14 @@ CREATE TABLE "public"."antrian_pasien" ( ...@@ -205,6 +227,14 @@ CREATE TABLE "public"."antrian_pasien" (
-- Records of antrian_pasien -- Records of antrian_pasien
-- ---------------------------- -- ----------------------------
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 9, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 17, NULL, '2', 218, 1813, 10, 9, NULL); INSERT INTO "public"."antrian_pasien" VALUES (NULL, 9, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 17, NULL, '2', 218, 1813, 10, 9, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 1, '2020-09-23', NULL, NULL, NULL, NULL, NULL, 5, 7, NULL, '1', 219, 1815, NULL, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 3, '2020-09-23', NULL, NULL, NULL, NULL, NULL, 5, 7, NULL, '1', 219, 1817, NULL, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 5, '2020-09-23', NULL, NULL, NULL, NULL, NULL, 5, 7, NULL, '2', 219, 1819, NULL, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 6, '2020-09-23', NULL, NULL, NULL, NULL, NULL, 5, 7, NULL, '2', 219, 1820, NULL, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 7, '2020-09-23', NULL, NULL, NULL, NULL, NULL, 5, 7, NULL, '2', 219, 1821, NULL, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 8, '2020-09-23', NULL, NULL, NULL, NULL, NULL, 5, 7, NULL, '2', 219, 1822, NULL, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 9, '2020-09-23', NULL, NULL, NULL, NULL, NULL, 5, 7, NULL, '2', 219, 1823, NULL, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 10, '2020-09-23', NULL, NULL, NULL, NULL, NULL, 5, 7, NULL, '2', 219, 1824, NULL, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (2, 1, '2020-09-22', '', '', '', '', '', 5, 17, '', '1', 218, 1805, 10, 9, NULL); INSERT INTO "public"."antrian_pasien" VALUES (2, 1, '2020-09-22', '', '', '', '', '', 5, 17, '', '1', 218, 1805, 10, 9, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (3, 2, '2020-09-22', '', '', '', '', '', 5, 17, '', '1', 218, 1806, 10, 9, NULL); INSERT INTO "public"."antrian_pasien" VALUES (3, 2, '2020-09-22', '', '', '', '', '', 5, 17, '', '1', 218, 1806, 10, 9, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (4, 5, '2020-09-22', '', '', '', '', '', 5, 17, '', '2', 218, 1809, 10, 9, NULL); INSERT INTO "public"."antrian_pasien" VALUES (4, 5, '2020-09-22', '', '', '', '', '', 5, 17, '', '2', 218, 1809, 10, 9, NULL);
...@@ -234,22 +264,8 @@ INSERT INTO "public"."antrian_pasien" VALUES (7, 2, '2020-09-22', '', '', '', '' ...@@ -234,22 +264,8 @@ INSERT INTO "public"."antrian_pasien" VALUES (7, 2, '2020-09-22', '', '', '', ''
INSERT INTO "public"."antrian_pasien" VALUES (8, 3, '2020-09-22', '', '', '', '', '', 5, 16, '', '1', 217, 1797, 10, 8, NULL); INSERT INTO "public"."antrian_pasien" VALUES (8, 3, '2020-09-22', '', '', '', '', '', 5, 16, '', '1', 217, 1797, 10, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (9, 4, '2020-09-22', '', '', '', '', '', 5, 16, '', '1', 217, 1798, 10, 8, NULL); INSERT INTO "public"."antrian_pasien" VALUES (9, 4, '2020-09-22', '', '', '', '', '', 5, 16, '', '1', 217, 1798, 10, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (10, 5, '2020-09-22', '', '', '', '', '', 5, 16, '', '2', 217, 1799, 10, 8, NULL); INSERT INTO "public"."antrian_pasien" VALUES (10, 5, '2020-09-22', '', '', '', '', '', 5, 16, '', '2', 217, 1799, 10, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (11, 2, '2020-09-23', '', '', '', '', '', 5, 7, '', '1', 219, 1816, 50, 8, NULL);
-- ---------------------------- INSERT INTO "public"."antrian_pasien" VALUES (12, 4, '2020-09-23', '', '', '', '', '', 5, 7, '', '1', 219, 1818, 50, 8, NULL);
-- Table structure for condition
-- ----------------------------
DROP TABLE IF EXISTS "public"."condition";
CREATE TABLE "public"."condition" (
"id_condition" int2 NOT NULL,
"condition" varchar(255) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of condition
-- ----------------------------
INSERT INTO "public"."condition" VALUES (1, 'enable');
INSERT INTO "public"."condition" VALUES (2, 'disable');
-- ---------------------------- -- ----------------------------
-- Table structure for counter_status -- Table structure for counter_status
...@@ -289,20 +305,35 @@ CREATE TABLE "public"."divisi_witel" ( ...@@ -289,20 +305,35 @@ CREATE TABLE "public"."divisi_witel" (
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS "public"."dokter"; DROP TABLE IF EXISTS "public"."dokter";
CREATE TABLE "public"."dokter" ( CREATE TABLE "public"."dokter" (
"id_dokter" int2 NOT NULL DEFAULT nextval('id_dokter_seq'::regclass),
"nama_dokter" varchar(30) COLLATE "pg_catalog"."default",
"kode_dokter" varchar(255) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of dokter
-- ----------------------------
INSERT INTO "public"."dokter" VALUES (3, 'Indra', 'AZ');
-- ----------------------------
-- Table structure for dokter_to_poli
-- ----------------------------
DROP TABLE IF EXISTS "public"."dokter_to_poli";
CREATE TABLE "public"."dokter_to_poli" (
"id_dokter" int2 NOT NULL DEFAULT nextval('"dokter\_id_dokter_seq"'::regclass), "id_dokter" int2 NOT NULL DEFAULT nextval('"dokter\_id_dokter_seq"'::regclass),
"nama_dokter" varchar(30) COLLATE "pg_catalog"."default", "nama_dokter" varchar(30) COLLATE "pg_catalog"."default",
"id_poli" int2, "id_poli" int2,
"id_condition" int2, "id_condition" int2,
"kode_dokter" varchar(255) COLLATE "pg_catalog"."default" "kode_dokter" varchar(255) COLLATE "pg_catalog"."default",
"create_date" date
) )
; ;
-- ---------------------------- -- ----------------------------
-- Records of dokter -- Records of dokter_to_poli
-- ---------------------------- -- ----------------------------
INSERT INTO "public"."dokter" VALUES (15, 'azy', 5, 2, 'az'); INSERT INTO "public"."dokter_to_poli" VALUES (3, 'Indra', 5, 1, 'AZ', '2020-09-23');
INSERT INTO "public"."dokter" VALUES (16, 'indra', 5, 2, 'IJ');
INSERT INTO "public"."dokter" VALUES (17, 'anggi', 5, 2, 'AG');
-- ---------------------------- -- ----------------------------
-- Table structure for master_parameter -- Table structure for master_parameter
...@@ -362,6 +393,8 @@ INSERT INTO "public"."pasien" VALUES (NULL, '', '', '', '', '', '', '2020-09-22' ...@@ -362,6 +393,8 @@ INSERT INTO "public"."pasien" VALUES (NULL, '', '', '', '', '', '', '2020-09-22'
INSERT INTO "public"."pasien" VALUES (NULL, '', '', '', '', '', '', '2020-09-22'); INSERT INTO "public"."pasien" VALUES (NULL, '', '', '', '', '', '', '2020-09-22');
INSERT INTO "public"."pasien" VALUES (NULL, '', '', '', '', '', '', '2020-09-22'); INSERT INTO "public"."pasien" VALUES (NULL, '', '', '', '', '', '', '2020-09-22');
INSERT INTO "public"."pasien" VALUES (NULL, '', '', '', '', '', '', '2020-09-22'); INSERT INTO "public"."pasien" VALUES (NULL, '', '', '', '', '', '', '2020-09-22');
INSERT INTO "public"."pasien" VALUES (NULL, '', '', '', '', '', '', '2020-09-23');
INSERT INTO "public"."pasien" VALUES (NULL, '', '', '', '', '', '', '2020-09-23');
-- ---------------------------- -- ----------------------------
-- Table structure for poli -- Table structure for poli
...@@ -378,7 +411,8 @@ CREATE TABLE "public"."poli" ( ...@@ -378,7 +411,8 @@ CREATE TABLE "public"."poli" (
-- ---------------------------- -- ----------------------------
-- Records of poli -- Records of poli
-- ---------------------------- -- ----------------------------
INSERT INTO "public"."poli" VALUES (5, 'Umum', 'UM', 'abbbb'); INSERT INTO "public"."poli" VALUES (5, 'Umum', 'UM', 'ad');
INSERT INTO "public"."poli" VALUES (8, 'Poli Gigi', 'PG', 'adada');
-- ---------------------------- -- ----------------------------
-- Table structure for regional -- Table structure for regional
...@@ -412,6 +446,7 @@ INSERT INTO "public"."register_antrian" VALUES (210, 15, 5, 6, '2020-09-22', '6: ...@@ -412,6 +446,7 @@ INSERT INTO "public"."register_antrian" VALUES (210, 15, 5, 6, '2020-09-22', '6:
INSERT INTO "public"."register_antrian" VALUES (211, 10, 5, 10, '2020-09-22', '6:59', '0:16'); INSERT INTO "public"."register_antrian" VALUES (211, 10, 5, 10, '2020-09-22', '6:59', '0:16');
INSERT INTO "public"."register_antrian" VALUES (212, 10, 5, 10, '2020-09-22', '12:26', '0:20'); INSERT INTO "public"."register_antrian" VALUES (212, 10, 5, 10, '2020-09-22', '12:26', '0:20');
INSERT INTO "public"."register_antrian" VALUES (213, 10, 5, 10, '2020-09-22', '6:10', '0:10'); INSERT INTO "public"."register_antrian" VALUES (213, 10, 5, 10, '2020-09-22', '6:10', '0:10');
INSERT INTO "public"."register_antrian" VALUES (214, 10, 5, 10, '2020-09-23', '12:20', '0:11');
-- ---------------------------- -- ----------------------------
-- Table structure for register_dokter -- Table structure for register_dokter
...@@ -438,6 +473,7 @@ CREATE TABLE "public"."register_dokter" ( ...@@ -438,6 +473,7 @@ CREATE TABLE "public"."register_dokter" (
INSERT INTO "public"."register_dokter" VALUES (217, 5, 16, 8, 10, 5, 10, '2020-09-22', 1, '12:26', '0:20'); INSERT INTO "public"."register_dokter" VALUES (217, 5, 16, 8, 10, 5, 10, '2020-09-22', 1, '12:26', '0:20');
INSERT INTO "public"."register_dokter" VALUES (218, 5, 17, 9, 10, 5, 10, '2020-09-22', 1, '6:10', '0:10'); INSERT INTO "public"."register_dokter" VALUES (218, 5, 17, 9, 10, 5, 10, '2020-09-22', 1, '6:10', '0:10');
INSERT INTO "public"."register_dokter" VALUES (216, 5, 15, 7, 10, 5, 10, '2020-09-22', 1, '6:23', '0:16'); INSERT INTO "public"."register_dokter" VALUES (216, 5, 15, 7, 10, 5, 10, '2020-09-22', 1, '6:23', '0:16');
INSERT INTO "public"."register_dokter" VALUES (219, 5, 7, 8, 10, 5, 10, '2020-09-23', 1, '12:20', '0:11');
-- ---------------------------- -- ----------------------------
-- Table structure for ruang -- Table structure for ruang
...@@ -454,9 +490,7 @@ CREATE TABLE "public"."ruang" ( ...@@ -454,9 +490,7 @@ CREATE TABLE "public"."ruang" (
-- ---------------------------- -- ----------------------------
-- Records of ruang -- Records of ruang
-- ---------------------------- -- ----------------------------
INSERT INTO "public"."ruang" VALUES (7, '1.3', 5, 2); INSERT INTO "public"."ruang" VALUES (8, 'R 1.5', 5, 2);
INSERT INTO "public"."ruang" VALUES (8, 'R 1.4', 5, 2);
INSERT INTO "public"."ruang" VALUES (9, 'R 1.5', 5, 2);
-- ---------------------------- -- ----------------------------
-- Table structure for user_data_access -- Table structure for user_data_access
...@@ -589,10 +623,9 @@ CREATE TABLE "public"."user_data_session" ( ...@@ -589,10 +623,9 @@ CREATE TABLE "public"."user_data_session" (
-- ---------------------------- -- ----------------------------
-- Records of user_data_session -- Records of user_data_session
-- ---------------------------- -- ----------------------------
INSERT INTO "public"."user_data_session" VALUES ('u8q6kpsk5pif3445nr1ej9b3m7', 'KHANSIA', 1600742363, 86400, '__ZF|a:4:{s:20:"_REQUEST_ACCESS_TIME";d:1600742363.316467;s:6:"_VALID";a:1:{s:25:"Zend\Session\Validator\Id";s:26:"u8q6kpsk5pif3445nr1ej9b3m7";}s:3:"_LT";i:86400;s:3:"_LA";i:1600742363;}__KHANSIA|a:1:{s:14:"token_keamanan";s:32:"b54cb79bf5604b3d39cefb9ebe3dbb99";}', NULL);
INSERT INTO "public"."user_data_session" VALUES ('it28rc4rbdnt4l9qrrvicandnn', 'KHANSIA', 1600745683, 86400, '__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1600745683.935894;s:6:"_VALID";a:1:{s:25:"Zend\Session\Validator\Id";s:26:"it28rc4rbdnt4l9qrrvicandnn";}s:3:"_LT";i:86400;s:3:"_LA";i:1600745683;s:6:"_OWNER";s:1:"2";}__KHANSIA|a:14:{s:14:"token_keamanan";s:32:"271be47d8b807ba70ee152ec1acb20b0";s:7:"baseurl";s:18:"//skeleton16.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" VALUES ('it28rc4rbdnt4l9qrrvicandnn', 'KHANSIA', 1600745683, 86400, '__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1600745683.935894;s:6:"_VALID";a:1:{s:25:"Zend\Session\Validator\Id";s:26:"it28rc4rbdnt4l9qrrvicandnn";}s:3:"_LT";i:86400;s:3:"_LA";i:1600745683;s:6:"_OWNER";s:1:"2";}__KHANSIA|a:14:{s:14:"token_keamanan";s:32:"271be47d8b807ba70ee152ec1acb20b0";s:7:"baseurl";s:18:"//skeleton16.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" VALUES ('o9k9a6554nna0uufbidq8spu8s', 'KHANSIA', 1600744418, 86400, '__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1600744417.995555;s:6:"_VALID";a:1:{s:25:"Zend\Session\Validator\Id";s:26:"o9k9a6554nna0uufbidq8spu8s";}s:3:"_LT";i:86400;s:3:"_LA";i:1600744418;s:6:"_OWNER";s:1:"2";}__KHANSIA|a:14:{s:14:"token_keamanan";s:32:"bf07fef87743e59cc750ac97f66ee3c1";s:7:"baseurl";s:18:"//skeleton15.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" VALUES ('77j0vj9vahnbu84i2sb5ceo41s', 'KHANSIA', 1600835021, 86400, '__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1600835021.393551;s:6:"_VALID";a:1:{s:25:"Zend\Session\Validator\Id";s:26:"77j0vj9vahnbu84i2sb5ceo41s";}s:3:"_LT";i:86400;s:3:"_LA";i:1600835021;s:6:"_OWNER";s:1:"2";}__KHANSIA|a:14:{s:14:"token_keamanan";s:32:"c363b022db85dffca75134250114aaf8";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" VALUES ('8e7im25fc6a2i57hc5mee01ugp', 'KHANSIA', 1600766955, 86400, '__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1600766955.256857;s:6:"_VALID";a:1:{s:25:"Zend\Session\Validator\Id";s:26:"8e7im25fc6a2i57hc5mee01ugp";}s:3:"_LT";i:86400;s:3:"_LA";i:1600766955;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'); INSERT INTO "public"."user_data_session" VALUES ('8e7im25fc6a2i57hc5mee01ugp', 'KHANSIA', 1600833370, 86400, '__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1600833370.930789;s:6:"_VALID";a:1:{s:25:"Zend\Session\Validator\Id";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');
-- ---------------------------- -- ----------------------------
-- Function structure for get_antrian_self -- Function structure for get_antrian_self
...@@ -734,35 +767,42 @@ $BODY$ ...@@ -734,35 +767,42 @@ $BODY$
-- ---------------------------- -- ----------------------------
ALTER SEQUENCE "public"."antrian_id_antrian" ALTER SEQUENCE "public"."antrian_id_antrian"
OWNED BY "public"."antrian"."id_antrian"; OWNED BY "public"."antrian"."id_antrian";
SELECT setval('"public"."antrian_id_antrian"', 1815, true); SELECT setval('"public"."antrian_id_antrian"', 1825, true);
-- ---------------------------- -- ----------------------------
-- Alter sequences owned by -- Alter sequences owned by
-- ---------------------------- -- ----------------------------
ALTER SEQUENCE "public"."dokter\_id_dokter_seq" ALTER SEQUENCE "public"."dokter\_id_dokter_seq"
OWNED BY "public"."dokter"."id_dokter"; OWNED BY "public"."dokter_to_poli"."id_dokter";
SELECT setval('"public"."dokter\_id_dokter_seq"', 18, true); SELECT setval('"public"."dokter\_id_dokter_seq"', 4, true);
-- ---------------------------- -- ----------------------------
-- Alter sequences owned by -- Alter sequences owned by
-- ---------------------------- -- ----------------------------
ALTER SEQUENCE "public"."id_antrian_seq" ALTER SEQUENCE "public"."id_antrian_seq"
OWNED BY "public"."register_dokter"."id_register"; OWNED BY "public"."register_dokter"."id_register";
SELECT setval('"public"."id_antrian_seq"', 219, true); SELECT setval('"public"."id_antrian_seq"', 220, true);
-- ---------------------------- -- ----------------------------
-- Alter sequences owned by -- Alter sequences owned by
-- ---------------------------- -- ----------------------------
ALTER SEQUENCE "public"."id_antrian_seq2" ALTER SEQUENCE "public"."id_antrian_seq2"
OWNED BY "public"."antrian_pasien"."id_antrian"; OWNED BY "public"."antrian_pasien"."id_antrian";
SELECT setval('"public"."id_antrian_seq2"', 1815, true); SELECT setval('"public"."id_antrian_seq2"', 1825, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."id_dokter_seq"
OWNED BY "public"."dokter"."id_dokter";
SELECT setval('"public"."id_dokter_seq"', 4, true);
-- ---------------------------- -- ----------------------------
-- Alter sequences owned by -- Alter sequences owned by
-- ---------------------------- -- ----------------------------
ALTER SEQUENCE "public"."id_ruang_seq" ALTER SEQUENCE "public"."id_ruang_seq"
OWNED BY "public"."ruang"."id_ruang"; OWNED BY "public"."ruang"."id_ruang";
SELECT setval('"public"."id_ruang_seq"', 10, true); SELECT setval('"public"."id_ruang_seq"', 13, true);
-- ---------------------------- -- ----------------------------
-- Alter sequences owned by -- Alter sequences owned by
...@@ -776,14 +816,14 @@ SELECT setval('"public"."pasien_id_pasien_seq"', 34, true); ...@@ -776,14 +816,14 @@ SELECT setval('"public"."pasien_id_pasien_seq"', 34, true);
-- ---------------------------- -- ----------------------------
ALTER SEQUENCE "public"."poli_id_poli_seq" ALTER SEQUENCE "public"."poli_id_poli_seq"
OWNED BY "public"."poli"."id_poli"; OWNED BY "public"."poli"."id_poli";
SELECT setval('"public"."poli_id_poli_seq"', 6, true); SELECT setval('"public"."poli_id_poli_seq"', 9, true);
-- ---------------------------- -- ----------------------------
-- Alter sequences owned by -- Alter sequences owned by
-- ---------------------------- -- ----------------------------
ALTER SEQUENCE "public"."register_antrian_id_register" ALTER SEQUENCE "public"."register_antrian_id_register"
OWNED BY "public"."register_antrian"."id_register"; OWNED BY "public"."register_antrian"."id_register";
SELECT setval('"public"."register_antrian_id_register"', 214, true); SELECT setval('"public"."register_antrian_id_register"', 215, true);
-- ---------------------------- -- ----------------------------
-- Alter sequences owned by -- Alter sequences owned by
...@@ -792,11 +832,6 @@ ALTER SEQUENCE "public"."user_data_header_iduser_seq" ...@@ -792,11 +832,6 @@ ALTER SEQUENCE "public"."user_data_header_iduser_seq"
OWNED BY "public"."user_data_header"."iduser"; OWNED BY "public"."user_data_header"."iduser";
SELECT setval('"public"."user_data_header_iduser_seq"', 2, false); SELECT setval('"public"."user_data_header_iduser_seq"', 2, false);
-- ----------------------------
-- Primary Key structure for table condition
-- ----------------------------
ALTER TABLE "public"."condition" ADD CONSTRAINT "condition_pkey" PRIMARY KEY ("id_condition");
-- ---------------------------- -- ----------------------------
-- Primary Key structure for table counter_status -- Primary Key structure for table counter_status
-- ---------------------------- -- ----------------------------
...@@ -817,12 +852,17 @@ ALTER TABLE "public"."divisi_witel" ADD CONSTRAINT "divisi_witel_pkey" PRIMARY K ...@@ -817,12 +852,17 @@ ALTER TABLE "public"."divisi_witel" ADD CONSTRAINT "divisi_witel_pkey" PRIMARY K
-- ---------------------------- -- ----------------------------
-- Primary Key structure for table dokter -- Primary Key structure for table dokter
-- ---------------------------- -- ----------------------------
ALTER TABLE "public"."dokter" ADD CONSTRAINT "dokter\_pkey" PRIMARY KEY ("id_dokter"); ALTER TABLE "public"."dokter" ADD CONSTRAINT "dokter_to_poli_copy1_pkey" PRIMARY KEY ("id_dokter");
-- ----------------------------
-- Primary Key structure for table dokter_to_poli
-- ----------------------------
ALTER TABLE "public"."dokter_to_poli" ADD CONSTRAINT "dokter\_pkey" PRIMARY KEY ("id_dokter");
-- ---------------------------- -- ----------------------------
-- Foreign Keys structure for table dokter -- Foreign Keys structure for table dokter_to_poli
-- ---------------------------- -- ----------------------------
ALTER TABLE "public"."dokter" ADD CONSTRAINT "dokter to poli" FOREIGN KEY ("id_poli") REFERENCES "public"."poli" ("id_poli") ON DELETE NO ACTION ON UPDATE NO ACTION; ALTER TABLE "public"."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;
-- ---------------------------- -- ----------------------------
-- Indexes structure for table master_parameter -- Indexes structure for table master_parameter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment