Commit 98b4b32f authored by Indra Raja's avatar Indra Raja

menambahkan validasi dan udpate database

parent 0f6047ed
......@@ -28,12 +28,12 @@ class AdminController extends \Application\Master\GlobalActionController
$view = new ViewModel();
$result = new Result();
/* get url */
// $uri = $this->getRequest()->getUri();
// $baseurl = sprintf('//%s', $uri->getHost());
// $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
// $this->headScript->appendFile('/action-js/index-js/action-listdata.js');
$uri = $this->getRequest()->getUri();
$baseurl = sprintf('//%s', $uri->getHost());
$this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
$this->headScript->appendFile('/action-js/antrian-js/action-panggil.js');
$this->layout("layout/layoutAdmin");
return $view;
......
......@@ -54,7 +54,7 @@ class ApiController extends \Application\Master\GlobalActionController {
}
public function savedataAction(){
if($this->isLoggedIn()){
$result = new Result();
$request = $this->getRequest();
$post = $request->getPost();
......@@ -123,9 +123,7 @@ class ApiController extends \Application\Master\GlobalActionController {
}catch (\Exception $exc) {
$result = new Result(0,1,$exc->getMessage() .'-'.$exc->getTraceAsString());
}
}else{
$result = new Result(0,401,'Silahkan masuk untuk melanjutkan');
}
}
return $this->getOutput($result->toJson());
}
......
<section class="warn"></section>
<select name="voice" id="voices" disabled>
</select><br><br>
<textarea disabled></textarea>
<button id="submit" onclick="speaker.speak();" disabled>Text to Speech</button>
\ No newline at end of file
......@@ -97,7 +97,7 @@
<div class="modal-body">
<form id="myForm" >
<input type="input" id="id_dokter" class="form-control" /></input>
<input type="hidden" id="id_dokter" class="form-control" /></input>
<div class="form-group">
<label>Nama Poli</label>
......
......@@ -152,6 +152,8 @@ $('#dokter').on('change', function () {
tampilangka();
});
$('#no_antrian').html('-');
function tampilangka() {
var iddokter = $('#dokter').val();
......
const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
var recognition = new SpeechRecognition();
recognition.onresult = function(event) {
if (event.results.length > 0) {
query.value = event.results[0][0].transcript;
query.form.submit();
}
}
var Speaker = function () {
var synth
var utterance
var voices
this.init = function () {
// CHECK FOR SPEECHSYNTHESIS API
if (!(window.speechSynthesis)) {
warn("Your browser is not capable of speech synthesis.")
return
}
// INITIALIZE SPEECH SYNTHESIS API ELEMENTS
synth = window.speechSynthesis
voices = synth.getVoices()
utterance = new SpeechSynthesisUtterance("Hello World!");
// CHECK FOR AVAILABLE VOICES
if (voices.length <= 0) {
warn("No voices are provided by either your browser or system.")
return
}
// ADD VOICE INDICES
voices.forEach(function (voice, a) {
voice.voice_index = a
})
// POPULATE VOICES LIST AND ENABLE INPUT ELEMENTS
populateVoicesList();
$(".warn").css("display", "none");
$("button#submit").removeAttr("disabled");
$("textarea").removeAttr("disabled");
$("select#voices").removeAttr("disabled");
// SET AN ENGLISH VOICE AS DEFAULT
var englishes = voices.filter(function (voice) { return voice.default && voice.lang.substr(0, 2) == "en" })
if (englishes.length > 0) {
$("#voices option[value=\"" + englishes[0].voice_index + "\"]").prop("selected", true)
}
clearInterval(timer)
}
function addVoices(languageName, filterBy) {
// Filter voices by filterBy function
var filteredVoices = voices.filter(filterBy)
// Add group only if there is at least one voice
if (filteredVoices.length > 0) {
// Add optgroup
$("#voices").append('<optgroup label="' + languageName + '">')
// Add option for each voice
filteredVoices.forEach(function (el, idx, arr) {
$("#voices").append('<option value="' + el.voice_index + '">' + el.name + ' (' + el.lang + ')' + '</option>')
})
// End optgroup
$("#voices").append('</optgroup>')
}
}
function warn(str) {
$(".warn").css("display", "block");
// $(".reason").append(str);
$("button#submit").attr("disabled");
$("textarea").attr("disabled");
$("select#voices").attr("disabled");
}
function getSelectedVoice() {
return voices[$("#voices option:selected").val()]
}
this.speak = function () {
// Cancel current voice if it's currently talking so new text can be read immediately
synth.cancel();
// CREATE NEW UTTERANCE AND SPEAK IF VOICE IS AVAILABLE
utterance = new SpeechSynthesisUtterance($("textarea").val());
var selectedVoice = getSelectedVoice()
if (selectedVoice) {
utterance.voice = selectedVoice
}
synth.speak(utterance);
}
}
var speaker = new Speaker()
var timer
$(document).ready(function () {
$(".warn").css("display", "none");
timer = setInterval(function () {
speaker.init();
}, 3);
});
\ No newline at end of file
......@@ -26,8 +26,8 @@ $(document).ready(function () {
required: true,
separator: ':',
duration: true,
minimum: '00:10',
maximum: '00:20',
minimum: '00:01',
maximum: '00:59',
durationNegative: true
});
});
......@@ -36,8 +36,8 @@ $(document).ready(function () {
required: true,
separator: ':',
duration: true,
minimum: '06:00',
maximum: '18:00',
minimum: '00:00',
maximum: '23:00',
durationNegative: true
});
});
......@@ -233,7 +233,20 @@ function LoadDadta(id) {
});
}
function kondisi() {
$('#tambah').on('click', function () {
SaveDataRegister()
})
function SaveDataRegister(param) {
let ruang = $("#ruang option:selected").attr("value");
let poli = $('#poli option:selected').attr("value");
let dokter = $('#dokter option:selected').attr("value");
......@@ -242,6 +255,30 @@ function kondisi() {
let antrian_akhir = $('#antrian_akhir').val();
let waktu_antrian = $('#waktu_antrian').val();
let jam_mulai = $('#jam_mulai').val();
/* save data */
$.ajax({
type: 'POST',
dataType: 'json',
url: baseURL + '/api/saveregister',
data: {
iruang: ruang,
id: param,
iantrian_all: antrian_all,//variable json diisi oleh variable yang menyimpan data inputan
iantrian_awal: antrian_awal,
iantrian_akhir: antrian_akhir,
iwaktu_antrian: waktu_antrian,
ipoli: poli,
idokter: dokter,
ijam_mulai: jam_mulai,
},
success: function (result) {
if (ruang == null || ruang == "") {
swal({
title: "",
......@@ -362,51 +399,7 @@ function kondisi() {
});
return false;
}
}
$('#tambah').on('click', function () {
kondisi()
SaveDataRegister()
})
function SaveDataRegister(param) {
let ruang = $("#ruang option:selected").attr("value");
let poli = $('#poli option:selected').attr("value");
let dokter = $('#dokter option:selected').attr("value");
let antrian_all = $('#antrian_all').val();
let antrian_awal = $('#antrian_awal').val();
let antrian_akhir = $('#antrian_akhir').val();
let waktu_antrian = $('#waktu_antrian').val();
let jam_mulai = $('#jam_mulai').val();
/* save data */
$.ajax({
type: 'POST',
dataType: 'json',
url: baseURL + '/api/saveregister',
data: {
iruang: ruang,
id: param,
iantrian_all: antrian_all,//variable json diisi oleh variable yang menyimpan data inputan
iantrian_awal: antrian_awal,
iantrian_akhir: antrian_akhir,
iwaktu_antrian: waktu_antrian,
ipoli: poli,
idokter: dokter,
ijam_mulai: jam_mulai,
},
success: function (result) {
// console.log(result);
if (result.code == 0) {
else if (result.code == 0) {
swal({
title: "<span style='color:#222'>Good Job!</span>",
confirmButtonColor: "#66BB6A",
......
/*
Navicat Premium Data Transfer
Source Server : localhost_5432
Source Server Type : PostgreSQL
Source Server Version : 110005
Source Host : localhost:5432
Source Catalog : antrian
Source Schema : public
Target Server Type : PostgreSQL
Target Server Version : 110005
File Encoding : 65001
Date: 23/09/2020 11:32:54
PostgreSQL Backup
Database: antrian/public
Backup Time: 2020-09-24 10:55:02
*/
-- ----------------------------
-- Sequence structure for antrian_id_antrian
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."antrian_id_antrian";
CREATE SEQUENCE "public"."antrian_id_antrian"
DROP SEQUENCE IF EXISTS "public"."dokter\_id_dokter_seq";
DROP SEQUENCE IF EXISTS "public"."id_antrian_seq2";
DROP SEQUENCE IF EXISTS "public"."id_antrian_seq";
DROP SEQUENCE IF EXISTS "public"."id_dokter_seq";
DROP SEQUENCE IF EXISTS "public"."id_ruang_seq";
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_seq";
DROP TABLE IF EXISTS "public"."antrian";
DROP TABLE IF EXISTS "public"."antrian_pasien";
DROP TABLE IF EXISTS "public"."condition";
DROP TABLE IF EXISTS "public"."counter_status";
DROP TABLE IF EXISTS "public"."divisi_witel";
DROP TABLE IF EXISTS "public"."dokter";
DROP TABLE IF EXISTS "public"."dokter_to_poli";
DROP TABLE IF EXISTS "public"."master_parameter";
DROP TABLE IF EXISTS "public"."pasien";
DROP TABLE IF EXISTS "public"."poli";
DROP TABLE IF EXISTS "public"."regional";
DROP TABLE IF EXISTS "public"."register_antrian";
DROP TABLE IF EXISTS "public"."register_dokter";
DROP TABLE IF EXISTS "public"."ruang";
DROP TABLE IF EXISTS "public"."user_data_access";
DROP TABLE IF EXISTS "public"."user_data_header";
DROP TABLE IF EXISTS "public"."user_data_map";
DROP TABLE IF EXISTS "public"."user_data_role";
DROP TABLE IF EXISTS "public"."user_data_session";
DROP FUNCTION IF EXISTS "public"."get_antrian_self()";
DROP FUNCTION IF EXISTS "public"."get_antriann(kode_antrian int4)";
DROP FUNCTION IF EXISTS "public"."get_film_count(len_from int4, len_to int4)";
DROP FUNCTION IF EXISTS "public"."get_no_mobile()";
DROP FUNCTION IF EXISTS "public"."get_no_web()";
DROP FUNCTION IF EXISTS "public"."insert_data(input_id_pasien int4, input_id_poli int4)";
CREATE SEQUENCE "antrian_id_antrian"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for dokter\_id_dokter_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."dokter\_id_dokter_seq";
CREATE SEQUENCE "public"."dokter\_id_dokter_seq"
CREATE SEQUENCE "dokter\_id_dokter_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 32767
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for id_antrian_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."id_antrian_seq";
CREATE SEQUENCE "public"."id_antrian_seq"
CREATE SEQUENCE "id_antrian_seq2"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for id_antrian_seq2
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."id_antrian_seq2";
CREATE SEQUENCE "public"."id_antrian_seq2"
CREATE SEQUENCE "id_antrian_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for id_dokter_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."id_dokter_seq";
CREATE SEQUENCE "public"."id_dokter_seq"
CREATE SEQUENCE "id_dokter_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1
CYCLE ;
-- ----------------------------
-- Sequence structure for id_ruang_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."id_ruang_seq";
CREATE SEQUENCE "public"."id_ruang_seq"
CREATE SEQUENCE "id_ruang_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for pasien_id_pasien_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."pasien_id_pasien_seq";
CREATE SEQUENCE "public"."pasien_id_pasien_seq"
CREATE SEQUENCE "no_rekam_medis"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for poli_id_poli_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."poli_id_poli_seq";
CREATE SEQUENCE "public"."poli_id_poli_seq"
CREATE SEQUENCE "pasien_id_pasien_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
CREATE SEQUENCE "poli_id_poli_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 32767
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for register_antrian_id_register
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."register_antrian_id_register";
CREATE SEQUENCE "public"."register_antrian_id_register"
CREATE SEQUENCE "register_antrian_id_register"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for user_data_header_iduser_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."user_data_header_iduser_seq";
CREATE SEQUENCE "public"."user_data_header_iduser_seq"
CREATE SEQUENCE "user_data_header_iduser_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 2147483647
START 1
CACHE 1;
-- ----------------------------
-- Table structure for antrian
-- ----------------------------
DROP TABLE IF EXISTS "public"."antrian";
CREATE TABLE "public"."antrian" (
CREATE TABLE "antrian" (
"id_antrian" int2 DEFAULT nextval('antrian_id_antrian'::regclass),
"no_antrian" int2,
"kode_antrian" int2,
"create_date" date
)
;
-- ----------------------------
-- Records of antrian
-- ----------------------------
INSERT INTO "public"."antrian" VALUES (1770, 1, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1771, 2, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1772, 3, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1773, 4, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1774, 5, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1775, 6, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1776, 7, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1777, 8, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1778, 9, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1779, 10, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1780, 11, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1781, 12, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1782, 13, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1783, 14, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1784, 15, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1785, 1, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1786, 2, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1787, 3, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1788, 4, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1789, 5, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1790, 6, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1791, 7, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1792, 8, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1793, 9, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1794, 10, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1795, 1, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1796, 2, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1797, 3, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1798, 4, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1799, 5, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1800, 6, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1801, 7, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1802, 8, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1803, 9, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1804, 10, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1805, 1, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1806, 2, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1807, 3, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1808, 4, 1, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1809, 5, 2, '2020-09-22');
INSERT INTO "public"."antrian" VALUES (1810, 6, 2, '2020-09-22');
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 (1813, 9, 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
-- ----------------------------
DROP TABLE IF EXISTS "public"."antrian_pasien";
CREATE TABLE "public"."antrian_pasien" (
ALTER TABLE "antrian" OWNER TO "postgres";
CREATE TABLE "antrian_pasien" (
"id_pasien" int2,
"no_antrian" int2,
"create_date" date,
......@@ -222,105 +135,36 @@ CREATE TABLE "public"."antrian_pasien" (
"waktu" time(6)
)
;
-- ----------------------------
-- 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, 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 (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 (5, 6, '2020-09-22', '', '', '', '', '', 5, 17, '', '2', 218, 1810, 10, 9, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 10, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 17, NULL, '2', 218, 1814, 10, 9, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 2, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 15, NULL, '1', 216, 1786, 10, 7, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 3, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 15, NULL, '1', 216, 1787, 10, 7, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 4, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 15, NULL, '1', 216, 1788, 10, 7, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 5, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 15, NULL, '2', 216, 1789, 10, 7, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 6, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 15, NULL, '2', 216, 1790, 10, 7, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 7, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 15, NULL, '2', 216, 1791, 10, 7, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 8, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 15, NULL, '2', 216, 1792, 10, 7, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 9, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 15, NULL, '2', 216, 1793, 10, 7, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 10, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 15, NULL, '2', 216, 1794, 10, 7, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 6, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 16, NULL, '2', 217, 1800, 10, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 7, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 16, NULL, '2', 217, 1801, 10, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 8, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 16, NULL, '2', 217, 1802, 10, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 9, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 16, NULL, '2', 217, 1803, 10, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 10, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 16, NULL, '2', 217, 1804, 10, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (1, 1, '2020-09-22', '', '', '', '', '', 5, 15, '', '1', 216, 1785, 10, 7, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 3, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 17, NULL, '1', 218, 1807, 10, 9, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 4, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 17, NULL, '1', 218, 1808, 10, 9, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 7, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 17, NULL, '2', 218, 1811, 10, 9, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (NULL, 8, '2020-09-22', NULL, NULL, NULL, NULL, NULL, 5, 17, NULL, '2', 218, 1812, 10, 9, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (6, 1, '2020-09-22', '', '', '', '', '', 5, 16, '', '1', 217, 1795, 10, 8, NULL);
INSERT INTO "public"."antrian_pasien" VALUES (7, 2, '2020-09-22', '', '', '', '', '', 5, 16, '', '1', 217, 1796, 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 (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 counter_status
-- ----------------------------
DROP TABLE IF EXISTS "public"."counter_status";
CREATE TABLE "public"."counter_status" (
ALTER TABLE "antrian_pasien" OWNER TO "postgres";
CREATE TABLE "condition" (
"id_condition" int2 NOT NULL,
"condition" varchar(255) COLLATE "pg_catalog"."default"
)
;
ALTER TABLE "condition" OWNER TO "postgres";
CREATE TABLE "counter_status" (
"id_status" int2 NOT NULL,
"status_code" int2,
"status_name" varchar(255) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of counter_status
-- ----------------------------
INSERT INTO "public"."counter_status" VALUES (1, 10, 'Queue');
INSERT INTO "public"."counter_status" VALUES (2, 20, 'Next');
INSERT INTO "public"."counter_status" VALUES (3, 30, 'Call');
INSERT INTO "public"."counter_status" VALUES (4, 40, 'Served');
INSERT INTO "public"."counter_status" VALUES (5, 50, 'Done');
INSERT INTO "public"."counter_status" VALUES (6, 60, 'Missed');
-- ----------------------------
-- Table structure for divisi_witel
-- ----------------------------
DROP TABLE IF EXISTS "public"."divisi_witel";
CREATE TABLE "public"."divisi_witel" (
ALTER TABLE "counter_status" OWNER TO "postgres";
CREATE TABLE "divisi_witel" (
"divisi_witel_id" varchar(3) COLLATE "pg_catalog"."default" NOT NULL,
"divisi_witel_name" varchar(32) COLLATE "pg_catalog"."default",
"id_dmaco" int4,
"witel_imon" varchar(100) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Table structure for dokter
-- ----------------------------
DROP TABLE IF EXISTS "public"."dokter";
CREATE TABLE "public"."dokter" (
ALTER TABLE "divisi_witel" OWNER TO "postgres";
CREATE TABLE "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" (
ALTER TABLE "dokter" OWNER TO "postgres";
CREATE TABLE "dokter_to_poli" (
"id_dokter" int2 NOT NULL DEFAULT nextval('"dokter\_id_dokter_seq"'::regclass),
"nama_dokter" varchar(30) COLLATE "pg_catalog"."default",
"id_poli" int2,
......@@ -329,17 +173,8 @@ CREATE TABLE "public"."dokter_to_poli" (
"create_date" date
)
;
-- ----------------------------
-- Records of dokter_to_poli
-- ----------------------------
INSERT INTO "public"."dokter_to_poli" VALUES (3, 'Indra', 5, 1, 'AZ', '2020-09-23');
-- ----------------------------
-- Table structure for master_parameter
-- ----------------------------
DROP TABLE IF EXISTS "public"."master_parameter";
CREATE TABLE "public"."master_parameter" (
ALTER TABLE "dokter_to_poli" OWNER TO "postgres";
CREATE TABLE "master_parameter" (
"idm_parameter" int4 NOT NULL,
"param_type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"param_val1" varchar(500) COLLATE "pg_catalog"."default",
......@@ -349,26 +184,9 @@ CREATE TABLE "public"."master_parameter" (
"param_parent" int4
)
;
COMMENT ON TABLE "public"."master_parameter" IS 'master parameter';
-- ----------------------------
-- Records of master_parameter
-- ----------------------------
INSERT INTO "public"."master_parameter" VALUES (1, 'USER_STATUS', 'ACTIVE', '10', NULL, 'USER ACTIVE GANS', NULL);
INSERT INTO "public"."master_parameter" VALUES (2, 'USER_STATUS', 'NOT ACTIVE', '20', NULL, 'USER NOT ACTIVE GANS', NULL);
INSERT INTO "public"."master_parameter" VALUES (3, 'USER_STATUS', 'BLOCKED', '30', NULL, 'USER NA DIBLOCK', NULL);
INSERT INTO "public"."master_parameter" VALUES (4, 'INPUT_TYPE', 'INPUT', '1', NULL, NULL, NULL);
INSERT INTO "public"."master_parameter" VALUES (5, 'INPUT_TYPE', 'TEXTAREA', '2', NULL, NULL, NULL);
INSERT INTO "public"."master_parameter" VALUES (6, 'INPUT_OPTION', 'SELECT_OPTION', '3', NULL, NULL, NULL);
INSERT INTO "public"."master_parameter" VALUES (7, 'INPUT_RADIO', 'RADION_BUTTON', '4', NULL, NULL, NULL);
INSERT INTO "public"."master_parameter" VALUES (8, 'TYPE_DATA', 'I_VARCHAR', '1', NULL, 'JENIS INPUTAN VARCHAR', NULL);
INSERT INTO "public"."master_parameter" VALUES (9, 'TYPE_DATA', 'I_NUMBER', '2', NULL, 'JENIS INPUTAN NUMBER', NULL);
-- ----------------------------
-- Table structure for pasien
-- ----------------------------
DROP TABLE IF EXISTS "public"."pasien";
CREATE TABLE "public"."pasien" (
ALTER TABLE "master_parameter" OWNER TO "postgres";
COMMENT ON TABLE "master_parameter" IS 'master parameter';
CREATE TABLE "pasien" (
"id_pasien" int2,
"nama" varchar(255) COLLATE "pg_catalog"."default",
"tempat_lahir" varchar(255) COLLATE "pg_catalog"."default",
......@@ -376,59 +194,26 @@ CREATE TABLE "public"."pasien" (
"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,
"no_rekam_medis" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT lpad((nextval('no_rekam_medis'::regclass))::text, 8, '0'::text)
)
;
-- ----------------------------
-- Records of pasien
-- ----------------------------
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-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
-- ----------------------------
DROP TABLE IF EXISTS "public"."poli";
CREATE TABLE "public"."poli" (
ALTER TABLE "pasien" OWNER TO "postgres";
CREATE TABLE "poli" (
"id_poli" int2 NOT NULL DEFAULT nextval('poli_id_poli_seq'::regclass),
"nama_poli" varchar(255) COLLATE "pg_catalog"."default",
"kode_poli" varchar(5) COLLATE "pg_catalog"."default",
"deskripsi_poli" varchar(255) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of poli
-- ----------------------------
INSERT INTO "public"."poli" VALUES (5, 'Umum', 'UM', 'ad');
INSERT INTO "public"."poli" VALUES (8, 'Poli Gigi', 'PG', 'adada');
-- ----------------------------
-- Table structure for regional
-- ----------------------------
DROP TABLE IF EXISTS "public"."regional";
CREATE TABLE "public"."regional" (
ALTER TABLE "poli" OWNER TO "postgres";
CREATE TABLE "regional" (
"id_regional" int4 NOT NULL,
"regional_name" varchar(30) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Table structure for register_antrian
-- ----------------------------
DROP TABLE IF EXISTS "public"."register_antrian";
CREATE TABLE "public"."register_antrian" (
ALTER TABLE "regional" OWNER TO "postgres";
CREATE TABLE "register_antrian" (
"id_register" int2 DEFAULT nextval('register_antrian_id_register'::regclass),
"antrian_all" int2,
"antrian_awal" int2,
......@@ -438,21 +223,8 @@ CREATE TABLE "public"."register_antrian" (
"waktu_antrian" varchar(6) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of register_antrian
-- ----------------------------
INSERT INTO "public"."register_antrian" VALUES (210, 15, 5, 6, '2020-09-22', '6:15', '0:14');
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 (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
-- ----------------------------
DROP TABLE IF EXISTS "public"."register_dokter";
CREATE TABLE "public"."register_dokter" (
ALTER TABLE "register_antrian" OWNER TO "postgres";
CREATE TABLE "register_dokter" (
"id_register" int2 DEFAULT nextval('id_antrian_seq'::regclass),
"id_poli" int2,
"id_dokter" int2,
......@@ -466,37 +238,16 @@ CREATE TABLE "public"."register_dokter" (
"waktu_antrian" varchar(6) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of 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 (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 (219, 5, 7, 8, 10, 5, 10, '2020-09-23', 1, '12:20', '0:11');
-- ----------------------------
-- Table structure for ruang
-- ----------------------------
DROP TABLE IF EXISTS "public"."ruang";
CREATE TABLE "public"."ruang" (
ALTER TABLE "register_dokter" OWNER TO "postgres";
CREATE TABLE "ruang" (
"id_ruang" int2 NOT NULL DEFAULT nextval('id_ruang_seq'::regclass),
"nama_ruang" varchar(255) COLLATE "pg_catalog"."default",
"id_poli" int2,
"id_condition" int2
)
;
-- ----------------------------
-- Records of ruang
-- ----------------------------
INSERT INTO "public"."ruang" VALUES (8, 'R 1.5', 5, 2);
-- ----------------------------
-- Table structure for user_data_access
-- ----------------------------
DROP TABLE IF EXISTS "public"."user_data_access";
CREATE TABLE "public"."user_data_access" (
ALTER TABLE "ruang" OWNER TO "postgres";
CREATE TABLE "user_data_access" (
"access_id" int4 NOT NULL,
"access_name" varchar(50) COLLATE "pg_catalog"."default",
"access_type" varchar(255) COLLATE "pg_catalog"."default",
......@@ -506,21 +257,10 @@ CREATE TABLE "public"."user_data_access" (
"access_controller" varchar(100) COLLATE "pg_catalog"."default"
)
;
COMMENT ON COLUMN "public"."user_data_access"."access_action" IS 'NAMA FUNGSI PHP';
COMMENT ON COLUMN "public"."user_data_access"."access_controller" IS 'NAMA CONTROLLERNYA';
-- ----------------------------
-- Records of user_data_access
-- ----------------------------
INSERT INTO "public"."user_data_access" VALUES (1, 'DELETE TEST DATA', 'ACTION', 10, 'TEST FUNCTION', NULL, NULL);
INSERT INTO "public"."user_data_access" VALUES (2, 'MENU TEST DATA', 'MENU', 20, 'TEST MENU', NULL, NULL);
INSERT INTO "public"."user_data_access" VALUES (3, 'USER MANAGEMENT', 'MENU', 30, 'MENU USER MANAMEGENT', 'usermanagement', 'UserController');
-- ----------------------------
-- Table structure for user_data_header
-- ----------------------------
DROP TABLE IF EXISTS "public"."user_data_header";
CREATE TABLE "public"."user_data_header" (
ALTER TABLE "user_data_access" OWNER TO "postgres";
COMMENT ON COLUMN "user_data_access"."access_action" IS 'NAMA FUNGSI PHP';
COMMENT ON COLUMN "user_data_access"."access_controller" IS 'NAMA CONTROLLERNYA';
CREATE TABLE "user_data_header" (
"iduser" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY (
INCREMENT 1
MINVALUE 1
......@@ -547,27 +287,10 @@ START 1
"last_update" timestamp(6)
)
;
COMMENT ON COLUMN "public"."user_data_header"."role" IS 'RELATION WITH TB: USER_DATA_ROLE';
COMMENT ON COLUMN "public"."user_data_header"."status" IS 'SET STATUS USER: ';
-- ----------------------------
-- Records of user_data_header
-- ----------------------------
INSERT INTO "public"."user_data_header" VALUES (5, '930159', NULL, 'Ratna Wulan Sari', 30, 10, NULL, '$2y$10$e5IlkVkq/7zxhuVgORVH6uY850T5NiY.MZzoVk8ASnEfRr.6ooira', '2020-01-14 01:16:32', NULL, NULL, 'ratna.sari@telkom.co.id', 'a0e3e79e631b49115bd0cb927120f9eb', '930159', 'JAKARTA', 'Telkom', NULL, NULL, NULL);
INSERT INTO "public"."user_data_header" VALUES (9, 'witels', '758a27752fa96f0e612e8c75b0d619a9', 'witels', 20, 10, NULL, NULL, '2020-06-21 22:50:03', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, '351', NULL);
INSERT INTO "public"."user_data_header" VALUES (6, 'test1', '5a105e8b9d40e1329780d62ea2265d8a', 'test1', 10, 30, NULL, NULL, '2020-06-21 21:57:41', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO "public"."user_data_header" VALUES (7, 'test1', '5a105e8b9d40e1329780d62ea2265d8a', 'test1', 10, 20, NULL, NULL, '2020-06-21 21:57:44', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO "public"."user_data_header" VALUES (8, 'test2', 'ad0234829205b9033196ba818f7a872b', 'test2', 20, 10, NULL, NULL, '2020-06-21 21:59:39', 'NULL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO "public"."user_data_header" VALUES (1, 'danirusdanx', '5036592afd6e403097c37eef12ad8285', 'danirusdan', 10, 10, NULL, NULL, '2017-07-09 22:30:23', 'NULL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO "public"."user_data_header" VALUES (4, 'adminx', '$2y$10$7NnmhGtMZJTbS7gRVl/c0OIrCK29/rurfhBdZAKlgN8y/WcV8nbRa', 'Saya Karyawan', 30, 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO "public"."user_data_header" VALUES (3, 'danirusdan', '$2y$10$7NnmhGtMZJTbS7gRVl/c0OIrCK29/rurfhBdZAKlgN8y/WcV8nbRa', 'danirusdan', 10, 10, NULL, '$2y$10$zDNOrVtdYYGE3yBINaDDb.2506QHLSvGHn/hMxtqAkl21dWKEWsAG', NULL, '2', NULL, NULL, 'c46714daa0d91976579686bcad938849', NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO "public"."user_data_header" VALUES (2, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Atang', 10, 10, NULL, NULL, '2017-08-10 10:29:40', 'NULL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-- ----------------------------
-- Table structure for user_data_map
-- ----------------------------
DROP TABLE IF EXISTS "public"."user_data_map";
CREATE TABLE "public"."user_data_map" (
ALTER TABLE "user_data_header" OWNER TO "postgres";
COMMENT ON COLUMN "user_data_header"."role" IS 'RELATION WITH TB: USER_DATA_ROLE';
COMMENT ON COLUMN "user_data_header"."status" IS 'SET STATUS USER: ';
CREATE TABLE "user_data_map" (
"map_id" int4 NOT NULL,
"access_code" int4,
"role_code" int4,
......@@ -575,42 +298,16 @@ CREATE TABLE "public"."user_data_map" (
"last_update" timestamp(6)
)
;
-- ----------------------------
-- Records of user_data_map
-- ----------------------------
INSERT INTO "public"."user_data_map" VALUES (4, 10, 20, 'TRUE', '2020-06-21 21:12:51.219377');
INSERT INTO "public"."user_data_map" VALUES (5, 20, 20, 'TRUE', '2020-06-21 21:13:06.007902');
INSERT INTO "public"."user_data_map" VALUES (1, 10, 10, 'TRUE', '2020-06-21 21:14:13.680576');
INSERT INTO "public"."user_data_map" VALUES (3, 30, 10, 'TRUE', '2020-06-21 21:14:22.116003');
INSERT INTO "public"."user_data_map" VALUES (2, 20, 10, 'FALSE', '2020-06-21 21:47:09.580874');
INSERT INTO "public"."user_data_map" VALUES (6, 30, 20, 'FALSE', '2020-06-23 17:10:04.467554');
-- ----------------------------
-- Table structure for user_data_role
-- ----------------------------
DROP TABLE IF EXISTS "public"."user_data_role";
CREATE TABLE "public"."user_data_role" (
ALTER TABLE "user_data_map" OWNER TO "postgres";
CREATE TABLE "user_data_role" (
"access_role_id" int4 NOT NULL,
"name" varchar(50) COLLATE "pg_catalog"."default",
"access_role_code" int4,
"description" varchar(50) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of user_data_role
-- ----------------------------
INSERT INTO "public"."user_data_role" VALUES (1, 'MASTER', 10, 'BISA SAGALA EDANS');
INSERT INTO "public"."user_data_role" VALUES (2, 'ADMIN', 20, 'ADMIN');
INSERT INTO "public"."user_data_role" VALUES (3, 'REGIONAL', 30, 'EDAN1');
INSERT INTO "public"."user_data_role" VALUES (4, 'WITEL', 40, 'UWU');
-- ----------------------------
-- Table structure for user_data_session
-- ----------------------------
DROP TABLE IF EXISTS "public"."user_data_session";
CREATE TABLE "public"."user_data_session" (
ALTER TABLE "user_data_role" OWNER TO "postgres";
CREATE TABLE "user_data_session" (
"session_id" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
"name" varchar(200) COLLATE "pg_catalog"."default",
"modified" numeric(20),
......@@ -619,19 +316,8 @@ CREATE TABLE "public"."user_data_session" (
"owner" varchar(200) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of user_data_session
-- ----------------------------
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 ('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', 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
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."get_antrian_self"();
CREATE OR REPLACE FUNCTION "public"."get_antrian_self"()
ALTER TABLE "user_data_session" OWNER TO "postgres";
CREATE OR REPLACE FUNCTION "get_antrian_self"()
RETURNS "pg_catalog"."int4" AS $BODY$
declare
antrian_count integer;
......@@ -649,12 +335,8 @@ end;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
-- ----------------------------
-- Function structure for get_antriann
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."get_antriann"("kode_antrian" int4);
CREATE OR REPLACE FUNCTION "public"."get_antriann"("kode_antrian" int4)
ALTER FUNCTION "get_antrian_self"() OWNER TO "postgres";
CREATE OR REPLACE FUNCTION "get_antriann"("kode_antrian" int4)
RETURNS "pg_catalog"."int4" AS $BODY$
declare
antrian_count integer;
......@@ -671,12 +353,8 @@ end;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
-- ----------------------------
-- Function structure for get_film_count
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."get_film_count"("len_from" int4, "len_to" int4);
CREATE OR REPLACE FUNCTION "public"."get_film_count"("len_from" int4, "len_to" int4)
ALTER FUNCTION "get_antriann"("kode_antrian" int4) OWNER TO "postgres";
CREATE OR REPLACE FUNCTION "get_film_count"("len_from" int4, "len_to" int4)
RETURNS "pg_catalog"."int4" AS $BODY$
declare
film_count integer;
......@@ -691,12 +369,8 @@ end;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
-- ----------------------------
-- Function structure for get_no_mobile
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."get_no_mobile"();
CREATE OR REPLACE FUNCTION "public"."get_no_mobile"()
ALTER FUNCTION "get_film_count"("len_from" int4, "len_to" int4) OWNER TO "postgres";
CREATE OR REPLACE FUNCTION "get_no_mobile"()
RETURNS "pg_catalog"."int4" AS $BODY$
declare
antrian_count integer;
......@@ -714,12 +388,8 @@ end;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
-- ----------------------------
-- Function structure for get_no_web
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."get_no_web"();
CREATE OR REPLACE FUNCTION "public"."get_no_web"()
ALTER FUNCTION "get_no_mobile"() OWNER TO "postgres";
CREATE OR REPLACE FUNCTION "get_no_web"()
RETURNS "pg_catalog"."int4" AS $BODY$
declare
antrian_count integer;
......@@ -737,12 +407,8 @@ end;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
-- ----------------------------
-- Function structure for insert_data
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."insert_data"("input_id_pasien" int4, "input_id_poli" int4);
CREATE OR REPLACE FUNCTION "public"."insert_data"("input_id_pasien" int4, "input_id_poli" int4)
ALTER FUNCTION "get_no_web"() OWNER TO "postgres";
CREATE OR REPLACE FUNCTION "insert_data"("input_id_pasien" int4, "input_id_poli" int4)
RETURNS "pg_catalog"."int4" AS $BODY$
declare
antrian_count integer;
......@@ -761,187 +427,182 @@ end;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."antrian_id_antrian"
OWNED BY "public"."antrian"."id_antrian";
SELECT setval('"public"."antrian_id_antrian"', 1825, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."dokter\_id_dokter_seq"
OWNED BY "public"."dokter_to_poli"."id_dokter";
SELECT setval('"public"."dokter\_id_dokter_seq"', 4, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."id_antrian_seq"
OWNED BY "public"."register_dokter"."id_register";
SELECT setval('"public"."id_antrian_seq"', 220, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."id_antrian_seq2"
OWNED BY "public"."antrian_pasien"."id_antrian";
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 SEQUENCE "public"."id_ruang_seq"
OWNED BY "public"."ruang"."id_ruang";
SELECT setval('"public"."id_ruang_seq"', 13, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."pasien_id_pasien_seq"
OWNED BY "public"."antrian_pasien"."id_pasien";
SELECT setval('"public"."pasien_id_pasien_seq"', 34, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."poli_id_poli_seq"
OWNED BY "public"."poli"."id_poli";
SELECT setval('"public"."poli_id_poli_seq"', 9, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."register_antrian_id_register"
OWNED BY "public"."register_antrian"."id_register";
SELECT setval('"public"."register_antrian_id_register"', 215, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."user_data_header_iduser_seq"
OWNED BY "public"."user_data_header"."iduser";
SELECT setval('"public"."user_data_header_iduser_seq"', 2, false);
-- ----------------------------
-- Primary Key structure for table counter_status
-- ----------------------------
ALTER TABLE "public"."counter_status" ADD CONSTRAINT "counter_status_pkey" PRIMARY KEY ("id_status");
-- ----------------------------
-- Indexes structure for table divisi_witel
-- ----------------------------
CREATE INDEX "idx_divisi_witel" ON "public"."divisi_witel" USING btree (
ALTER FUNCTION "insert_data"("input_id_pasien" int4, "input_id_poli" int4) OWNER TO "postgres";
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');
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);
COMMIT;
BEGIN;
LOCK TABLE "public"."condition" IN SHARE MODE;
DELETE FROM "public"."condition";
INSERT INTO "public"."condition" ("id_condition","condition") VALUES (1, 'enable'),(2, 'disable');
COMMIT;
BEGIN;
LOCK TABLE "public"."counter_status" IN SHARE MODE;
DELETE FROM "public"."counter_status";
INSERT INTO "public"."counter_status" ("id_status","status_code","status_name") VALUES (1, 10, 'Queue'),(2, 20, 'Next'),(3, 30, 'Call'),(4, 40, 'Served'),(5, 50, 'Done'),(6, 60, 'Missed');
COMMIT;
BEGIN;
LOCK TABLE "public"."divisi_witel" IN SHARE MODE;
DELETE FROM "public"."divisi_witel";
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');
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');
COMMIT;
BEGIN;
LOCK TABLE "public"."master_parameter" IN SHARE MODE;
DELETE FROM "public"."master_parameter";
INSERT INTO "public"."master_parameter" ("idm_parameter","param_type","param_val1","param_val2","param_val3","param_desc","param_parent") VALUES (1, 'USER_STATUS', 'ACTIVE', '10', NULL, 'USER ACTIVE GANS', NULL),(2, 'USER_STATUS', 'NOT ACTIVE', '20', NULL, 'USER NOT ACTIVE GANS', NULL),(3, 'USER_STATUS', 'BLOCKED', '30', NULL, 'USER NA DIBLOCK', NULL),(4, 'INPUT_TYPE', 'INPUT', '1', NULL, NULL, NULL),(5, 'INPUT_TYPE', 'TEXTAREA', '2', NULL, NULL, NULL),(6, 'INPUT_OPTION', 'SELECT_OPTION', '3', NULL, NULL, NULL),(7, 'INPUT_RADIO', 'RADION_BUTTON', '4', NULL, NULL, NULL),(8, 'TYPE_DATA', 'I_VARCHAR', '1', NULL, 'JENIS INPUTAN VARCHAR', NULL),(9, 'TYPE_DATA', 'I_NUMBER', '2', NULL, 'JENIS INPUTAN NUMBER', NULL);
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');
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', '');
COMMIT;
BEGIN;
LOCK TABLE "public"."regional" IN SHARE MODE;
DELETE FROM "public"."regional";
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');
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');
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);
COMMIT;
BEGIN;
LOCK TABLE "public"."user_data_access" IN SHARE MODE;
DELETE FROM "public"."user_data_access";
INSERT INTO "public"."user_data_access" ("access_id","access_name","access_type","access_code","access_desc","access_action","access_controller") VALUES (1, 'DELETE TEST DATA', 'ACTION', 10, 'TEST FUNCTION', NULL, NULL),(2, 'MENU TEST DATA', 'MENU', 20, 'TEST MENU', NULL, NULL),(3, 'USER MANAGEMENT', 'MENU', 30, 'MENU USER MANAMEGENT', 'usermanagement', 'UserController');
COMMIT;
BEGIN;
LOCK TABLE "public"."user_data_header" IN SHARE MODE;
DELETE FROM "public"."user_data_header";
INSERT INTO "public"."user_data_header" ("iduser","username","password","name","role","status","deviceid","accessToken","create_dtm","retries","update_date","email","authKey","nik","lokasi_p","domain_p","regional_id","witel_id","last_update") VALUES (5, '930159', NULL, 'Ratna Wulan Sari', 30, 10, NULL, '$2y$10$e5IlkVkq/7zxhuVgORVH6uY850T5NiY.MZzoVk8ASnEfRr.6ooira', '2020-01-14 01:16:32', NULL, NULL, 'ratna.sari@telkom.co.id', 'a0e3e79e631b49115bd0cb927120f9eb', '930159', 'JAKARTA', 'Telkom', NULL, NULL, NULL),(9, 'witels', '758a27752fa96f0e612e8c75b0d619a9', 'witels', 20, 10, NULL, NULL, '2020-06-21 22:50:03', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 3, '351', NULL),(6, 'test1', '5a105e8b9d40e1329780d62ea2265d8a', 'test1', 10, 30, NULL, NULL, '2020-06-21 21:57:41', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),(7, 'test1', '5a105e8b9d40e1329780d62ea2265d8a', 'test1', 10, 20, NULL, NULL, '2020-06-21 21:57:44', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),(8, 'test2', 'ad0234829205b9033196ba818f7a872b', 'test2', 20, 10, NULL, NULL, '2020-06-21 21:59:39', 'NULL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),(1, 'danirusdanx', '5036592afd6e403097c37eef12ad8285', 'danirusdan', 10, 10, NULL, NULL, '2017-07-09 22:30:23', 'NULL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),(4, 'adminx', '$2y$10$7NnmhGtMZJTbS7gRVl/c0OIrCK29/rurfhBdZAKlgN8y/WcV8nbRa', 'Saya Karyawan', 30, 30, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),(3, 'danirusdan', '$2y$10$7NnmhGtMZJTbS7gRVl/c0OIrCK29/rurfhBdZAKlgN8y/WcV8nbRa', 'danirusdan', 10, 10, NULL, '$2y$10$zDNOrVtdYYGE3yBINaDDb.2506QHLSvGHn/hMxtqAkl21dWKEWsAG', NULL, '2', NULL, NULL, 'c46714daa0d91976579686bcad938849', NULL, NULL, NULL, NULL, NULL, NULL),(2, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Atang', 10, 10, NULL, NULL, '2017-08-10 10:29:40', 'NULL', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
COMMIT;
BEGIN;
LOCK TABLE "public"."user_data_map" IN SHARE MODE;
DELETE FROM "public"."user_data_map";
INSERT INTO "public"."user_data_map" ("map_id","access_code","role_code","access_status","last_update") VALUES (4, 10, 20, 'TRUE', '2020-06-21 21:12:51.219377'),(5, 20, 20, 'TRUE', '2020-06-21 21:13:06.007902'),(1, 10, 10, 'TRUE', '2020-06-21 21:14:13.680576'),(3, 30, 10, 'TRUE', '2020-06-21 21:14:22.116003'),(2, 20, 10, 'FALSE', '2020-06-21 21:47:09.580874'),(6, 30, 20, 'FALSE', '2020-06-23 17:10:04.467554');
COMMIT;
BEGIN;
LOCK TABLE "public"."user_data_role" IN SHARE MODE;
DELETE FROM "public"."user_data_role";
INSERT INTO "public"."user_data_role" ("access_role_id","name","access_role_code","description") VALUES (1, 'MASTER', 10, 'BISA SAGALA EDANS'),(2, 'ADMIN', 20, 'ADMIN'),(3, 'REGIONAL', 30, 'EDAN1'),(4, 'WITEL', 40, 'UWU');
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\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'),('77j0vj9vahnbu84i2sb5ceo41s', 'KHANSIA', 1600919661, 86400, '__ZF|a:5:{s:20:"_REQUEST_ACCESS_TIME";d:1600919661.165525;s:6:"_VALID";a:1:{s:25:"Zend\Session\Validator\Id";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');
COMMIT;
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");
CREATE INDEX "idx_divisi_witel" ON "divisi_witel" USING btree (
"divisi_witel_id" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
-- ----------------------------
-- Primary Key structure for table divisi_witel
-- ----------------------------
ALTER TABLE "public"."divisi_witel" ADD CONSTRAINT "divisi_witel_pkey" PRIMARY KEY ("divisi_witel_id");
-- ----------------------------
-- Primary Key structure for table 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_to_poli
-- ----------------------------
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
-- ----------------------------
CREATE INDEX "index2" ON "public"."master_parameter" USING btree (
ALTER TABLE "dokter" ADD CONSTRAINT "dokter_to_poli_copy1_pkey" PRIMARY KEY ("id_dokter");
ALTER TABLE "dokter_to_poli" ADD CONSTRAINT "dokter\_pkey" PRIMARY KEY ("id_dokter");
ALTER TABLE "master_parameter" ADD CONSTRAINT "master_parameter_pkey" PRIMARY KEY ("idm_parameter");
CREATE INDEX "index2" ON "master_parameter" USING btree (
"idm_parameter" "pg_catalog"."int4_ops" ASC NULLS LAST
);
CREATE INDEX "index3" ON "public"."master_parameter" USING btree (
CREATE INDEX "index3" ON "master_parameter" USING btree (
"param_type" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "index4" ON "public"."master_parameter" USING btree (
CREATE INDEX "index4" ON "master_parameter" USING btree (
"param_val1" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "index5" ON "public"."master_parameter" USING btree (
CREATE INDEX "index5" ON "master_parameter" USING btree (
"param_val2" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "index6" ON "public"."master_parameter" USING btree (
CREATE INDEX "index6" ON "master_parameter" USING btree (
"param_val3" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "index7" ON "public"."master_parameter" USING btree (
CREATE INDEX "index7" ON "master_parameter" USING btree (
"param_parent" "pg_catalog"."int4_ops" ASC NULLS LAST
);
-- ----------------------------
-- Primary Key structure for table master_parameter
-- ----------------------------
ALTER TABLE "public"."master_parameter" ADD CONSTRAINT "master_parameter_pkey" PRIMARY KEY ("idm_parameter");
-- ----------------------------
-- Foreign Keys structure for table master_parameter
-- ----------------------------
ALTER TABLE "public"."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;
-- ----------------------------
-- Primary Key structure for table poli
-- ----------------------------
ALTER TABLE "public"."poli" ADD CONSTRAINT "poli_pkey" PRIMARY KEY ("id_poli");
-- ----------------------------
-- Primary Key structure for table regional
-- ----------------------------
ALTER TABLE "public"."regional" ADD CONSTRAINT "regional_pkey" PRIMARY KEY ("id_regional");
-- ----------------------------
-- Primary Key structure for table ruang
-- ----------------------------
ALTER TABLE "public"."ruang" ADD CONSTRAINT "ruang_pkey" PRIMARY KEY ("id_ruang");
-- ----------------------------
-- Primary Key structure for table user_data_access
-- ----------------------------
ALTER TABLE "public"."user_data_access" ADD CONSTRAINT "user_data_access_pkey" PRIMARY KEY ("access_id");
-- ----------------------------
-- Indexes structure for table user_data_header
-- ----------------------------
CREATE INDEX "xiduser" ON "public"."user_data_header" USING btree (
ALTER TABLE "poli" ADD CONSTRAINT "poli_pkey" PRIMARY KEY ("id_poli");
ALTER TABLE "regional" ADD CONSTRAINT "regional_pkey" PRIMARY KEY ("id_regional");
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");
CREATE INDEX "xiduser" ON "user_data_header" USING btree (
"iduser" "pg_catalog"."int4_ops" ASC NULLS LAST
);
CREATE INDEX "xrole" ON "public"."user_data_header" USING btree (
CREATE INDEX "xrole" ON "user_data_header" USING btree (
"role" "pg_catalog"."int4_ops" ASC NULLS LAST
);
-- ----------------------------
-- Primary Key structure for table user_data_header
-- ----------------------------
ALTER TABLE "public"."user_data_header" ADD CONSTRAINT "user_data_header_pkey" PRIMARY KEY ("iduser");
-- ----------------------------
-- Primary Key structure for table user_data_map
-- ----------------------------
ALTER TABLE "public"."user_data_map" ADD CONSTRAINT "user_data_map_pkey" PRIMARY KEY ("map_id");
-- ----------------------------
-- Primary Key structure for table user_data_role
-- ----------------------------
ALTER TABLE "public"."user_data_role" ADD CONSTRAINT "user_data_role_pkey" PRIMARY KEY ("access_role_id");
-- ----------------------------
-- Primary Key structure for table user_data_session
-- ----------------------------
ALTER TABLE "public"."user_data_session" ADD CONSTRAINT "user_data_session_pkey" PRIMARY KEY ("session_id");
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 "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 SEQUENCE "antrian_id_antrian"
OWNED BY "antrian"."id_antrian";
SELECT setval('"antrian_id_antrian"', 2112, 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);
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"', 2112, 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"', 250, 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);
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);
ALTER SEQUENCE "id_ruang_seq" OWNER TO "postgres";
SELECT setval('"no_rekam_medis"', 3, 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"', 34, 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"', 10, 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"', 245, true);
ALTER SEQUENCE "register_antrian_id_register" 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);
ALTER SEQUENCE "user_data_header_iduser_seq" OWNER TO "postgres";
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