CREATE TABLE `data_catatan_rfk_unit` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bulan` TINYINT(2) NOT NULL,
  `catatan_ka_adbang` TEXT NOT NULL,
  `id_skpd` INT(11) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `created_by` TEXT NOT NULL,
  `created_at` DATETIME NOT NULL,
  `updated_by` TEXT NOT NULL,
  `updated_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `bulan` (`bulan`),
  KEY `id_skpd` (`id_skpd`)
);

CREATE TABLE `data_rekanan_sipd`(
  `id` INT NOT NULL AUTO_INCREMENT,
  `id_daerah` INT,
  `id_skpd` INT(11) NOT NULL,
  `nomor_rekening` VARCHAR(80) DEFAULT 0,
  `nama_rekening` TEXT,
  `id_bank` INT DEFAULT NULL,
  `nama_bank` VARCHAR(255) DEFAULT NULL,
  `cabang_bank` VARCHAR(255) DEFAULT NULL,
  `nama_tujuan` TEXT DEFAULT NULL,
  `nama_perusahaan` TEXT DEFAULT NULL,
  `alamat_perusahaan` TEXT DEFAULT NULL,
  `telepon_perusahaan` VARCHAR(255) DEFAULT NULL,
  `npwp` VARCHAR(255) DEFAULT NULL,
  `nik` VARCHAR(255) DEFAULT NULL,
  `jenis_rekanan` VARCHAR(255) DEFAULT NULL,
  `kategori_rekanan` VARCHAR(255) DEFAULT NULL,
  `is_valid` BIT(1) DEFAULT NULL,
  `is_locked` BIT(1) DEFAULT NULL,
  `active` TINYINT,
  `created_at` DATETIME,
  `created_by` INT DEFAULT NULL,
  `updated_at` DATETIME,
  `tahun_anggaran` YEAR,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_daerah` (`id_daerah`),
  KEY `id_skpd` (`id_skpd`),
  KEY `nomor_rekening` (`nomor_rekening`),
  KEY `active` (`active`)
);

CREATE TABLE `data_spd_sipd`(
  `id` INT NOT NULL AUTO_INCREMENT,
  `idSpd` INT,
  `nomorSpd` VARCHAR(80),
  `keteranganSpd` VARCHAR(80),
  `ketentuanLainnya` VARCHAR(500),
  `id_skpd` INT,
  `totalSpd` DOUBLE,
  `active` TINYINT,
  `created_at` DATETIME,
  `tahun_anggaran` YEAR,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `idSpd` (`idSpd`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_npd_sipd`(
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `id_npd` INT,
  `nomor_npd` TEXT DEFAULT NULL, 
  `id_daerah` INT,
  `id_unit` INT,
  `id_skpd` INT,
  `id_sub_skpd` INT,
  `nilai_npd` DOUBLE,
  `nilai_npd_disetujui` DOUBLE,
  `tanggal_npd` DATE DEFAULT NULL,
  `tanggal_npd_selesai` DATE DEFAULT NULL,
  `keterangan_npd` TEXT DEFAULT NULL, 
  `is_verifikasi_npd` BIT(1) DEFAULT NULL, 
  `verifikasi_npd_at` DATE DEFAULT NULL,
  `verifikasi_npd_by` INT DEFAULT 0,
  `verifikasi_npd_by_name` TEXT DEFAULT NULL,
  `verifikasi_npd_by_nip` TEXT DEFAULT NULL,
  `verifikasi_npd_by_role` TEXT DEFAULT NULL,
  `nomor_verifikasi` TEXT DEFAULT NULL,
  `is_npd_panjar` BIT(1) DEFAULT NULL, 
  `kondisi_selesai` INT DEFAULT 0,
  `selesai_at` DATE DEFAULT NULL,
  `selesai_by` INT DEFAULT 0,
  `nomor_selesai` TEXT DEFAULT NULL,
  `nilai_pengembalian` DOUBLE,
  `nilai_kurang_bayar` DOUBLE,
  `nomor_kurang_lebih` TEXT DEFAULT NULL,
  `kurang_lebih_at` DATE DEFAULT NULL,
  `kurang_lebih_by` INT DEFAULT 0,
  `is_validasi_npd` BIT(1) DEFAULT NULL, 
  `validasi_npd_at` DATE DEFAULT NULL,
  `validasi_npd_by` INT DEFAULT 0,
  `validasi_npd_by_name` TEXT DEFAULT NULL,
  `validasi_npd_by_nip` TEXT DEFAULT NULL,
  `validasi_npd_by_role` TEXT DEFAULT NULL,
  `is_tbp` BIT(1) DEFAULT NULL, 
  `tbp_at` DATE DEFAULT NULL,
  `tbp_by` INT DEFAULT 0,
  `id_jadwal` INT DEFAULT 0,
  `id_tahap` INT DEFAULT 0,
  `status_tahap` TEXT DEFAULT NULL,
  `kode_tahap` TEXT DEFAULT NULL,
  `created_at` DATETIME,
  `created_by` INT DEFAULT NULL,
  `update_at` DATETIME,
  `updated_by` INT DEFAULT NULL,
  `deleted_at` DATETIME,
  `deleted_by` INT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `kode_sub_skpd` TEXT DEFAULT NULL,
  `nama_sub_skpd` TEXT DEFAULT NULL,
  `total_pertanggungjawaban` DOUBLE,
  `tbp_id` INT DEFAULT 0,
  `tbp_nomor` TEXT DEFAULT NULL,
  `tbp_nilai` DOUBLE,
  `tbp_created_at` DATE DEFAULT NULL,
  `tbp_is_lpj` INT DEFAULT 0,
  `active` TINYINT,
  `tahun_anggaran` YEAR,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_npd` (`id_npd`),
  KEY `id_sub_skpd` (`id_sub_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_lpj_bpp_sipd`(
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `id_lpj_bpp` INT,
  `nomor_lpj_bpp` TEXT DEFAULT NULL, 
  `id_daerah` INT,
  `id_unit` INT,
  `id_skpd` INT,
  `id_sub_skpd` INT,
  `nilai_lpj_bpp` DOUBLE,  
  `tanggal_lpj_bpp` DATE DEFAULT NULL,  
  `jenis_lpj_bpp` TEXT DEFAULT NULL, 
  `id_pegawai_pa_kpa` INT DEFAULT NULL, 
  `is_verifikasi_lpj_bpp` BIT(1) DEFAULT NULL, 
  `verifikasi_lpj_bpp_at` DATE DEFAULT NULL,
  `verifikasi_lpj_bpp_by` INT DEFAULT 0,  
  `is_val_i_dasi_lpj_bpp` BIT(1) DEFAULT NULL,   
  `val_i_dasi_lpj_bpp_at` DATE DEFAULT NULL,
  `val_i_dasi_lpj_bpp_by` INT DEFAULT 0,  
  `is_spp_gu` BIT(1) DEFAULT NULL, 
  `spp_gu_at` DATE DEFAULT NULL,
  `spp_gu_by` INT DEFAULT 0,  
  `id_jadwal` INT DEFAULT 0,
  `id_tahap` INT DEFAULT 0,
  `status_tahap` TEXT DEFAULT NULL,
  `kode_tahap` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `kode_sub_skpd` TEXT DEFAULT NULL,
  `nama_sub_skpd` TEXT DEFAULT NULL,
  `total_pertanggungjawaban` DOUBLE,
  `active` TINYINT,
  `created_by` INT DEFAULT NULL,
  `created_at` DATETIME,
  `update_at` DATETIME,
  `tahun_anggaran` YEAR,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_lpj_bpp` (`id_lpj_bpp`),
  KEY `id_sub_skpd` (`id_sub_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_lpj_sipd_detail` (
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_lpj` INT(11) DEFAULT NULL,  
  `tipe` VARCHAR(255) DEFAULT NULL,
  `nama_daerah` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_sub_skpd` TEXT DEFAULT NULL,
  `nomor_lpj` VARCHAR(255) DEFAULT NULL,
  `tanggal_lpj` DATETIME DEFAULT NULL,
  `up_awal` DOUBLE DEFAULT 0,
  `penggunaan_up` DOUBLE DEFAULT 0,
  `up_akhir` DOUBLE DEFAULT 0,
  `nama_bp_bpp` TEXT DEFAULT NULL,
  `nip_bp_bpp` TEXT DEFAULT NULL,
  `jabatan_bp_bpp` TEXT DEFAULT NULL,
  `active` TINYINT,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `tipe` (`tipe`),
  KEY `id_lpj` (`id_lpj`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_lpj_sipd_detail_rekening` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_lpj` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `kode_rekening` VARCHAR(255) DEFAULT NULL,
  `uraian` TEXT DEFAULT NULL,
  `jumlah_anggaran` DOUBLE(20,2) DEFAULT NULL,
  `belanja_periode_ini` DOUBLE(20,2) DEFAULT NULL,
  `akumulasi_belanja` DOUBLE(20,2) DEFAULT NULL,
  `sisa_anggaran` DOUBLE(20,2) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_rekening` (`kode_rekening`),
  KEY `id_lpj` (`id_lpj`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_buku_jurnal_sipd` (
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `id_skpd` INT DEFAULT NULL,
  `id_jurnal` INT(11) DEFAULT NULL,  
  `nama_skpd` TEXT DEFAULT NULL,
  `nomor_jurnal` VARCHAR(255) DEFAULT NULL,
  `tanggal_jurnal` DATE DEFAULT NULL,  
  `dokumen_sumber` TEXT DEFAULT NULL,
  `active` TINYINT,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jurnal` (`id_jurnal`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_buku_jurnal_sipd_detail` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_jurnal` INT(11) DEFAULT NULL,
  `id_detail` INT(11) DEFAULT NULL,
  `account_id` INT(11) DEFAULT NULL,  
  `amount` DOUBLE(20,2) DEFAULT NULL,
  `kode_rekening` VARCHAR(255) DEFAULT NULL,
  `nama_rekening` TEXT DEFAULT NULL,
  `position` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jurnal` (`id_jurnal`),
  KEY `id_detail` (`id_detail`),
  KEY `kode_rekening` (`kode_rekening`),
  KEY `active` (`active`)
);

CREATE TABLE `aklap_lra_sipd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_daerah` INT,
  `id_skpd` INT(11) DEFAULT NULL,
  `kode_rekening` VARCHAR(255) DEFAULT NULL,
  `level` TEXT DEFAULT NULL,
  `nama_rekening` TEXT DEFAULT NULL,  
  `nominal` DOUBLE(20,2) DEFAULT NULL,
  `presentase` DOUBLE(20,10) DEFAULT NULL,
  `previous_realisasi` DOUBLE(20,2) DEFAULT NULL,
  `realisasi` DOUBLE(20,2) DEFAULT NULL,  
  `mulai_tgl` DATE NOT NULL,
  `sampai_tgl` DATE NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `kode_rekening` (`kode_rekening`),
  KEY `active` (`active`)
);

CREATE TABLE `data_npd_sipd_detail` (
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `id_skpd` INT,
  `id_npd` INT(11) DEFAULT NULL,
  `id_daerah` INT,
  `nama_daerah` TEXT DEFAULT NULL,
  `nomor_npd` VARCHAR(255) DEFAULT NULL,
  `tanggal_npd` DATETIME DEFAULT NULL,
  `kondisi_panjar` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_sub_skpd` TEXT DEFAULT NULL,
  `nama_pptk` TEXT DEFAULT NULL,
  `nip_pptk` TEXT DEFAULT NULL,
  `jabatan_pptk` TEXT DEFAULT NULL,
  `nama_pa_kpa` TEXT DEFAULT NULL,
  `nip_pa_kpa` VARCHAR(30) DEFAULT NULL,
  `jabatan_pa_kpa` TEXT DEFAULT NULL,
  `nomor_dpa` VARCHAR(255) DEFAULT NULL,
  `id_program` INT,
  `kode_program` VARCHAR(255) DEFAULT NULL,
  `nama_program` VARCHAR(255) DEFAULT NULL,
  `id_giat` INT,
  `kode_giat` TEXT DEFAULT NULL,
  `nama_giat` TEXT DEFAULT NULL,
  `id_sub_giat` INT,
  `kode_sub_giat` TEXT DEFAULT NULL,
  `nama_sub_giat` TEXT DEFAULT NULL,
  `keterangan_npd` TEXT DEFAULT NULL,
  `active` TINYINT,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_npd` (`id_npd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_npd_sipd_detail_rekening` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_npd` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_rak_belanja` INT(11) DEFAULT NULL,
  `kode_rekening` VARCHAR(255) DEFAULT NULL,
  `uraian` TEXT DEFAULT NULL,
  `anggaran` DOUBLE(20,2) DEFAULT NULL,
  `sisa_anggaran` DOUBLE(20,2) DEFAULT NULL,
  `rencana_penarikan` DOUBLE(20,2) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_npd` (`id_npd`),
  KEY `id_rak_belanja` (`id_rak_belanja`),
  KEY `kode_rekening` (`kode_rekening`),
  KEY `active` (`active`)
);

CREATE TABLE `data_tbp_sipd`(
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `id_tbp` INT,
  `id_sp2d_distribusi` INT,
  `id_sp2d` INT,
  `nomor_tbp` TEXT,
  `id_daerah` INT,
  `id_unit` INT,
  `id_skpd` INT,
  `id_sub_skpd` INT,
  `nilai_tbp` DOUBLE,
  `tanggal_tbp` DATE DEFAULT NULL,  
  `keterangan_tbp` TEXT, 
  `nilai_materai_tbp` DOUBLE,
  `nomor_kwitansi` VARCHAR(255),
  `id_pegawai_pa_kpa` INT,
  `jenis_tbp` VARCHAR(80),
  `jenis_ls_tbp` VARCHAR(80),
  `is_kunci_rekening_tbp` BIT(1) DEFAULT NULL,  
  `is_panjar` BIT(1) DEFAULT NULL,  
  `is_lpj` BIT(1) DEFAULT NULL,  
  `id_lpj` BIT(1) DEFAULT NULL,  
  `id_npd` BIT(1) DEFAULT NULL,
  `is_rekanan_upload` BIT(1) DEFAULT NULL,  
  `status_aklap` BIT(1) DEFAULT NULL,  
  `nomor_jurnal` VARCHAR(255),
  `jurnal_id` INT,
  `metode` VARCHAR(255),
  `id_jadwal` INT,
  `id_tahap` INT,
  `status_tahap` VARCHAR(255),
  `kode_tahap` VARCHAR(255),
  `kode_skpd` VARCHAR(255),
  `nama_skpd` VARCHAR(255),
  `kode_sub_skpd` VARCHAR(255),
  `nama_sub_skpd` VARCHAR(255),  
  `total_pertanggungjawaban` DOUBLE,
  `active` TINYINT,
  `created_by` INT DEFAULT NULL,
  `created_at` DATETIME,
  `update_at` DATETIME,
  `tahun_anggaran` YEAR,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_sub_skpd` (`id_sub_skpd`),
  KEY `id_tbp` (`id_tbp`),
  KEY `id_sp2d` (`id_sp2d`),
  KEY `active` (`active`)
);

CREATE TABLE `data_tbp_sipd_detail` (
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `id_skpd` INT,
  `id_tbp` INT(11) DEFAULT NULL,
  `jenis` TEXT DEFAULT NULL,
  `nama_daerah` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nomor_tbp` TEXT DEFAULT NULL,
  `nilai_tbp` DOUBLE DEFAULT NULL,
  `nama_tujuan` TEXT DEFAULT NULL,
  `alamat_perusahaan` TEXT DEFAULT NULL,  
  `npwp` VARCHAR(255) DEFAULT NULL,  
  `nomor_rekening` VARCHAR(255) DEFAULT NULL,
  `nama_rekening` TEXT DEFAULT NULL,
  `nama_bank` TEXT DEFAULT NULL,
  `keterangan_tbp` TEXT DEFAULT NULL,
  `jenis_transaksi` TEXT DEFAULT NULL,  
  `nomor_npd` VARCHAR(255) DEFAULT NULL,
  `jenis_panjar` TEXT DEFAULT NULL,
  `tanggal_tbp` DATETIME DEFAULT NULL,
  `nama_pa_kpa` TEXT DEFAULT NULL,
  `nip_pa_kpa` VARCHAR(30) DEFAULT NULL,
  `jabatan_pa_kpa` TEXT DEFAULT NULL,
  `nama_bp_bpp` TEXT DEFAULT NULL,
  `nip_bp_bpp` VARCHAR(30) DEFAULT NULL,
  `jabatan_bp_bpp` TEXT DEFAULT NULL,
  `nilai_tbp_detail` DOUBLE DEFAULT NULL,
  `nama_akun` TEXT DEFAULT NULL,
  `kode_akun` VARCHAR(512) DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `jenis_tbp` TEXT DEFAULT NULL,
  `id_header` INT(11) DEFAULT NULL,
  `id_detail` INT(11) DEFAULT NULL,
  `active` TINYINT,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_tbp` (`id_tbp`),
  KEY `active` (`active`),
  KEY `id_detail` (`id_detail`)
);

CREATE TABLE `data_tbp_sipd_detail_potongan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_tbp` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_tbp_detail` INT(11) DEFAULT NULL,
  `id_akun_pajak_potongan` INT(11) DEFAULT NULL,
  `id_billing` TEXT DEFAULT NULL,
  `id_pajak_potongan` INT(11) DEFAULT NULL,
  `jenis_pajak_potongan` TEXT DEFAULT NULL,
  `kode_sinergi` TEXT DEFAULT NULL,
  `nama_pajak_potongan` TEXT DEFAULT NULL,
  `nama_sinergi` TEXT DEFAULT NULL,
  `nilai_pajak_potongan` DOUBLE(20,2) DEFAULT NULL,
  `ntpn` TEXT DEFAULT NULL,
  `tanggal_id_billing` TEXT DEFAULT NULL,
  `tanggal_ntpn` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_tbp` (`id_tbp`),
  KEY `id_tbp_detail` (`id_tbp_detail`),
  KEY `id_pajak_potongan` (`id_pajak_potongan`),
  KEY `active` (`active`)
);

CREATE TABLE `data_tbp_sipd_detail_rekening` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_tbp` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `kode_rekening` VARCHAR(255) DEFAULT NULL,
  `uraian` TEXT DEFAULT NULL,
  `jumlah` DOUBLE(20,2) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_tbp` (`id_tbp`),
  KEY `kode_rekening` (`kode_rekening`),
  KEY `active` (`active`)
);

CREATE TABLE `data_stbp_sipd`(
  `id` INT NOT NULL AUTO_INCREMENT,
  `id_stbp` INT,
  `nomor_stbp` VARCHAR(255),
  `no_rekening` VARCHAR(80),
  `metode_penyetoran` VARCHAR(80),
  `nilai_stbp` DOUBLE,
  `keterangan_stbp` VARCHAR(500),
  `is_verifikasi_stbp` BIT(1) DEFAULT NULL,  
  `is_otorisasi_stbp` BIT(1) DEFAULT NULL,
  `is_validasi_stbp` BIT(1) DEFAULT NULL,
  `tanggal_stbp` DATE DEFAULT NULL,
  `id_daerah` INT,
  `id_unit` INT,
  `id_skpd` INT,
  `id_sub_skpd` INT,
  `is_sts` BIT(1) DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `active` TINYINT,
  `created_at` DATETIME,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_sub_skpd` (`id_sub_skpd`),
  KEY `id_stbp` (`id_stbp`),
  KEY `active` (`active`)
);

CREATE TABLE `data_stbp_sipd_detail` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,  
  `id_stbp` INT(11) DEFAULT NULL,
  `nama_penyetor` TEXT DEFAULT NULL,
  `metode_input` TEXT DEFAULT NULL,
  `nomor_stbp` TEXT DEFAULT NULL,
  `tanggal_stbp` DATETIME DEFAULT NULL,
  `id_bank` INT,
  `nama_bank` TEXT DEFAULT NULL,
  `no_rekening` TEXT DEFAULT NULL,
  `nilai_stbp` DOUBLE(20,2) DEFAULT NULL,
  `keterangan_stbp` TEXT DEFAULT NULL,
  `created_by` INT,
  `bendahara_penerimaan_nama` TEXT DEFAULT NULL,
  `bendahara_penerimaan_nip` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `id_unit` INT,
  `id_skpd` INT,
  `id_sub_skpd` INT,
  `nama_daerah` TEXT DEFAULT NULL,
  `id_rekening` INT,
  `kode_rekening` TEXT DEFAULT NULL,    
  `uraian` TEXT DEFAULT NULL,
  `nilai` DOUBLE(20,2) DEFAULT NULL,
  `active` TINYINT,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_sub_skpd` (`id_sub_skpd`),
  KEY `id_stbp` (`id_stbp`),
  KEY `active` (`active`)
);

CREATE TABLE `data_spd_sipd_detail`(
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `idDetailSpd` INT,
  `idSpd` INT,
  `id_skpd` INT,
  `id_sub_skpd` INT,
  `id_program` INT,
  `id_giat` INT,
  `id_sub_giat` INT,
  `id_akun` INT,
  `kode_standar_harga` TEXT DEFAULT NULL,
  `nama_standar_harga` TEXT DEFAULT NULL,
  `koefisien` TEXT DEFAULT NULL,
  `harga_satuan` DOUBLE DEFAULT NULL,
  `pajak` TEXT DEFAULT NULL,  
  `nilai` DOUBLE,
  `active` TINYINT,
  `created_at` DATETIME,
  `tahun_anggaran` YEAR,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_sub_skpd` (`id_sub_skpd`),
  KEY `idDetailSpd` (`idDetailSpd`),
  KEY `idSpd` (`idSpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_up_sipd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_besaran_up` INT(11) NOT NULL,
  `id_skpd` INT(11) NOT NULL,
  `id_sub_skpd` INT(11) NOT NULL,
  `pagu` DOUBLE NOT NULL,
  `besaran_up` DOUBLE NOT NULL,
  `besaran_up_kkpd` DOUBLE NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `create_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_sub_skpd` (`id_sub_skpd`),
  KEY `id_besaran_up` (`id_besaran_up`),
  KEY `active` (`active`)
);

CREATE TABLE `data_unit` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_setup_unit` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `is_skpd` TINYINT(4) DEFAULT NULL,
  `kode_skpd` VARCHAR(50) DEFAULT NULL,
  `kunci_skpd` INT(11) DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `posisi` VARCHAR(30) DEFAULT NULL,
  `status` VARCHAR(30) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `bidur_1` SMALLINT(6) DEFAULT NULL,
  `bidur_2` SMALLINT(6) DEFAULT NULL,
  `bidur_3` SMALLINT(6) DEFAULT NULL,
  `idinduk` INT(11) DEFAULT NULL,
  `ispendapatan` TINYINT(4) DEFAULT NULL,
  `isskpd` TINYINT(4) DEFAULT NULL,
  `kode_skpd_1` VARCHAR(10) DEFAULT NULL,
  `kode_skpd_2` VARCHAR(10) DEFAULT NULL,
  `kodeunit` VARCHAR(30) DEFAULT NULL,
  `komisi` INT(11) DEFAULT NULL,
  `namabendahara` TEXT,
  `namakepala` TEXT DEFAULT NULL,
  `namaunit` TEXT DEFAULT NULL,
  `nipbendahara` VARCHAR(30) DEFAULT NULL,
  `nipkepala` VARCHAR(30) DEFAULT NULL,
  `pangkatkepala` VARCHAR(50) DEFAULT NULL,
  `setupunit` INT(11) DEFAULT NULL,
  `statuskepala` VARCHAR(20) DEFAULT NULL,
  `mapping` VARCHAR(10) DEFAULT NULL,
  `id_kecamatan` INT(11) DEFAULT NULL,
  `id_strategi` INT(11) DEFAULT NULL,
  `is_dpa_khusus` TINYINT(4) DEFAULT NULL,
  `is_ppkd` TINYINT(4) DEFAULT NULL,
  `set_input` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  `active` TINYINT(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `is_skpd` (`is_skpd`),
  KEY `id_unit` (`id_unit`),
  KEY `idinduk` (`idinduk`),
  KEY `active` (`active`)
);

CREATE TABLE `data_akun` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `belanja` VARCHAR(10) DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `is_bagi_hasil` TINYINT(4) DEFAULT NULL,
  `is_bankeu_khusus` TINYINT(4) DEFAULT NULL,
  `is_bankeu_umum` TINYINT(4) DEFAULT NULL,
  `is_barjas` TINYINT(4) DEFAULT NULL,
  `is_bl` TINYINT(4) DEFAULT NULL,
  `is_bos` TINYINT(4) DEFAULT NULL,
  `is_btt` TINYINT(4) DEFAULT NULL,
  `is_bunga` TINYINT(4) DEFAULT NULL,
  `is_gaji_asn` TINYINT(4) DEFAULT NULL,
  `is_hibah_brg` TINYINT(4) DEFAULT NULL,
  `is_hibah_uang` TINYINT(4) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_modal_tanah` TINYINT(4) DEFAULT NULL,
  `is_pembiayaan` TINYINT(4) DEFAULT NULL,
  `is_pendapatan` TINYINT(4) DEFAULT NULL,
  `is_sosial_brg` TINYINT(4) DEFAULT NULL,
  `is_sosial_uang` TINYINT(4) DEFAULT NULL,
  `is_subsidi` TINYINT(4) DEFAULT NULL,
  `is_tna` VARCHAR(255) DEFAULT NULL COMMENT 'Transaksi Non Anggaran',
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT DEFAULT NULL,
  `set_input` TINYINT(4) DEFAULT NULL,
  `set_lokus` TINYINT(4) DEFAULT NULL,
  `ket_akun` VARCHAR(255) DEFAULT NULL,
  `kode_akun_lama` VARCHAR(50) DEFAULT NULL,
  `kode_akun_revisi` VARCHAR(50) DEFAULT NULL,
  `kunci_tahun` TINYINT(4) DEFAULT NULL,
  `level` TINYINT(4) DEFAULT NULL,
  `mulai_tahun` TEXT DEFAULT NULL,
  `pembiayaan` VARCHAR(50) DEFAULT NULL,
  `pendapatan` VARCHAR(50) DEFAULT NULL,
  `set_kab_kota` TINYINT(4) DEFAULT NULL,
  `set_prov` TINYINT(4) DEFAULT NULL,
  `status` VARCHAR(20) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1 COMMENT '0=hapus, 1=aktif',
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_akun` (`kode_akun`),
  KEY `id_akun` (`id_akun`),
  KEY `is_tna` (`is_tna`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rka` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(10) DEFAULT NULL,
  `createdtime` VARCHAR(10) DEFAULT NULL,
  `harga_satuan` DOUBLE(20,2) DEFAULT NULL,
  `harga_satuan_murni` DOUBLE(20,2) DEFAULT NULL,
  `harga_satuan_murni_sipd` DOUBLE(20,2) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_rinci_sub_bl` INT(11) DEFAULT NULL,
  `id_standar_nfs` TINYINT(4) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `jenis_bl` VARCHAR(50) DEFAULT NULL,
  `ket_bl_teks` TEXT DEFAULT NULL,
  `substeks` TEXT DEFAULT NULL,
  `id_dana` INT(11) DEFAULT NULL,
  `nama_dana` TEXT DEFAULT NULL,
  `is_paket` TINYINT(4) DEFAULT NULL,
  `kode_dana` VARCHAR(30) DEFAULT NULL,
  `subtitle_teks` TEXT DEFAULT NULL,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `koefisien` TEXT DEFAULT NULL,
  `koefisien_murni` TEXT DEFAULT NULL,
  `koefisien_murni_sipd` TEXT DEFAULT NULL,
  `lokus_akun_teks` TEXT DEFAULT NULL,
  `nama_akun` TEXT DEFAULT NULL,
  `nama_komponen` TEXT DEFAULT NULL,
  `spek_komponen` TEXT DEFAULT NULL,
  `satuan` VARCHAR(150) DEFAULT NULL,
  `spek` TEXT DEFAULT NULL,
  `sat1` TEXT DEFAULT NULL,
  `sat2` TEXT DEFAULT NULL,
  `sat3` TEXT DEFAULT NULL,
  `sat4` TEXT DEFAULT NULL,
  `volum1` TEXT DEFAULT NULL,
  `volum2` TEXT DEFAULT NULL,
  `volum3` TEXT DEFAULT NULL,
  `volum4` TEXT DEFAULT NULL,
  `volume` TEXT DEFAULT NULL,
  `volume_murni` TEXT DEFAULT NULL,
  `volume_murni_sipd` TEXT DEFAULT NULL,
  `subs_bl_teks` TEXT DEFAULT NULL,
  `total_harga` DOUBLE(20,2) DEFAULT NULL,
  `rincian` DOUBLE(20,2) DEFAULT NULL,
  `rincian_murni` DOUBLE(20,2) DEFAULT NULL,
  `rincian_murni_sipd` DOUBLE(20,2) DEFAULT NULL,
  `totalpajak` DOUBLE(20,2) DEFAULT NULL,
  `pajak` DOUBLE(20,2) DEFAULT NULL,
  `pajak_murni` DOUBLE(20,2) DEFAULT NULL,
  `pajak_murni_sipd` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(20) DEFAULT NULL,
  `updatedtime` VARCHAR(20) DEFAULT NULL,
  `user1` TEXT DEFAULT NULL,
  `user2` TEXT DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1,
  `active_sipd` TINYINT(4) DEFAULT 1,
  `akun_locked` TINYINT(4) DEFAULT NULL,
  `ssh_locked` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  `idbl` INT(11) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `kode_bl` VARCHAR(50) NOT NULL,
  `kode_sbl` VARCHAR(50) NOT NULL,
  `id_prop_penerima` INT(11) DEFAULT NULL,
  `id_camat_penerima` INT(11) DEFAULT NULL,
  `id_kokab_penerima` INT(11) DEFAULT NULL,
  `id_lurah_penerima` INT(11) DEFAULT NULL,
  `id_penerima` INT(11) DEFAULT NULL,
  `idkomponen` DOUBLE(20,2) DEFAULT NULL,
  `idketerangan` INT(11) DEFAULT NULL,
  `idsubtitle` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `kode_akun` (`kode_akun`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_dana` (`id_dana`),
  KEY `active` (`active`)
);

CREATE TABLE `data_capaian_prog_sub_keg` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `satuancapaian` VARCHAR(50) DEFAULT NULL,
  `targetcapaianteks` VARCHAR(50) DEFAULT NULL,
  `capaianteks` TEXT,
  `targetcapaian` INT(11) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `indikator_lokal` TINYINT(4) DEFAULT 0 COMMENT '0=Diambil dari sipd, 1=Diambil dari lokal',
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_capaian_prog_sub_keg_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `satuancapaian` VARCHAR(50) DEFAULT NULL,
  `targetcapaianteks` VARCHAR(50) DEFAULT NULL,
  `capaianteks` TEXT,
  `targetcapaian` INT(11) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `satuancapaian_usulan` VARCHAR(50) DEFAULT NULL,
  `targetcapaianteks_usulan` VARCHAR(50) DEFAULT NULL,
  `capaianteks_usulan` TEXT DEFAULT NULL,
  `targetcapaian_usulan` INT(11) DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_dana_sub_keg` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `namadana` TEXT DEFAULT NULL,
  `kodedana` VARCHAR(50) DEFAULT NULL,
  `iddana` INT(11) DEFAULT NULL,
  `iddanasubbl` INT(11) DEFAULT NULL,
  `pagudana` DOUBLE(20,2) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kodedana` (`kodedana`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `iddana` (`iddana`),
  KEY `active` (`active`)
);


CREATE TABLE `data_output_giat_sub_keg` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `outputteks` TEXT,
  `satuanoutput` VARCHAR(50) DEFAULT NULL,
  `targetoutput` VARCHAR(50) DEFAULT NULL,
  `targetoutputteks` VARCHAR(50) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `indikator_lokal` TINYINT(4) DEFAULT 0 COMMENT '0=Diambil dari sipd, 1=Diambil dari loka',
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_output_giat_sub_keg_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `outputteks` TEXT,
  `satuanoutput` VARCHAR(50) DEFAULT NULL,
  `targetoutput` VARCHAR(50) DEFAULT NULL,
  `targetoutputteks` VARCHAR(50) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `outputteks_usulan` TEXT DEFAULT NULL,
  `satuanoutput_usulan` VARCHAR(50) DEFAULT NULL,
  `targetoutput_usulan` VARCHAR(50) DEFAULT NULL,
  `targetoutputteks_usulan` VARCHAR(50) DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_keg_indikator_hasil` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `hasilteks` TEXT,
  `satuanhasil` VARCHAR(50) DEFAULT NULL,
  `targethasil` VARCHAR(50) DEFAULT NULL,
  `targethasilteks` VARCHAR(50) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` VARCHAR(50) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_ssh` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_standar_harga` INT(11) DEFAULT NULL,
  `kode_standar_harga` VARCHAR(30) DEFAULT NULL,
  `nama_standar_harga` VARCHAR(700) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `spek` VARCHAR(255) DEFAULT NULL,
  `ket_teks` TEXT DEFAULT NULL,
  `created_at` VARCHAR(225) DEFAULT NULL,
  `created_user` INT(11) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `is_deleted` TINYINT(4) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `kelompok` TINYINT(4) DEFAULT NULL,
  `harga` DOUBLE(20,2) DEFAULT NULL,
  `harga_2` DOUBLE(20,2) DEFAULT NULL,
  `harga_3` DOUBLE(20,2) DEFAULT NULL,
  `kode_kel_standar_harga` VARCHAR(30) DEFAULT NULL,
  `nama_kel_standar_harga` TEXT DEFAULT NULL,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2020',
  `jenis_produk` VARCHAR(32) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1,
  `tkdn` DOUBLE(20,2) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_standar_harga` (`id_standar_harga`),
  KEY `nama_standar_harga` (`nama_standar_harga`),
  KEY `spek` (`spek`),
  KEY `kelompok` (`kelompok`),
  KEY `kode_kel_standar_harga` (`kode_kel_standar_harga`),
  KEY `kode_standar_harga` (`kode_standar_harga`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_ssh_rek_belanja` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_akun` INT(11) NOT NULL,
  `kode_akun` VARCHAR(50) NOT NULL,
  `nama_akun` TEXT NOT NULL,
  `id_standar_harga` INT(11) NOT NULL,
  `active` TINYINT(4) DEFAULT 1,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  PRIMARY KEY (id),
  KEY `id_standar_harga` (`id_standar_harga`),
  KEY `kode_akun` (`kode_akun`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`),
  CONSTRAINT `data_ssh_rek_belanja_ibfk_1` FOREIGN KEY (`id_standar_harga`) REFERENCES `data_ssh` (`id_standar_harga`)
);

CREATE TABLE `data_sub_keg_indikator` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `outputteks` TEXT NOT NULL,
  `targetoutput` VARCHAR(50) NOT NULL,
  `satuanoutput` TEXT NOT NULL,
  `idoutputbl` INT(11) NOT NULL,
  `targetoutputteks` TEXT NOT NULL,
  `kode_sbl` VARCHAR(50) NOT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `indikator_lokal` TINYINT(4) DEFAULT 0 COMMENT '0=Diambil dari sipd, 1=Diambil dari lokal',
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_sub_keg_indikator_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `outputteks` TEXT NOT NULL,
  `targetoutput` VARCHAR(50) NOT NULL,
  `satuanoutput` TEXT NOT NULL,
  `idoutputbl` INT(11) NOT NULL,
  `targetoutputteks` TEXT NOT NULL,
  `kode_sbl` VARCHAR(50) NOT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `outputteks_usulan` TEXT DEFAULT NULL,
  `targetoutput_usulan` VARCHAR(50) DEFAULT NULL,
  `satuanoutput_usulan` TEXT DEFAULT NULL,
  `targetoutputteks_usulan` TEXT DEFAULT NULL,
  `id_indikator_sub_giat` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_unit_pagu` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `batasanpagu` DOUBLE(20,2) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_level` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_user` INT(11) DEFAULT NULL,
  `is_anggaran` TINYINT(4) DEFAULT NULL,
  `is_deleted` TINYINT(4) DEFAULT NULL,
  `is_komponen` TINYINT(4) DEFAULT NULL,
  `is_locked` SMALLINT(6) DEFAULT NULL,
  `is_skpd` TINYINT(4) DEFAULT NULL,
  `kode_skpd` VARCHAR(50) DEFAULT NULL,
  `kunci_bl` TINYINT(4) DEFAULT NULL,
  `kunci_bl_rinci` TINYINT(4) DEFAULT NULL,
  `kuncibl` TINYINT(4) DEFAULT NULL,
  `kunciblrinci` TINYINT(4) DEFAULT NULL,
  `nilaipagu` DOUBLE(20,2) DEFAULT NULL,
  `nilaipagumurni` DOUBLE(20,2) DEFAULT NULL,
  `nilairincian` DOUBLE(20,2) DEFAULT NULL,
  `pagu_giat` DOUBLE(20,2) DEFAULT NULL,
  `realisasi` DOUBLE(20,2) DEFAULT NULL,
  `rinci_giat` DOUBLE(20,2) DEFAULT NULL,
  `set_pagu_giat` DOUBLE(20,2) DEFAULT NULL,
  `set_pagu_skpd` DOUBLE(20,2) DEFAULT NULL,
  `tahun` YEAR(4) DEFAULT NULL,
  `total_giat` DOUBLE(20,2) DEFAULT NULL,
  `totalgiat` DOUBLE(20,2) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_skpd` (`id_skpd`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_prog_keg` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_bidang_urusan` INT(11) NOT NULL,
  `id_program` INT(11) NOT NULL,
  `id_giat` INT(11) NOT NULL,
  `id_sub_giat` INT(11) NOT NULL,
  `id_urusan` INT(11) NOT NULL,
  `is_locked` INT(11) DEFAULT NULL,
  `kode_bidang_urusan` VARCHAR(50) NOT NULL,
  `kode_giat` VARCHAR(50) NOT NULL,
  `kode_program` VARCHAR(50) NOT NULL,
  `kode_sub_giat` VARCHAR(50) NOT NULL,
  `kode_urusan` VARCHAR(50) NOT NULL,
  `nama_bidang_urusan` TEXT NOT NULL,
  `nama_giat` TEXT NOT NULL,
  `nama_program` TEXT NOT NULL,
  `nama_sub_giat` TEXT NOT NULL,
  `nama_urusan` TEXT NOT NULL,
  `status` VARCHAR(20) DEFAULT NULL,
  `aceh` INT(11) DEFAULT NULL,
  `bali` INT(11) DEFAULT NULL,
  `papua` INT(11) DEFAULT NULL,
  `papua_barat` INT(11) DEFAULT NULL,
  `yogyakarta` INT(11) DEFAULT NULL,
  `jakarta` INT(11) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_daerah_khusus` INT(11) DEFAULT NULL,
  `is_setda` INT(11) DEFAULT NULL,
  `is_setwan` INT(11) DEFAULT NULL,
  `kunci_tahun` INT(11) DEFAULT NULL,
  `mulai_tahun` INT(11) DEFAULT NULL,
  `set_kab_kota` INT(11) DEFAULT NULL,
  `set_prov` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1 COMMENT '0=hapus, 1=aktif',
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  PRIMARY KEY (id),
  KEY `id_sub_giat` (`id_sub_giat`),
  KEY `kode_sub_giat` (`kode_sub_giat`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_bidang_urusan` INT(11) NOT NULL,
  `id_program` INT(11) NOT NULL,
  `id_rpjmd` INT(11) NOT NULL,
  `indikator` VARCHAR(512) NOT NULL,
  `kebijakan_teks` VARCHAR(512) NOT NULL,
  `kode_bidang_urusan` VARCHAR(50) NOT NULL,
  `kode_program` VARCHAR(50) NOT NULL,
  `kode_skpd` VARCHAR(50),
  `misi_teks` VARCHAR(512) NOT NULL,
  `nama_bidang_urusan` VARCHAR(100) NOT NULL,
  `nama_program` TEXT NOT NULL,
  `nama_skpd` TEXT NOT NULL,
  `pagu_1` VARCHAR(50) NOT NULL,
  `pagu_2` VARCHAR(50) NOT NULL,
  `pagu_3` VARCHAR(50) NOT NULL,
  `pagu_4` VARCHAR(50) NOT NULL,
  `pagu_5` VARCHAR(50) NOT NULL,
  `sasaran_teks` TEXT NOT NULL,
  `satuan` VARCHAR(150) NOT NULL,
  `strategi_teks` TEXT NOT NULL,
  `target_1` VARCHAR(50) NOT NULL,
  `target_2` VARCHAR(50) NOT NULL,
  `target_3` VARCHAR(50) NOT NULL,
  `target_4` VARCHAR(50) NOT NULL,
  `target_5` VARCHAR(50) NOT NULL,
  `tujuan_teks` TEXT NOT NULL,
  `visi_teks` VARCHAR(512) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  PRIMARY KEY (id),
  KEY `id_rpjmd` (`id_rpjmd`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_alamat` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_alamat` INT(11) NOT NULL,
  `nama` VARCHAR(700) NOT NULL,
  `id_prov` INT(11) NOT NULL,
  `id_kab` INT(11) NOT NULL,
  `id_kec` INT(11) NOT NULL,
  `is_prov` TINYINT(4) NOT NULL,
  `is_kab` TINYINT(4) NOT NULL,
  `is_kec` TINYINT(4) NOT NULL,
  `is_kel` TINYINT(4) NOT NULL,
  `updated_at` DATETIME NOT NULL,
  `tahun` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_alamat` (`id_alamat`),
  KEY `nama` (`nama`),
  KEY `id_prov` (`id_prov`),
  KEY `id_kab` (`id_kab`),
  KEY `id_kec` (`id_kec`),
  KEY `is_prov` (`is_prov`),
  KEY `is_kab` (`is_kab`),
  KEY `is_kec` (`is_kec`),
  KEY `is_kel` (`is_kel`),
  KEY `tahun` (`tahun`)
);

CREATE TABLE `data_profile_penerima_bantuan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_profil` INT(11) NOT NULL,
  `nama_teks` VARCHAR(700) NOT NULL,
  `alamat_teks` VARCHAR(700) NOT NULL,
  `jenis_penerima` VARCHAR(700) NOT NULL,
  `updated_at` DATETIME NOT NULL,
  `tahun` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_profil` (`id_profil`),
  KEY `nama_teks` (`nama_teks`),
  KEY `alamat_teks` (`alamat_teks`),
  KEY `jenis_penerima` (`jenis_penerima`),
  KEY `tahun` (`tahun`)
);

CREATE TABLE `data_desa_kelurahan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `camat_teks` VARCHAR(50) DEFAULT NULL,
  `id_camat` INT(11) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_level` VARCHAR(50) DEFAULT NULL,
  `id_lurah` INT(11) DEFAULT NULL,
  `id_profil` INT(11) DEFAULT NULL,
  `id_user` INT(11) DEFAULT NULL,
  `is_desa` TINYINT(4) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `jabatan` VARCHAR(50) DEFAULT NULL,
  `jenis` INT(11) DEFAULT NULL,
  `kab_kota` VARCHAR(50) DEFAULT NULL,
  `kode_lurah` VARCHAR(50) DEFAULT NULL,
  `login_name` VARCHAR(50) DEFAULT NULL,
  `lurah_teks` VARCHAR(50) DEFAULT NULL,
  `nama_daerah` VARCHAR(50) DEFAULT NULL,
  `nama_user` VARCHAR(50) DEFAULT NULL,
  `accasmas` TINYINT(4) DEFAULT NULL,
  `accbankeu` TINYINT(4) DEFAULT NULL,
  `accdisposisi` TINYINT(4) DEFAULT NULL,
  `accgiat` TINYINT(4) DEFAULT NULL,
  `acchibah` TINYINT(4) DEFAULT NULL,
  `accinput` TINYINT(4) DEFAULT NULL,
  `accjadwal` TINYINT(4) DEFAULT NULL,
  `acckunci` TINYINT(4) DEFAULT NULL,
  `accmaster` TINYINT(4) DEFAULT NULL,
  `accspv` TINYINT(4) DEFAULT NULL,
  `accunit` TINYINT(4) DEFAULT NULL,
  `accusulan` TINYINT(4) DEFAULT NULL,
  `alamatteks` TEXT,
  `camatteks` VARCHAR(50) DEFAULT NULL,
  `daerahpengusul` VARCHAR(50) DEFAULT NULL,
  `dapil` VARCHAR(50) DEFAULT NULL,
  `emailteks` VARCHAR(50) DEFAULT NULL,
  `fraksi` VARCHAR(50) DEFAULT NULL,
  `idcamat` INT(11) DEFAULT NULL,
  `iddaerahpengusul` INT(11) DEFAULT NULL,
  `idkabkota` INT(11) DEFAULT NULL,
  `idlevel` INT(11) DEFAULT NULL,
  `idlokasidesa` INT(11) DEFAULT NULL,
  `idlurah` INT(11) DEFAULT NULL,
  `idlurahpengusul` INT(11) DEFAULT NULL,
  `idprofil` INT(11) DEFAULT NULL,
  `iduser` INT(11) DEFAULT NULL,
  `loginname` VARCHAR(50) DEFAULT NULL,
  `lokasidesateks` VARCHAR(50) DEFAULT NULL,
  `lurahteks` VARCHAR(50) DEFAULT NULL,
  `nama` VARCHAR(50) DEFAULT NULL,
  `namapengusul` VARCHAR(50) DEFAULT NULL,
  `nik` VARCHAR(50) DEFAULT NULL,
  `nip` VARCHAR(50) DEFAULT NULL,
  `notelp` VARCHAR(50) DEFAULT NULL,
  `npwp` VARCHAR(50) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_daerah` (`id_daerah`),
  KEY `id_camat` (`id_camat`),
  KEY `id_lurah` (`id_lurah`),
  KEY `is_desa` (`is_desa`),
  KEY `idprofil` (`idprofil`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_dewan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `jabatan` VARCHAR(50) DEFAULT NULL,
  `accasmas` TINYINT(4) DEFAULT NULL,
  `accbankeu` TINYINT(4) DEFAULT NULL,
  `accdisposisi` TINYINT(4) DEFAULT NULL,
  `accgiat` TINYINT(4) DEFAULT NULL,
  `acchibah` TINYINT(4) DEFAULT NULL,
  `accinput` TINYINT(4) DEFAULT NULL,
  `accjadwal` TINYINT(4) DEFAULT NULL,
  `acckunci` TINYINT(4) DEFAULT NULL,
  `accmaster` TINYINT(4) DEFAULT NULL,
  `accspv` TINYINT(4) DEFAULT NULL,
  `accunit` TINYINT(4) DEFAULT NULL,
  `accusulan` TINYINT(4) DEFAULT NULL,
  `alamatteks` TEXT,
  `camatteks` VARCHAR(50) DEFAULT NULL,
  `daerahpengusul` VARCHAR(50) DEFAULT NULL,
  `dapil` VARCHAR(50) DEFAULT NULL,
  `emailteks` VARCHAR(50) DEFAULT NULL,
  `fraksi` VARCHAR(50) DEFAULT NULL,
  `idcamat` INT(11) DEFAULT NULL,
  `iddaerahpengusul` INT(11) DEFAULT NULL,
  `idkabkota` INT(11) DEFAULT NULL,
  `idlevel` INT(11) DEFAULT NULL,
  `idlokasidesa` INT(11) DEFAULT NULL,
  `idlurah` INT(11) DEFAULT NULL,
  `idlurahpengusul` INT(11) DEFAULT NULL,
  `idprofil` INT(11) DEFAULT NULL,
  `iduser` INT(11) DEFAULT NULL,
  `loginname` VARCHAR(50) DEFAULT NULL,
  `lokasidesateks` VARCHAR(50) DEFAULT NULL,
  `lurahteks` VARCHAR(50) DEFAULT NULL,
  `nama` VARCHAR(50) DEFAULT NULL,
  `namapengusul` VARCHAR(50) DEFAULT NULL,
  `nik` VARCHAR(50) DEFAULT NULL,
  `nip` VARCHAR(50) DEFAULT NULL,
  `notelp` VARCHAR(50) DEFAULT NULL,
  `npwp` VARCHAR(50) DEFAULT NULL,
  `id_sub_skpd` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `is_locked` TINYINT(4) DEFAULT NULL,
  `accmonitor` TINYINT(4) DEFAULT NULL,
  `akses_user` VARCHAR(50) DEFAULT NULL,
  `akta_kumham` VARCHAR(255) DEFAULT NULL,
  `ijin_op` VARCHAR(255) DEFAULT NULL,
  `is_profil_ok` TINYINT(4) DEFAULT NULL,
  `is_vertikal` TINYINT(4) DEFAULT NULL,
  `map_lat_lokasi` TEXT DEFAULT NULL,
  `map_lng_lokasi` TEXT DEFAULT NULL,
  `no_sertifikat` TEXT DEFAULT NULL,
  `path_foto` TEXT DEFAULT NULL,
  `surat_dom` VARCHAR(255) DEFAULT NULL,
  `kode_camat` TEXT DEFAULT NULL,
  `kode_lurah` TEXT DEFAULT NULL,  
  `kode_ddn_2` VARCHAR(50) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `status` VARCHAR(50) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `idprofil` (`idprofil`),
  KEY `jabatan` (`jabatan`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_tag_sub_keg` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `idlabelgiat` INT(11) DEFAULT NULL,
  `namalabel` VARCHAR(50) DEFAULT NULL,
  `idtagbl` INT(11) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_pengaturan_sipd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_daerah` INT(11) DEFAULT NULL,
  `daerah` TEXT DEFAULT NULL,
  `kepala_daerah` TEXT DEFAULT NULL,
  `wakil_kepala_daerah` TEXT DEFAULT NULL,
  `awal_rpjmd` YEAR(4) DEFAULT NULL,
  `akhir_rpjmd` YEAR(4) DEFAULT NULL,
  `pelaksana_rkpd` TINYINT(4) DEFAULT NULL,
  `pelaksana_kua` TINYINT(4) DEFAULT NULL,
  `pelaksana_apbd` TINYINT(4) DEFAULT NULL,
  `set_kpa_sekda` TINYINT(4) DEFAULT NULL,
  `set_kpa_sub_sekda` INT(11) DEFAULT NULL,
  `id_setup_anggaran` INT(11) DEFAULT NULL,
  `set_rkpd` INT(11) DEFAULT NULL,
  `set_kua` INT(11) DEFAULT NULL,
  `ref_program` INT(11) DEFAULT NULL,
  `ref_giat` INT(11) DEFAULT NULL,
  `ref_akun` INT(11) DEFAULT NULL,
  `ref_skpd` INT(11) DEFAULT NULL,
  `ref_sumber_dana` INT(11) DEFAULT NULL,
  `ref_lokasi` INT(11) DEFAULT NULL,
  `ref_standar_harga` INT(11) DEFAULT NULL,
  `is_locked` INT(11) DEFAULT NULL,
  `jenis_set_pagu` INT(11) DEFAULT NULL,
  `tahun_aksi` INT(11) DEFAULT NULL,
  `status_kd` INT(11) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_daerah` (`id_daerah`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_sumber_dana` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_at` DATETIME DEFAULT NULL,
  `created_user` INT(11) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_dana` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `is_locked` INT(11) DEFAULT NULL,
  `kode_dana` VARCHAR(50) NOT NULL,
  `nama_dana` TEXT NOT NULL,
  `sumber_dana` TEXT DEFAULT NULL,
  `set_input` VARCHAR(50) DEFAULT NULL,
  `status` VARCHAR(50) DEFAULT NULL,
  `tahun` YEAR(4) DEFAULT NULL DEFAULT '2021',
  `updated_at` DATETIME DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1 COMMENT '0=hapus, 1=aktif',
  `updated_user` INT(11) DEFAULT NULL DEFAULT '0',
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_dana` (`id_dana`),
  KEY `kode_dana` (`kode_dana`),
  KEY `is_locked` (`is_locked`),
  KEY `set_input` (`set_input`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_user_penatausahaan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `idSkpd` INT(11) DEFAULT NULL,
  `namaSkpd` TEXT DEFAULT NULL,
  `kodeSkpd` INT(50) DEFAULT NULL,
  `idDaerah` INT(11) DEFAULT NULL,
  `userName` TEXT DEFAULT NULL,
  `nip` VARCHAR(50) DEFAULT NULL,
  `nik` VARCHAR(50) DEFAULT NULL,
  `fullName` TEXT DEFAULT NULL,
  `lahir_user` DATETIME DEFAULT NULL,
  `nomorHp` TEXT DEFAULT NULL,
  `IsRank` VARCHAR(50) DEFAULT NULL,
  `npwp` VARCHAR(50) DEFAULT NULL,
  `idJabatan` INT(11) DEFAULT NULL,
  `namaJabatan` VARCHAR(50) DEFAULT NULL,
  `idRole` INT(11) DEFAULT NULL,
  `_order` INT(11) DEFAULT NULL,
  `kpa` VARCHAR(50) DEFAULT NULL,
  `bank` TEXT DEFAULT NULL,
  `_group` VARCHAR(50) DEFAULT NULL,
  `password` VARCHAR(50) DEFAULT NULL,
  `konfirmasiPassword` VARCHAR(50) DEFAULT NULL,
  `kodeBank` TEXT DEFAULT NULL,
  `nama_rekening` TEXT DEFAULT NULL,
  `nomorRekening` TEXT DEFAULT NULL,
  `pangkatGolongan` TEXT DEFAULT NULL,
  `tahunPegawai` YEAR(4) DEFAULT NULL,
  `kodeDaerah` INT(11) DEFAULT NULL,
  `is_from_sipd` INT(11) DEFAULT NULL,
  `is_from_generate` INT(11) DEFAULT NULL,
  `is_from_external` INT(11) DEFAULT NULL,
  `idSubUnit` INT(11) DEFAULT NULL,
  `idUser` INT(11) DEFAULT NULL,
  `idPegawai` INT(11) DEFAULT NULL,
  `alamat` TEXT DEFAULT NULL,
  `updated_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT 1 COMMENT '0=hapus, 1=aktif',
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `idSkpd` (`idSkpd`),
  KEY `idDaerah` (`idDaerah`),
  KEY `nip` (`nip`),
  KEY `idUser` (`idUser`),
  KEY `idPegawai` (`idPegawai`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_renstra` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_renstra` INT(11) DEFAULT NULL,
  `id_rpjmd` INT(11) DEFAULT NULL,
  `id_sub_giat` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512),
  `indikator_sub` TEXT,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512),
  `kode_bidang_urusan` VARCHAR(50) DEFAULT NULL,
  `kode_giat` VARCHAR(50) DEFAULT NULL,
  `kode_program` VARCHAR(50) DEFAULT NULL,
  `kode_skpd` VARCHAR(50) DEFAULT NULL,
  `kode_sub_giat` VARCHAR(50) DEFAULT NULL,
  `misi_teks` VARCHAR(512),
  `nama_bidang_urusan` TEXT,
  `nama_giat` TEXT,
  `nama_program` TEXT,
  `nama_skpd` TEXT,
  `nama_sub_giat` TEXT,
  `outcome` TEXT,
  `pagu_1` DOUBLE DEFAULT NULL,
  `pagu_2` DOUBLE DEFAULT NULL,
  `pagu_3` DOUBLE DEFAULT NULL,
  `pagu_4` DOUBLE DEFAULT NULL,
  `pagu_5` DOUBLE DEFAULT NULL,
  `pagu_sub_1` DOUBLE DEFAULT NULL,
  `pagu_sub_2` DOUBLE DEFAULT NULL,
  `pagu_sub_3` DOUBLE DEFAULT NULL,
  `pagu_sub_4` DOUBLE DEFAULT NULL,
  `pagu_sub_5` DOUBLE DEFAULT NULL,
  `sasaran_teks` TEXT,
  `satuan` VARCHAR(150) DEFAULT NULL,
  `satuan_sub` VARCHAR(50) DEFAULT NULL,
  `strategi_teks` TEXT,
  `target_1` TEXT,
  `target_2` TEXT,
  `target_3` TEXT,
  `target_4` TEXT,
  `target_5` TEXT,
  `target_sub_1` TEXT,
  `target_sub_2` TEXT,
  `target_sub_3` TEXT,
  `target_sub_4` TEXT,
  `target_sub_5` TEXT,
  `tujuan_teks` TEXT,
  `visi_teks` VARCHAR(512),
  `active` TINYINT(4) NOT NULL DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unit` (`id_unit`),
  KEY `is_locked` (`is_locked`),
  KEY `id_rpjmd` (`id_rpjmd`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_lokasi_sub_keg` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `camatteks` TEXT,
  `daerahteks` TEXT,
  `idcamat` INT(11) DEFAULT NULL,
  `iddetillokasi` DOUBLE DEFAULT NULL,
  `idkabkota` INT(11) DEFAULT NULL,
  `idlurah` INT(11) DEFAULT NULL,
  `lurahteks` TEXT,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `idsubbl` (`idsubbl`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_lokasi_sub_keg_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `camatteks` TEXT,
  `daerahteks` TEXT,
  `idcamat` INT(11) DEFAULT NULL,
  `iddetillokasi` DOUBLE DEFAULT NULL,
  `idkabkota` INT(11) DEFAULT NULL,
  `idlurah` INT(11) DEFAULT NULL,
  `lurahteks` TEXT,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `camatteks_usulan` TEXT DEFAULT NULL,
  `daerahteks_usulan` TEXT DEFAULT NULL,
  `idcamat_usulan` INT(11) DEFAULT NULL,
  `iddetillokasi_usulan` DOUBLE DEFAULT NULL,
  `idkabkota_usulan` INT(11) DEFAULT NULL,
  `idlurah_usulan` INT(11) DEFAULT NULL,
  `lurahteks_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `iddetillokasi` (`iddetillokasi`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `idsubbl` (`idsubbl`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_anggaran_kas` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bulan_1` DOUBLE DEFAULT NULL,
  `bulan_2` DOUBLE DEFAULT NULL,
  `bulan_3` DOUBLE DEFAULT NULL,
  `bulan_4` DOUBLE DEFAULT NULL,
  `bulan_5` DOUBLE DEFAULT NULL,
  `bulan_6` DOUBLE DEFAULT NULL,
  `bulan_7` DOUBLE DEFAULT NULL,
  `bulan_8` DOUBLE DEFAULT NULL,
  `bulan_9` DOUBLE DEFAULT NULL,
  `bulan_10` DOUBLE DEFAULT NULL,
  `bulan_11` DOUBLE DEFAULT NULL,
  `bulan_12` DOUBLE DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_sub_giat` INT(11) DEFAULT NULL,
  `id_sub_skpd` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT,
  `selisih` DOUBLE DEFAULT NULL,
  `tahun` YEAR(4) DEFAULT NULL,
  `total_akb` DOUBLE DEFAULT NULL,
  `total_rincian` DOUBLE DEFAULT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `kode_sbl_sub_keg` VARCHAR(50) DEFAULT NULL,
  `type` VARCHAR(50) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `updated_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_akun` (`id_akun`),
  KEY `id_daerah` (`id_daerah`),
  KEY `id_sub_skpd` (`id_sub_skpd`),
  KEY `id_sub_giat` (`id_sub_giat`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `kode_sbl_sub_keg` (`kode_sbl_sub_keg`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_pembiayaan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(50) DEFAULT NULL,
  `createdtime` VARCHAR(50) DEFAULT NULL,
  `id_pembiayaan` INT(11) DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT,
  `nilaimurni` DOUBLE DEFAULT NULL,
  `nilaimurni_sipd` DOUBLE DEFAULT NULL,
  `program_koordinator` INT(11) DEFAULT NULL,
  `rekening` TEXT,
  `skpd_koordinator` INT(11) DEFAULT NULL,
  `total` DOUBLE DEFAULT NULL,
  `pagu_fmis` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(50) DEFAULT NULL,
  `updatedtime` VARCHAR(50) DEFAULT NULL,
  `uraian` TEXT,
  `urusan_koordinator` INT(11) DEFAULT NULL,
  `type` VARCHAR(50) DEFAULT NULL,
  `user1`TEXT DEFAULT NULL,
  `user2`TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `id_jadwal_murni` INT(11) DEFAULT NULL,
  `koefisien` VARCHAR(50) DEFAULT NULL,
  `kua_murni` VARCHAR(50) DEFAULT NULL,
  `kua_pak` VARCHAR(50) DEFAULT NULL,
  `rkpd_murni` VARCHAR(50) DEFAULT NULL,
  `rkpd_pak` VARCHAR(50) DEFAULT NULL,
  `satuan` VARCHAR(50) DEFAULT NULL,
  `volume` VARCHAR(50) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `active_sipd` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_pembiayaan` (`id_pembiayaan`),
  KEY `id_akun` (`id_akun`),
  KEY `kode_akun` (`kode_akun`),
  KEY `id_skpd` (`id_skpd`),
  KEY `type` (`type`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_pendapatan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(50) DEFAULT NULL,
  `createdtime` VARCHAR(50) DEFAULT NULL,
  `id_pendapatan` INT(11) DEFAULT NULL,
  `keterangan` TEXT,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT,
  `nilaimurni` DOUBLE DEFAULT NULL,
  `nilaimurni_sipd` DOUBLE DEFAULT NULL,
  `program_koordinator` INT(11) DEFAULT NULL,
  `rekening` TEXT,
  `skpd_koordinator` INT(11) DEFAULT NULL,
  `total` DOUBLE DEFAULT NULL,
  `pagu_fmis` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(50) DEFAULT NULL,
  `updatedtime` VARCHAR(50) DEFAULT NULL,
  `uraian` TEXT,
  `urusan_koordinator` INT(11) DEFAULT NULL,
  `user1` TEXT DEFAULT NULL,
  `user2` TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `id_jadwal_murni` INT(11) DEFAULT NULL,
  `koefisien` VARCHAR(50) DEFAULT NULL,
  `kua_murni` VARCHAR(50) DEFAULT NULL,
  `kua_pak` VARCHAR(50) DEFAULT NULL,
  `rkpd_murni` VARCHAR(50) DEFAULT NULL,
  `rkpd_pak` VARCHAR(50) DEFAULT NULL,
  `satuan` VARCHAR(50) DEFAULT NULL,
  `volume` VARCHAR(50) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `active_sipd` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_pendapatan` (`id_pendapatan`),
  KEY `id_akun` (`id_akun`),
  KEY `kode_akun` (`kode_akun`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_asmas` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `alamat_teks` TEXT DEFAULT NULL,
  `anggaran` DOUBLE DEFAULT NULL,
  `batal_teks` TEXT DEFAULT NULL,
  `bidang_urusan` TEXT DEFAULT NULL,
  `created_date` VARCHAR(50) DEFAULT NULL,
  `created_user` INT(11) DEFAULT NULL,
  `file_foto` TEXT DEFAULT NULL,
  `file_pengantar` TEXT DEFAULT NULL,
  `file_proposal` TEXT DEFAULT NULL,
  `file_rab` TEXT DEFAULT NULL,
  `giat_teks` TEXT DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_jenis_profil` INT(11) DEFAULT NULL,
  `id_jenis_usul` INT(11) DEFAULT NULL,
  `id_kab_kota` INT(11) DEFAULT NULL,
  `id_kecamatan` INT(11) DEFAULT NULL,
  `id_kelurahan` INT(11) DEFAULT NULL,
  `id_pengusul` INT(11) DEFAULT NULL,
  `id_profil` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_usulan` INT(11) DEFAULT NULL,
  `is_batal` INT(11) DEFAULT NULL,
  `is_tolak` INT(11) DEFAULT NULL,
  `jenis_belanja` VARCHAR(50) DEFAULT NULL,
  `jenis_profil` TEXT DEFAULT NULL,
  `jenis_usul_teks` TEXT DEFAULT NULL,
  `kelompok` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `koefisien` TEXT DEFAULT NULL,
  `level_pengusul` INT(11) DEFAULT NULL,
  `lokus_usulan` TEXT DEFAULT NULL,
  `masalah` TEXT DEFAULT NULL,
  `nama_daerah` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_user` TEXT DEFAULT NULL,
  `nip` INT(11) DEFAULT NULL,
  `pengusul` TEXT DEFAULT NULL,
  `rekom_camat_anggaran` DOUBLE DEFAULT NULL,
  `rekom_camat_koefisien` TEXT DEFAULT NULL,
  `rekom_camat_rekomendasi` TEXT DEFAULT NULL,
  `rekom_lurah_anggaran` DOUBLE DEFAULT NULL,
  `rekom_lurah_koefisien` TEXT DEFAULT NULL,
  `rekom_lurah_rekomendasi` TEXT DEFAULT NULL,
  `rekom_mitra_anggaran` DOUBLE DEFAULT NULL,
  `rekom_mitra_koefisien` TEXT DEFAULT NULL,
  `rekom_mitra_rekomendasi` TEXT DEFAULT NULL,
  `rekom_skpd_anggaran` DOUBLE DEFAULT NULL,
  `rekom_skpd_koefisien` TEXT DEFAULT NULL,
  `rekom_skpd_rekomendasi` TEXT DEFAULT NULL,
  `rekom_tapd_anggaran` DOUBLE DEFAULT NULL,
  `rekom_tapd_koefisien` TEXT DEFAULT NULL,
  `rekom_tapd_rekomendasi` TEXT DEFAULT NULL,
  `rev_skpd` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status_usul` INT(11) DEFAULT NULL,
  `status_usul_teks` TEXT DEFAULT NULL,
  `tolak_teks` INT(11) DEFAULT NULL,
  `tujuan_usul` TEXT DEFAULT NULL,
  `detail_alamatteks` TEXT DEFAULT NULL,
  `detail_anggaran` DOUBLE DEFAULT NULL,
  `detail_bidangurusan` TEXT DEFAULT NULL,
  `detail_camatteks` TEXT DEFAULT NULL,
  `detail_filefoto` TEXT DEFAULT NULL,
  `detail_filefoto2` TEXT DEFAULT NULL,
  `detail_filefoto3` TEXT DEFAULT NULL,
  `detail_filepengantar` TEXT DEFAULT NULL,
  `detail_fileproposal` TEXT DEFAULT NULL,
  `detail_filerab` TEXT DEFAULT NULL,
  `detail_gagasan` TEXT DEFAULT NULL,
  `detail_idcamat` INT(11) DEFAULT NULL,
  `detail_idkabkota` INT(11) DEFAULT NULL,
  `detail_idkamus` INT(11) DEFAULT NULL,
  `detail_idlurah` INT(11) DEFAULT NULL,
  `detail_idskpd` INT(11) DEFAULT NULL,
  `detail_jenisbelanja` TEXT DEFAULT NULL,
  `detail_kodeskpd` TEXT DEFAULT NULL,
  `detail_langpeta` TEXT DEFAULT NULL,
  `detail_latpeta` TEXT DEFAULT NULL,
  `detail_lurahteks` TEXT DEFAULT NULL,
  `detail_masalah` TEXT DEFAULT NULL,
  `detail_namakabkota` TEXT DEFAULT NULL,
  `detail_namaskpd` TEXT DEFAULT NULL,
  `detail_rekomteks` TEXT DEFAULT NULL,
  `detail_satuan` TEXT DEFAULT NULL,
  `detail_setStatusUsul` TEXT DEFAULT NULL,
  `detail_subgiat` INT(11) DEFAULT NULL,
  `detail_tujuanusul` TEXT DEFAULT NULL,
  `detail_usulanggaran` DOUBLE DEFAULT NULL,
  `detail_usulvolume` INT(11) DEFAULT NULL,
  `detail_volume` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `is_verif` INT(11) DEFAULT NULL,
  `nama_skpd_awal` TEXT DEFAULT NULL,
  `is_kembalikan` INT(11) DEFAULT NULL,
  `rekom_teks` TEXT DEFAULT NULL,
  `kembalikan` INT(11) DEFAULT NULL,
  `id_isu` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `detail_koefisien` TEXT DEFAULT NULL,
  `is_stat_lahan` INT(11) DEFAULT NULL,
  `is_sertifikat_lahan` INT(11) DEFAULT NULL,
  `is_rincian_teknis` INT(11) DEFAULT NULL,
  `latbel_teks` TEXT DEFAULT NULL,
  `dashuk_teks` TEXT DEFAULT NULL,
  `maksud_teks` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `id_prop` INT(11) DEFAULT NULL,
  `id_bl` INT(11) DEFAULT NULL,
  `id_sub_bl` INT(11) DEFAULT NULL,
  `sub_giat_baru` INT(11) DEFAULT NULL,
  `detail_id_skpd_awal` INT(11) DEFAULT NULL,
  `id_skpd_bl` INT(11) DEFAULT NULL,
  `id_sub_skpd_bl` INT(11) DEFAULT NULL,
  `id_program_bl` INT(11) DEFAULT NULL,
  `id_giat_bl` INT(11) DEFAULT NULL,
  `id_sub_giat_bl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_daerah` (`id_daerah`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unit` (`id_unit`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_pokir` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `alamat_teks` TEXT DEFAULT NULL,
  `anggaran` DOUBLE DEFAULT NULL,
  `batal_teks` TEXT DEFAULT NULL,
  `bidang_urusan` TEXT DEFAULT NULL,
  `created_date` VARCHAR(50) DEFAULT NULL,
  `created_user` INT(11) DEFAULT NULL,
  `file_foto` TEXT DEFAULT NULL,
  `file_pengantar` TEXT DEFAULT NULL,
  `file_proposal` TEXT DEFAULT NULL,
  `file_rab` TEXT DEFAULT NULL,
  `fraksi_dewan` TEXT DEFAULT NULL,
  `giat_teks` TEXT DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_jenis_usul` INT(11) DEFAULT NULL,
  `id_kab_kota` INT(11) DEFAULT NULL,
  `id_kecamatan` INT(11) DEFAULT NULL,
  `id_kelurahan` INT(11) DEFAULT NULL,
  `id_pengusul` INT(11) DEFAULT NULL,
  `id_reses` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_usulan` INT(11) DEFAULT NULL,
  `is_batal` INT(11) DEFAULT NULL,
  `is_tolak` INT(11) DEFAULT NULL,
  `jenis_belanja` VARCHAR(50) DEFAULT NULL,
  `jenis_usul_teks` TEXT DEFAULT NULL,
  `kelompok` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `koefisien` TEXT DEFAULT NULL,
  `lokus_usulan` TEXT DEFAULT NULL,
  `masalah` TEXT DEFAULT NULL,
  `nama_daerah` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_user` TEXT DEFAULT NULL,
  `pengusul` TEXT DEFAULT NULL,
  `rekom_mitra_anggaran` DOUBLE DEFAULT NULL,
  `rekom_mitra_koefisien` TEXT DEFAULT NULL,
  `rekom_mitra_rekomendasi` TEXT DEFAULT NULL,
  `rekom_setwan_anggaran` DOUBLE DEFAULT NULL,
  `rekom_setwan_koefisien` TEXT DEFAULT NULL,
  `rekom_setwan_rekomendasi` TEXT DEFAULT NULL,
  `rekom_skpd_anggaran` DOUBLE DEFAULT NULL,
  `rekom_skpd_koefisien` TEXT DEFAULT NULL,
  `rekom_skpd_rekomendasi` TEXT DEFAULT NULL,
  `rekom_tapd_anggaran` DOUBLE DEFAULT NULL,
  `rekom_tapd_koefisien` TEXT DEFAULT NULL,
  `rekom_tapd_rekomendasi` TEXT DEFAULT NULL,
  `rev_skpd` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status_usul` INT(11) DEFAULT NULL,
  `status_usul_teks` TEXT DEFAULT NULL,
  `tolak_teks` INT(11) DEFAULT NULL,
  `tujuan_usul` TEXT DEFAULT NULL,
  `detail_alamatteks` TEXT DEFAULT NULL,
  `detail_anggaran` DOUBLE DEFAULT NULL,
  `detail_bidangurusan` TEXT DEFAULT NULL,
  `detail_camatteks` TEXT DEFAULT NULL,
  `detail_filefoto` TEXT DEFAULT NULL,
  `detail_filefoto2` TEXT DEFAULT NULL,
  `detail_filefoto3` TEXT DEFAULT NULL,
  `detail_filepengantar` TEXT DEFAULT NULL,
  `detail_fileproposal` TEXT DEFAULT NULL,
  `detail_filerab` TEXT DEFAULT NULL,
  `detail_gagasan` TEXT DEFAULT NULL,
  `detail_idcamat` INT(11) DEFAULT NULL,
  `detail_idkabkota` INT(11) DEFAULT NULL,
  `detail_idkamus` INT(11) DEFAULT NULL,
  `detail_idlurah` INT(11) DEFAULT NULL,
  `detail_idskpd` INT(11) DEFAULT NULL,
  `detail_jenisbelanja` TEXT DEFAULT NULL,
  `detail_kodeskpd` TEXT DEFAULT NULL,
  `detail_langpeta` TEXT DEFAULT NULL,
  `detail_latpeta` TEXT DEFAULT NULL,
  `detail_lurahteks` TEXT DEFAULT NULL,
  `detail_masalah` TEXT DEFAULT NULL,
  `detail_namakabkota` TEXT DEFAULT NULL,
  `detail_namaskpd` TEXT DEFAULT NULL,
  `detail_rekomteks` TEXT DEFAULT NULL,
  `detail_satuan` TEXT DEFAULT NULL,
  `detail_setStatusUsul` TEXT DEFAULT NULL,
  `detail_subgiat` INT(11) DEFAULT NULL,
  `detail_usulanggaran` DOUBLE DEFAULT NULL,
  `detail_usulvolume` INT(11) DEFAULT NULL,
  `detail_volume` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `is_verif` INT(11) DEFAULT NULL,
  `nama_skpd_awal` TEXT DEFAULT NULL,
  `is_kembalikan` INT(11) DEFAULT NULL,
  `rekom_teks` TEXT DEFAULT NULL,
  `kembalikan` INT(11) DEFAULT NULL,
  `id_isu` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `detail_koefisien` TEXT DEFAULT NULL,
  `is_stat_lahan` INT(11) DEFAULT NULL,
  `is_sertifikat_lahan` INT(11) DEFAULT NULL,
  `is_rincian_teknis` INT(11) DEFAULT NULL,
  `latbel_teks` TEXT DEFAULT NULL,
  `dashuk_teks` TEXT DEFAULT NULL,
  `maksud_teks` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `id_prop` INT(11) DEFAULT NULL,
  `id_bl` INT(11) DEFAULT NULL,
  `id_sub_bl` INT(11) DEFAULT NULL,
  `sub_giat_baru` INT(11) DEFAULT NULL,
  `detail_id_skpd_awal` INT(11) DEFAULT NULL,
  `id_skpd_bl` INT(11) DEFAULT NULL,
  `id_sub_skpd_bl` INT(11) DEFAULT NULL,
  `id_program_bl` INT(11) DEFAULT NULL,
  `id_giat_bl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unit` (`id_unit`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_user_tapd_sekda` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_at` DATETIME NOT NULL,
  `created_user` INT(11) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `jabatan` TEXT DEFAULT NULL,
  `nama` VARCHAR(512) NOT NULL,
  `nip` DOUBLE(20,2) NOT NULL,
  `no_urut` INT(11) DEFAULT NULL,
  `tahun` YEAR(4) NOT NULL,
  `updated_at` DATETIME NOT NULL,
  `type` VARCHAR(20) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `singkron_at` DATETIME NOT NULL,
  `active` TINYINT(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (id),
  KEY `id_daerah` (`id_daerah`),
  KEY `id_skpd` (`id_skpd`),
  KEY `nip` (`nip`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_pangkat_golongan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_pangkat` INT(11) DEFAULT NULL,
  `nama_pangkat` TEXT DEFAULT NULL,
  `nama_golongan` TEXT DEFAULT NULL,  
  `tahun_anggaran` YEAR(4) NOT NULL,
  `singkron_at` DATETIME NOT NULL,
  `active` TINYINT(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (id),
  KEY `id_pangkat` (`id_pangkat`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);


CREATE TABLE `data_rfk` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bulan` TINYINT(2) NOT NULL,
  `kode_sbl` VARCHAR(256) NOT NULL,
  `rak` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_anggaran` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_fisik` DOUBLE(5,2) DEFAULT NULL,
  `permasalahan` TEXT DEFAULT NULL,
  `catatan_verifikator` TEXT DEFAULT NULL,
  `user_edit` TEXT DEFAULT NULL,
  `user_verifikator` TEXT DEFAULT NULL,
  `update_verifikator_at` DATETIME DEFAULT NULL,
  `update_fisik_at` DATETIME DEFAULT NULL,
  `id_skpd` INT(11) NOT NULL,
  `created_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `bulan` (`bulan`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_skpd` (`id_skpd`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_rpjmd_program` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` VARCHAR(20) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_sasaran` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `id_rpjmd` INT(11) DEFAULT NULL,
  `pagu_awal` DOUBLE(20,2) DEFAULT NULL,
  `pagu_akhir` DOUBLE(20,2) DEFAULT NULL,
  `id_sasaran_indikator` TEXT DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `tahun_awal` YEAR(4) DEFAULT NULL,
  `tahun_akhir` YEAR(4) DEFAULT NULL,
  `id_tujuan_old` INT(11) DEFAULT NULL,
  `id_sasaran_old` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id_jadwal` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_program` (`id_program`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_rpjmd_sasaran` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_sasaran` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_sasaran` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `tahun_awal` YEAR(4) DEFAULT NULL,
  `tahun_akhir` YEAR(4) DEFAULT NULL,
  `id_tujuan_old` INT(11) DEFAULT NULL,
  `id_sasaran_old` INT(11) DEFAULT NULL,
  `id_tujuan_indikator` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id_jadwal` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_tujuan_indikator` (`id_tujuan_indikator`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_rpjmd_tujuan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_tujuan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,  
  `id_tahap` INT(11) DEFAULT NULL,
  `id_tujuan_old` INT(11) DEFAULT NULL,
  `tahun_awal` YEAR(4) DEFAULT NULL,
  `tahun_akhir` YEAR(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id_jadwal` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_misi` (`id_misi`),
  KEY `id_tahap` (`id_tahap`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_sub_keg_bl` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_sub_skpd` INT(11) NOT NULL,
  `id_lokasi` INT(11) DEFAULT NULL,
  `id_label_kokab` INT(11) DEFAULT NULL,
  `nama_dana` TEXT,
  `no_sub_giat` VARCHAR(20) NOT NULL,
  `kode_giat` VARCHAR(50) NOT NULL,
  `id_program` INT(11) NOT NULL,
  `nama_lokasi` TEXT DEFAULT NULL,
  `waktu_akhir` INT(11) NOT NULL,
  `pagu_n_lalu` DOUBLE(20,2) DEFAULT NULL,
  `id_urusan` INT(11) NOT NULL,
  `id_unik_sub_bl` TEXT NOT NULL,
  `id_sub_giat` INT(11) NOT NULL,
  `label_prov` TEXT,
  `kode_program` VARCHAR(50) NOT NULL,
  `kode_sub_giat` VARCHAR(50) NOT NULL,
  `no_program` VARCHAR(20) NOT NULL,
  `kode_urusan` VARCHAR(20) NOT NULL,
  `kode_bidang_urusan` VARCHAR(20) NOT NULL,
  `nama_program` TEXT NOT NULL,
  `target_4` TEXT,
  `target_5` TEXT,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `nama_bidang_urusan` TEXT,
  `target_3` TEXT,
  `no_giat` VARCHAR(50) NOT NULL,
  `id_label_prov` INT(11) NOT NULL,
  `waktu_awal` INT(11) NOT NULL,
  `pagumurni` DOUBLE(20, 2) DEFAULT NULL,
  `pagumurni_murni` DOUBLE(20, 2) DEFAULT NULL,
  `pagu` DOUBLE(20, 2) NOT NULL,
  `pagu_simda` DOUBLE(20, 2) DEFAULT NULL,
  `output_sub_giat` TEXT,
  `sasaran` TEXT,
  `indikator` VARCHAR(512),
  `id_dana` INT(11) DEFAULT NULL,
  `nama_sub_giat` TEXT NOT NULL,
  `pagu_n_depan` DOUBLE(20, 2) NOT NULL,
  `satuan` TEXT,
  `id_rpjmd` INT(11) NOT NULL,
  `id_giat` INT(11) NOT NULL,
  `id_label_pusat` INT(11) NOT NULL,
  `nama_giat` TEXT NOT NULL,
  `kode_skpd` VARCHAR(50) NOT NULL,
  `nama_skpd` TEXT NOT NULL,
  `kode_sub_skpd` VARCHAR(50) NOT NULL,
  `id_skpd` INT(11) NOT NULL,
  `id_sub_bl` INT(11) DEFAULT NULL,
  `nama_sub_skpd` TEXT NOT NULL,
  `target_1` TEXT,
  `nama_urusan` TEXT NOT NULL,
  `target_2` TEXT,
  `label_kokab` TEXT,
  `label_pusat` TEXT,
  `pagu_keg` DOUBLE(20, 2) NOT NULL,
  `pagu_fmis` DOUBLE(20, 2) DEFAULT NULL,
  `id_bl` INT(11) DEFAULT NULL,
  `kode_bl` VARCHAR(50) NOT NULL,
  `kode_sbl` VARCHAR(50) NOT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `active_sipd` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `kode_sub_giat` (`kode_sub_giat`),
  KEY `id_sub_skpd` (`id_sub_skpd`)
);

CREATE TABLE `data_sub_keg_bl_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_sub_skpd` INT(11) NOT NULL,
  `id_lokasi` INT(11) DEFAULT NULL,
  `id_label_kokab` INT(11) NOT NULL,
  `nama_dana` TEXT,
  `no_sub_giat` VARCHAR(20) NOT NULL,
  `kode_giat` VARCHAR(50) NOT NULL,
  `id_program` INT(11) NOT NULL,
  `nama_lokasi` TEXT DEFAULT NULL,
  `waktu_akhir` INT(11) NOT NULL,
  `pagu_n_lalu` DOUBLE(20, 2) DEFAULT NULL,
  `id_urusan` INT(11) NOT NULL,
  `id_unik_sub_bl` TEXT NOT NULL,
  `id_sub_giat` INT(11) NOT NULL,
  `label_prov` TEXT,
  `kode_program` VARCHAR(50) NOT NULL,
  `kode_sub_giat` VARCHAR(50) NOT NULL,
  `no_program` VARCHAR(20) NOT NULL,
  `kode_urusan` VARCHAR(20) NOT NULL,
  `kode_bidang_urusan` VARCHAR(20) NOT NULL,
  `nama_program` TEXT NOT NULL,
  `target_4` TEXT,
  `target_5` TEXT,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `nama_bidang_urusan` TEXT,
  `target_3` TEXT,
  `no_giat` VARCHAR(50) NOT NULL,
  `id_label_prov` INT(11) NOT NULL,
  `waktu_awal` INT(11) NOT NULL,
  `pagumurni` DOUBLE(20, 2) DEFAULT NULL,
  `pagu` DOUBLE(20, 2) NOT NULL,
  `pagu_simda` DOUBLE(20, 2) DEFAULT NULL,
  `output_sub_giat` TEXT,
  `sasaran` TEXT,
  `indikator` VARCHAR(512),
  `id_dana` INT(11) DEFAULT NULL,
  `nama_sub_giat` TEXT NOT NULL,
  `pagu_n_depan` DOUBLE(20, 2) NOT NULL,
  `satuan` TEXT,
  `id_rpjmd` INT(11) NOT NULL,
  `id_giat` INT(11) NOT NULL,
  `id_label_pusat` INT(11) NOT NULL,
  `nama_giat` TEXT NOT NULL,
  `kode_skpd` VARCHAR(50) NOT NULL,
  `nama_skpd` TEXT NOT NULL,
  `kode_sub_skpd` VARCHAR(50) NOT NULL,
  `id_skpd` INT(11) NOT NULL,
  `id_sub_bl` INT(11) DEFAULT NULL,
  `nama_sub_skpd` TEXT NOT NULL,
  `target_1` TEXT,
  `nama_urusan` TEXT NOT NULL,
  `target_2` TEXT,
  `label_kokab` TEXT,
  `label_pusat` TEXT,
  `pagu_keg` DOUBLE(20, 2) NOT NULL,
  `pagu_fmis` DOUBLE(20, 2) DEFAULT NULL,
  `id_bl` INT(11) DEFAULT NULL,
  `kode_bl` VARCHAR(50) NOT NULL,
  `kode_sbl` VARCHAR(50) NOT NULL,
  `kode_sbl_lama` VARCHAR(50) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  `catatan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `pagu_usulan` DOUBLE(20, 2) DEFAULT NULL,
  `pagu_n_depan_usulan` DOUBLE(20, 2) DEFAULT NULL,
  `waktu_awal_usulan` INT(11) DEFAULT NULL,
  `waktu_akhir_usulan` INT(11) DEFAULT NULL,
  `sasaran_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `kode_sub_giat` (`kode_sub_giat`),
  KEY `id_sub_skpd` (`id_sub_skpd`)
);

CREATE TABLE `data_mapping_sumberdana` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_rinci_sub_bl` INT(11) NOT NULL,
  `id_sumber_dana` INT(11) NOT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`)
);

CREATE TABLE `data_label_komponen` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `nama` VARCHAR(512) DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `rencana_pagu` DOUBLE(20,2) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`),
  KEY `id_skpd` (`id_skpd`)
);

CREATE TABLE `data_label_komponen_sub_giat` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_label_komponen` INT(11) not NULL,
  `keterangan` TEXT DEFAULT NULL,
  `kode_sbl` VARCHAR(512) DEFAULT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_label_komponen` (`id_label_komponen`)
);

CREATE TABLE `data_mapping_label` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_rinci_sub_bl` INT(11) NOT NULL,
  `id_label_komponen` INT(11) NOT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL COMMENT '1 = aktif, 0 = hapus, 2 = arsip',
  `pisah` TINYINT(4) DEFAULT 0 COMMENT '1 = pisah, 0 = tidak pisah',
  `volume_pisah` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pisah` DOUBLE(20,2) DEFAULT NULL,
  `keterangan_hapus` TEXT DEFAULT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `active` (`active`),
  KEY `pisah` (`pisah`),
  KEY `id_label_komponen` (`id_label_komponen`)
);

CREATE TABLE `data_mapping_label_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_rinci_sub_bl` INT(11) NOT NULL,
  `id_label_komponen` INT(11) NOT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL COMMENT '1 = aktif, 0 = hapus, 2 = arsip',
  `pisah` TINYINT(4) DEFAULT 0 COMMENT '1 = pisah, 0 = tidak pisah',
  `volume_pisah` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pisah` DOUBLE(20,2) DEFAULT NULL,
  `keterangan_hapus` TEXT DEFAULT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `active` (`active`),
  KEY `pisah` (`pisah`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `id_asli` (`id_asli`),
  KEY `id_label_komponen` (`id_label_komponen`)
);

CREATE TABLE `data_label_spm` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_spm` INT(11) NOT NULL,
  `id_label_kokab` INT(11) DEFAULT NULL,
  `abjad_spm` TEXT DEFAULT NULL,
  `nama` VARCHAR(512) DEFAULT NULL,
  `kode_layanan` TEXT DEFAULT NULL,
  `layanan_teks` TEXT DEFAULT NULL,
  `spm_teks` TEXT DEFAULT NULL,
  `dashuk_teks` TEXT DEFAULT NULL,
  `set_prov` TINYINT(4) NOT NULL,
  `set_kab_kota` TINYINT(4) NOT NULL,  
  `user` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) NOT NULL,
  `active` TINYINT(4) NOT NULL, 
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_spm` (`id_spm`),
  KEY `active` (`active`)
);

CREATE TABLE `data_mapping_spm_subgiat` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_spm_giat` INT(11) NOT NULL,
  `id_spm` INT(11) NOT NULL,
  `id_bidang_urusan` INT(11) NOT NULL,
  `id_program` INT(11) NOT NULL,
  `id_giat` INT(11) NOT NULL,
  `id_sub_giat` INT(11) NOT NULL,
  `set_prov` INT(11) NOT NULL,
  `set_kab_kota` INT(11) NOT NULL,
  `user` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_spm` (`id_spm`),
  KEY `id_sub_giat` (`id_sub_giat`),
  KEY `active` (`active`)
);

CREATE TABLE `data_label_kemiskinan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,  
  `kelompok_teks` TEXT DEFAULT NULL,
  `strategi_teks` VARCHAR(700) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL, 
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `strategi_teks` (`strategi_teks`),
  KEY `active` (`active`)
);

CREATE TABLE `data_mapping_kemiskinan_subgiat` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_label_miskin` INT(11) DEFAULT NULL,
  `kelompok_teks` TEXT DEFAULT NULL,
  `strategi_teks` TEXT DEFAULT NULL,
  `id_urusan` INT(11) NOT NULL,
  `id_bidang_urusan` INT(11) NOT NULL,
  `id_program` INT(11) NOT NULL,
  `id_giat` INT(11) NOT NULL,
  `id_sub_giat` INT(11) NOT NULL,
  `kode_sub_giat` TEXT DEFAULT NULL,
  `nama_sub_giat` TEXT DEFAULT NULL,
  `user` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_label_miskin` (`id_label_miskin`),
  KEY `id_sub_giat` (`id_sub_giat`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_tujuan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_jadwal` INT(11) NOT NULL,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_sasaran_rpjm` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `realisasi_target_1` TEXT DEFAULT NULL,
  `realisasi_target_2` TEXT DEFAULT NULL,
  `realisasi_target_3` TEXT DEFAULT NULL,
  `realisasi_target_4` TEXT DEFAULT NULL,
  `realisasi_target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL, 
  `id_tahap` INT(11) DEFAULT NULL,
  `id_tujuan` INT(11) DEFAULT NULL,
  `perlu_mutakhirkan` TEXT DEFAULT NULL,    
  `id_visi` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `tahun_awal` YEAR(4) DEFAULT NULL,
  `tahun_akhir` YEAR(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `keterangan_1` TEXT DEFAULT NULL,
  `keterangan_2` TEXT DEFAULT NULL,
  `keterangan_3` TEXT DEFAULT NULL,
  `keterangan_4` TEXT DEFAULT NULL,
  `keterangan_5` TEXT DEFAULT NULL,
  `kode_bidang_urusan_multiple` TEXT DEFAULT NULL,
  `kode_sasaran_multiple` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_tahap` (`id_tahap`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_sasaran` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_jadwal` INT(11) NOT NULL,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` INT(11) DEFAULT NULL,
  `is_locked_indikator` INT(11) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `realisasi_target_1` TEXT DEFAULT NULL,
  `realisasi_target_2` TEXT DEFAULT NULL,
  `realisasi_target_3` TEXT DEFAULT NULL,
  `realisasi_target_4` TEXT DEFAULT NULL,
  `realisasi_target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `id_sasaran` INT(11) DEFAULT NULL,
  `id_tujuan_indikator` INT(11) DEFAULT NULL,  
  `kode_sasaran_rpjm` TEXT DEFAULT NULL,
  `tahun_awal` YEAR(4) DEFAULT NULL,
  `tahun_akhir` YEAR(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `keterangan_1` TEXT DEFAULT NULL,
  `keterangan_2` TEXT DEFAULT NULL,
  `keterangan_3` TEXT DEFAULT NULL,
  `keterangan_4` TEXT DEFAULT NULL,
  `keterangan_5` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_tahap` (`id_tahap`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_program` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_jadwal` INT(11) NOT NULL,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `realisasi_target_1` TEXT DEFAULT NULL,
  `realisasi_target_2` TEXT DEFAULT NULL,
  `realisasi_target_3` TEXT DEFAULT NULL,
  `realisasi_target_4` TEXT DEFAULT NULL,
  `realisasi_target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` INT(11) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `pagu_awal` DOUBLE(20,2) DEFAULT NULL,
  `pagu_akhir` DOUBLE(20,2) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `id_sasaran_indikator` INT(11) DEFAULT NULL,
  `id_renstra_program` INT(11) DEFAULT NULL,  
  `kode_sasaran_rpjm` TEXT DEFAULT NULL,
  `tahun_awal` YEAR(4) DEFAULT NULL,
  `tahun_akhir` YEAR(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `keterangan_1` TEXT DEFAULT NULL,
  `keterangan_2` TEXT DEFAULT NULL,
  `keterangan_3` TEXT DEFAULT NULL,
  `keterangan_4` TEXT DEFAULT NULL,
  `keterangan_5` TEXT DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_tahap` (`id_tahap`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_kegiatan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_jadwal` INT(11) NOT NULL,
  `bidur_lock` TINYINT(4) DEFAULT NULL,
  `giat_lock` TINYINT(4) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_giat` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `kode_unik_program` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_giat` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `renstra_prog_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `realisasi_target_1` TEXT DEFAULT NULL,
  `realisasi_target_2` TEXT DEFAULT NULL,
  `realisasi_target_3` TEXT DEFAULT NULL,
  `realisasi_target_4` TEXT DEFAULT NULL,
  `realisasi_target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `pagu_awal` DOUBLE(20,2) DEFAULT NULL,
  `pagu_akhir` DOUBLE(20,2) DEFAULT NULL,
  `id_rpjm_indikator` INT(11) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `kode_sasaran_rpjm` TEXT DEFAULT NULL,
  `tahun_awal` YEAR(4) DEFAULT NULL,
  `tahun_akhir` YEAR(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `keterangan_1` TEXT DEFAULT NULL,
  `keterangan_2` TEXT DEFAULT NULL,
  `keterangan_3` TEXT DEFAULT NULL,
  `keterangan_4` TEXT DEFAULT NULL,
  `keterangan_5` TEXT DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_tahap` (`id_tahap`),
  KEY `active` (`active`)
);

CREATE TABLE `data_realisasi_akun` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `realisasi` DOUBLE(20, 2) DEFAULT NULL,
  `rak` DOUBLE(20,2) DEFAULT NULL,
  `kode_akun` VARCHAR(512) DEFAULT NULL,
  `kode_sbl` VARCHAR(512) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_akun` (`kode_akun`),
  KEY `id_skpd` (`id_skpd`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_realisasi_rincian` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_rinci_sub_bl` INT(11) NOT NULL,
  `realisasi` DOUBLE(20,2) DEFAULT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_realisasi_renja` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_indikator` INT(11) DEFAULT NULL,
  `id_unik_indikator_renstra` TEXT DEFAULT NULL,
  `tipe_indikator` TINYINT(4) DEFAULT NULL,
  `id_rumus_indikator` INT(11) DEFAULT NULL,
  `kode_sbl` VARCHAR(512) DEFAULT NULL,
  `realisasi_bulan_1` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_2` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_3` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_4` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_5` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_6` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_7` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_8` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_9` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_10` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_11` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_bulan_12` DOUBLE(20,2) DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_indikator` (`id_indikator`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rumus_indikator` (
  `id_asli` INT(11) NOT NULL AUTO_INCREMENT,
  `id` INT(11) NOT NULL,
  `rumus` TEXT DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY  (id_asli),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_monev_renja_triwulan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `triwulan` TINYINT(1) NOT NULL,
  `keterangan_skpd` TEXT DEFAULT NULL,
  `id_skpd` INT(11) NOT NULL,
  `user_skpd` TEXT DEFAULT NULL,
  `catatan_verifikator` TEXT DEFAULT NULL,
  `user_verifikator` TEXT DEFAULT NULL,
  `file_monev` TEXT DEFAULT NULL,
  `update_skpd_at` DATETIME NOT NULL,
  `update_verifikator_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `triwulan` (`triwulan`),
  KEY `id_skpd` (`id_skpd`)
);

CREATE TABLE `data_skpd_mitra_bappeda` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `akses_user` TEXT DEFAULT NULL,
  `id_level` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_user` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `login_name` VARCHAR(512) DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_user` TEXT DEFAULT NULL,
  `nip` VARCHAR(512) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_unit` (`id_unit`),
  KEY `active` (`active`),
  KEY `login_name` (`login_name`),
  KEY `nip` (`nip`)
);

CREATE TABLE `data_rpjmd_visi` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_visi` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(2) DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `tahun_awal` YEAR(4) DEFAULT NULL,
  `tahun_akhir` YEAR(4) DEFAULT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id_jadwal` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_visi` (`id_visi`),
  KEY `active` (`active`),
  KEY `id_unik` (`id_unik`),
  KEY `id_tahap` (`id_tahap`)
);

CREATE TABLE `data_rpjmd_misi` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(2) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(2) DEFAULT NULL,
  `visi_lock` TINYINT(2) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `tahun_awal` YEAR(4) DEFAULT NULL,
  `tahun_akhir` YEAR(4) DEFAULT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id_jadwal` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_unik` (`id_unik`),
  KEY `active` (`active`)
);

CREATE TABLE `data_realisasi_renstra` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_indikator` INT(11) NOT NULL,
  `type_indikator` INT(11) NOT NULL,
  `id_rumus_indikator` INT(11) NOT NULL,
  `hitung_indikator` SMALLINT(6) NOT NULL COMMENT '1 = auto, 0 = manual',
  `realisasi_bulan_1` TEXT NOT NULL,
  `realisasi_bulan_2` TEXT NOT NULL,
  `realisasi_bulan_3` TEXT NOT NULL,
  `realisasi_bulan_4` TEXT NOT NULL,
  `realisasi_bulan_5` TEXT NOT NULL,
  `realisasi_bulan_6` TEXT NOT NULL,
  `realisasi_bulan_7` TEXT NOT NULL,
  `realisasi_bulan_8` TEXT NOT NULL,
  `realisasi_bulan_9` TEXT NOT NULL,
  `realisasi_bulan_10` TEXT NOT NULL,
  `realisasi_bulan_11` TEXT NOT NULL,
  `realisasi_bulan_12` TEXT NOT NULL,
  `capaian_bulan_1` TEXT NOT NULL,
  `capaian_bulan_2` TEXT NOT NULL,
  `capaian_bulan_3` TEXT NOT NULL,
  `capaian_bulan_4` TEXT NOT NULL,
  `capaian_bulan_5` TEXT NOT NULL,
  `capaian_bulan_6` TEXT NOT NULL,
  `capaian_bulan_7` TEXT NOT NULL,
  `capaian_bulan_8` TEXT NOT NULL,
  `capaian_bulan_9` TEXT NOT NULL,
  `capaian_bulan_10` TEXT NOT NULL,
  `capaian_bulan_11` TEXT NOT NULL,
  `capaian_bulan_12` TEXT NOT NULL,
  `realisasi_anggaran_bulan_1` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_2` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_3` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_4` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_5` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_6` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_7` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_8` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_9` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_10` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_11` DOUBLE(20,2) NOT NULL,
  `realisasi_anggaran_bulan_12` DOUBLE(20,2) NOT NULL,
  `keterangan_bulan_1` TEXT NOT NULL,
  `keterangan_bulan_2` TEXT NOT NULL,
  `keterangan_bulan_3` TEXT NOT NULL,
  `keterangan_bulan_4` TEXT NOT NULL,
  `keterangan_bulan_5` TEXT NOT NULL,
  `keterangan_bulan_6` TEXT NOT NULL,
  `keterangan_bulan_7` TEXT NOT NULL,
  `keterangan_bulan_8` TEXT NOT NULL,
  `keterangan_bulan_9` TEXT NOT NULL,
  `keterangan_bulan_10` TEXT NOT NULL,
  `keterangan_bulan_11` TEXT NOT NULL,
  `keterangan_bulan_12` TEXT NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `created_by` TEXT NOT NULL,
  `created_at` DATETIME NOT NULL,
  `updated_by` TEXT NOT NULL,
  `updated_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_indikator` (`id_indikator`),
  KEY `type_indikator` (`type_indikator`)
);

CREATE TABLE `data_aktivitas_fmis` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `id_mapping` TEXT DEFAULT NULL,
    `id_sub_skpd` INT(11) DEFAULT NULL,
    `aktivitas` TEXT DEFAULT NULL,
    `idaktivitas` INT(11) DEFAULT NULL,
    `dt_rowid` TEXT DEFAULT NULL,
    `dt_rowindex` INT(11) DEFAULT NULL,
    `created_at` DATETIME DEFAULT NULL,
    `created_id` INT(11) DEFAULT NULL,
    `idasb` INT(11) DEFAULT NULL,
    `idpptk` INT(11) DEFAULT NULL,
    `idrkpdrenjaaktivitas` TEXT DEFAULT NULL,
    `idsatuan1` INT(11) DEFAULT NULL,
    `idsatuan2` INT(11) DEFAULT NULL,
    `idsatuan_publik` INT(11) DEFAULT NULL,
    `idsubunit` INT(11) DEFAULT NULL,
    `idsumberdana1` INT(11) DEFAULT NULL,
    `idsumberdana2` INT(11) DEFAULT NULL,
    `jn_asb` INT(11) DEFAULT NULL,
    `kdurut` INT(11) DEFAULT NULL,
    `kode_kegiatan` TEXT DEFAULT NULL,
    `kode_program` VARCHAR(512) DEFAULT NULL,
    `kode_subkegiatan` TEXT DEFAULT NULL,
    `nmkegiatan` TEXT DEFAULT NULL,
    `nmprogram` TEXT DEFAULT NULL,
    `nmsubkegiatan` TEXT DEFAULT NULL,
    `nmsubunit` TEXT DEFAULT NULL,
    `pagu` DOUBLE(20,2) DEFAULT NULL,
    `pagu_renja` DOUBLE(20,2) DEFAULT NULL,
    `satuan_display` TEXT DEFAULT NULL,
    `singkat_sat1` TEXT DEFAULT NULL,
    `singkat_sat2` TEXT DEFAULT NULL,
    `status_dokumen` TEXT DEFAULT NULL,
    `status_pelaksanaan` TEXT DEFAULT NULL,
    `updated_at` TEXT DEFAULT NULL,
    `uraian` TEXT DEFAULT NULL,
    `uraian_sat1` TEXT DEFAULT NULL,
    `uraian_sat2` TEXT DEFAULT NULL,
    `volume1` TEXT DEFAULT NULL,
    `volume2` TEXT DEFAULT NULL,
    `volume_renja1` TEXT DEFAULT NULL,
    `volume_renja2` TEXT DEFAULT NULL,
    `tahun_anggaran` YEAR(4) NOT NULL,
    `active` TINYINT(4) NOT NULL DEFAULT '1',
    PRIMARY KEY (id),
    KEY `tahun_anggaran` (`tahun_anggaran`),
    KEY `id_sub_skpd` (`id_sub_skpd`),
    KEY `active` (`active`)
);

CREATE TABLE `data_rincian_fmis` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `id_mapping` TEXT DEFAULT NULL,
    `id_sub_skpd` INT(11) DEFAULT NULL,
    `nama_sub_giat` TEXT DEFAULT NULL,
    `nama_giat` TEXT DEFAULT NULL,
    `nama_program` TEXT DEFAULT NULL,
    `idaktivitas` INT(11) DEFAULT NULL,
    `aktivitas` TEXT DEFAULT NULL,
    `dt_rowid` TEXT DEFAULT NULL,
    `dt_rowindex` INT(11) DEFAULT NULL,
    `created_at` DATETIME DEFAULT NULL,
    `created_id` INT(11) DEFAULT NULL,
    `harga` DOUBLE(20,2) DEFAULT NULL,
    `idrkpdrenjabelanja` INT(11) DEFAULT NULL,
    `idsatuan1` INT(11) DEFAULT NULL,
    `idsatuan2` INT(11) DEFAULT NULL,
    `idsatuan3` INT(11) DEFAULT NULL,
    `idssh_4` INT(11) DEFAULT NULL,
    `idsumberdana` INT(11) DEFAULT NULL,
    `jml_volume` TEXT DEFAULT NULL,
    `jml_volume_renja` TEXT DEFAULT NULL,
    `jumlah` DOUBLE(20,2) DEFAULT NULL,
    `jumlah_renja` TEXT DEFAULT NULL,
    `kdrek1` TINYINT(4) DEFAULT NULL,
    `kdrek2` TINYINT(4) DEFAULT NULL,
    `kdrek3` TINYINT(4) DEFAULT NULL,
    `kdrek4` TINYINT(4) DEFAULT NULL,
    `kdrek5` TINYINT(4) DEFAULT NULL,
    `kdrek6` TINYINT(4) DEFAULT NULL,
    `kdurut` TINYINT(4) DEFAULT NULL,
    `kode_rekening` TEXT DEFAULT NULL,
    `nmrek6` TEXT DEFAULT NULL,
    `rekening_display` TEXT DEFAULT NULL,
    `satuan123` TEXT DEFAULT NULL,
    `singkat_sat1` TEXT DEFAULT NULL,
    `singkat_sat2` TEXT DEFAULT NULL,
    `singkat_sat3` TEXT DEFAULT NULL,
    `status_data` TEXT DEFAULT NULL,
    `status_dokumen` TEXT DEFAULT NULL,
    `status_pelaksanaan` TEXT DEFAULT NULL,
    `tahun` TEXT DEFAULT NULL,
    `uraian_belanja` TEXT DEFAULT NULL,
    `uraian_ssh` TEXT DEFAULT NULL,
    `uraian_sumberdana` TEXT DEFAULT NULL,
    `volume_1` TEXT DEFAULT NULL,
    `volume_2` TEXT DEFAULT NULL,
    `volume_3` TEXT DEFAULT NULL,
    `volume_renja1` TEXT DEFAULT NULL,
    `volume_renja2` TEXT DEFAULT NULL,
    `volume_renja3` TEXT DEFAULT NULL,
    `tahun_anggaran` YEAR(4) NOT NULL,
    `active` TINYINT(4) NOT NULL DEFAULT '1',
    PRIMARY KEY (id),
    KEY `tahun_anggaran` (`tahun_anggaran`),
    KEY `idaktivitas` (`idaktivitas`),
    KEY `id_sub_skpd` (`id_sub_skpd`),
    KEY `active` (`active`)
);

CREATE TABLE `data_ssh_usulan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_standar_harga` INT(11) DEFAULT NULL,
  `kode_standar_harga` VARCHAR(30) DEFAULT NULL,
  `nama_standar_harga` VARCHAR(600),
  `satuan` TEXT,
  `spek` VARCHAR(600),
  `ket_teks` TEXT,
  `created_at` VARCHAR(25) DEFAULT NULL,
  `created_user` INT(11) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `is_deleted` TINYINT(4) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `kelompok` TINYINT(4) DEFAULT NULL,
  `harga` DOUBLE(20,2) DEFAULT NULL,
  `harga_2` DOUBLE(20,2) DEFAULT NULL,
  `harga_3` DOUBLE(20,2) DEFAULT NULL,
  `kode_kel_standar_harga` VARCHAR(30) DEFAULT NULL,
  `nama_kel_standar_harga` TEXT,
  `update_at` DATETIME DEFAULT NULL,
  `update_at_admin` DATETIME DEFAULT NULL,
  `update_at_tapdkeu` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2022',
  `status` VARCHAR(20) DEFAULT NULL COMMENT 'draft, waiting, approved, rejected',
  `status_by_admin` VARCHAR(20) DEFAULT NULL COMMENT 'approved, rejected',
  `status_by_tapdkeu` VARCHAR(20) DEFAULT NULL COMMENT 'approved, rejected',
  `keterangan_status` TEXT,
  `keterangan_status_admin` TEXT,
  `keterangan_status_tapdkeu` TEXT,
  `status_upload_sipd` VARCHAR(20) DEFAULT NULL COMMENT 'null atau 0 = belum diupload ke sipd, 1 = sudah diupload sipd',
  `keterangan_lampiran` TEXT,
  `kode_standar_harga_sipd` VARCHAR(30) DEFAULT NULL,
  `status_jenis_usulan` VARCHAR(30) DEFAULT NULL,
  `jenis_produk` TINYINT(4) DEFAULT NULL,
  `tkdn` INT(11) DEFAULT NULL,
  `lampiran_1` VARCHAR(255) DEFAULT NULL,
  `lampiran_2` VARCHAR(255) DEFAULT NULL,
  `lampiran_3` VARCHAR(255) DEFAULT NULL,
  `verified_by_admin` INT(11) DEFAULT NULL,
  `verified_by_tapdkeu` INT(11) DEFAULT NULL,
  `no_surat_usulan` TEXT DEFAULT NULL,
  `no_nota_dinas` TEXT DEFAULT NULL,
  `id_sub_skpd` INT(11) DEFAULT NULL,
  `url_lampiran_foto_1` TEXT DEFAULT NULL,
  `url_lampiran_foto_2` TEXT DEFAULT NULL,
  `url_lampiran_foto_3` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `status` (`status`),
  KEY `status_by_admin` (`status_by_admin`),
  KEY `update_at_tapdkeu` (`update_at_tapdkeu`),
  KEY `id_sub_skpd` (`id_sub_skpd`),
  KEY `nama_standar_harga` (`nama_standar_harga`),
  KEY `spek` (`spek`),
  KEY `id_standar_harga` (`id_standar_harga`)
);

CREATE TABLE `data_ssh_rek_belanja_usulan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_akun` INT(11) DEFAULT NULL,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT,
  `id_standar_harga` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2022',
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_akun` (`id_akun`),
  KEY `id_standar_harga` (`id_standar_harga`)
);

CREATE TABLE `data_satuan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_satuan` INT(11) DEFAULT NULL,
  `nama_satuan` VARCHAR(32) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_kelompok_satuan_harga` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_kategori` INT(11) DEFAULT NULL,
  `kode_kategori` VARCHAR(64) DEFAULT NULL,
  `uraian_kategori` TEXT,
  `tipe_kelompok` VARCHAR(20) DEFAULT NULL,
  `active` TINYINT(2) NOT NULL DEFAULT '1',
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_spd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `no_spd` TEXT NOT NULL,
  `uraian` VARCHAR(64) DEFAULT NULL,
  `id_skpd_sipd` INT(11) DEFAULT NULL,
  `kode_skpd_simda` VARCHAR(50) DEFAULT NULL,
  `id_skpd_fmis` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT NULL,
  `active` TINYINT(2) NOT NULL DEFAULT '1',
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_skpd_sipd` (`id_skpd_sipd`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_spd_rinci` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `kdurut` INT(11) DEFAULT NULL,
  `no_spd` VARCHAR(512) NOT NULL,
  `idrefaktivitas` INT(11) DEFAULT NULL,
  `idsubunit` INT(11) DEFAULT NULL,
  `kdrek1` INT(5) DEFAULT NULL,
  `kdrek2` INT(5) DEFAULT NULL,
  `kdrek3` INT(5) DEFAULT NULL,
  `kdrek4` INT(5) DEFAULT NULL,
  `kdrek5` INT(5) DEFAULT NULL,
  `kdrek6` INT(5) DEFAULT NULL,
  `nilai` DOUBLE (20, 0) DEFAULT NULL,
  `rekening` TEXT DEFAULT NULL,
  `aktivitas_uraian` TEXT DEFAULT NULL,
  `subkegiatan` TEXT DEFAULT NULL,
  `kode_akun` VARCHAR(512) DEFAULT NULL,
  `nama_sub_giat` TEXT DEFAULT NULL,
  `nama_giat` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `kd_urusan` INT(5) DEFAULT NULL,
  `kd_unit` INT(5) DEFAULT NULL,
  `kd_bidang` INT(5) DEFAULT NULL,
  `kd_prog` INT(5) DEFAULT NULL,
  `kd_keg` INT(5) DEFAULT NULL,
  `id_prog` INT(5) DEFAULT NULL,
  `active` TINYINT(2) NOT NULL DEFAULT '1',
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `no_spd` (`no_spd`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_jadwal_lokal` (
  `id_jadwal_lokal` INT(11) NOT NULL AUTO_INCREMENT,
  `nama` VARCHAR(64) DEFAULT NULL,
  `waktu_awal` DATETIME DEFAULT NULL,
  `waktu_akhir` DATETIME DEFAULT NULL,
  `status` INT(11) NOT NULL DEFAULT '0',
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2022',
  `tahun_akhir_anggaran` YEAR(4) DEFAULT NULL,
  `lama_pelaksanaan` INT(2) NOT NULL DEFAULT '1',
  `id_tipe` INT(11) NOT NULL,
  `relasi_perencanaan` INT(11) DEFAULT NULL,
  `jenis_jadwal` VARCHAR(25) NOT NULL DEFAULT 'usulan',
  `id_jadwal_pergeseran` INT(11) DEFAULT NULL,
  `status_jadwal_pergeseran` VARCHAR(64) DEFAULT NULL,
  `data_monev_renstra` INT(11) DEFAULT '2' COMMENT '1 = SIPD, 2 = LOKAL',
  `id_jadwal_sakip` INT(11) DEFAULT NULL COMMENT 'jadwal untuk integrasi data modul input perencanaan rpjmd/rpd',
  PRIMARY KEY  (id_jadwal_lokal),
  KEY `waktu_akhir` (`waktu_akhir`),
  KEY `status` (`status`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_tipe` (`id_tipe`)
);

CREATE TABLE `data_rka_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(10) CHARACTER SET latin1 DEFAULT NULL,
  `createdtime` VARCHAR(10) CHARACTER SET latin1 DEFAULT NULL,
  `harga_satuan` DOUBLE(20,2) DEFAULT NULL,
  `harga_satuan_murni` DOUBLE(20,2) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_rinci_sub_bl` INT(11) DEFAULT NULL,
  `id_standar_nfs` TINYINT(4) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `jenis_bl` VARCHAR(50) CHARACTER SET latin1 DEFAULT NULL,
  `ket_bl_teks` TEXT CHARACTER SET latin1,
  `kode_akun` VARCHAR(50) CHARACTER SET latin1 DEFAULT NULL,
  `koefisien` TEXT CHARACTER SET latin1,
  `koefisien_murni` TEXT CHARACTER SET latin1,
  `lokus_akun_teks` TEXT CHARACTER SET latin1,
  `nama_akun` TEXT CHARACTER SET latin1,
  `nama_komponen` TEXT CHARACTER SET latin1,
  `spek_komponen` TEXT CHARACTER SET latin1,
  `satuan` VARCHAR(150) CHARACTER SET latin1 DEFAULT NULL,
  `spek` TEXT CHARACTER SET latin1 DEFAULT NULL,
  `sat1` TEXT CHARACTER SET latin1,
  `sat2` TEXT CHARACTER SET latin1,
  `sat3` TEXT CHARACTER SET latin1,
  `sat4` TEXT CHARACTER SET latin1,
  `volum1` TEXT CHARACTER SET latin1,
  `volum2` TEXT CHARACTER SET latin1,
  `volum3` TEXT CHARACTER SET latin1,
  `volum4` TEXT CHARACTER SET latin1,
  `volume` TEXT CHARACTER SET latin1,
  `volume_murni` TEXT CHARACTER SET latin1,
  `subs_bl_teks` TEXT CHARACTER SET latin1,
  `subtitle_teks` TEXT CHARACTER SET latin1,
  `kode_dana` VARCHAR(30) CHARACTER SET latin1 DEFAULT NULL,
  `is_paket` TINYINT(4) DEFAULT NULL,
  `nama_dana` TEXT CHARACTER SET latin1,
  `id_dana` INT(11) DEFAULT NULL,
  `substeks` TEXT CHARACTER SET latin1,
  `total_harga` DOUBLE(20,2) DEFAULT NULL,
  `rincian` DOUBLE(20,2) DEFAULT NULL,
  `rincian_murni` DOUBLE(20,2) DEFAULT NULL,
  `totalpajak` DOUBLE(20,2) DEFAULT NULL,
  `pajak` DOUBLE(20,2) DEFAULT NULL,
  `pajak_murni` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(20) CHARACTER SET latin1 DEFAULT NULL,
  `updatedtime` VARCHAR(20) CHARACTER SET latin1 DEFAULT NULL,
  `user1` TEXT CHARACTER SET latin1,
  `user2` TEXT CHARACTER SET latin1,
  `active` TINYINT(4) DEFAULT '1',
  `ssh_locked` TINYINT(4) DEFAULT NULL,
  `akun_locked` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  `idbl` INT(11) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `kode_bl` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `kode_sbl` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `id_prop_penerima` INT(11) DEFAULT NULL,
  `id_camat_penerima` INT(11) DEFAULT NULL,
  `id_kokab_penerima` INT(11) DEFAULT NULL,
  `id_lurah_penerima` INT(11) DEFAULT NULL,
  `id_penerima` INT(11) DEFAULT NULL,
  `idkomponen` DOUBLE(20,2) DEFAULT NULL,
  `idketerangan` INT(11) DEFAULT NULL,
  `idsubtitle` INT(11) DEFAULT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `active` (`active`),
  KEY `kode_sbl` (`kode_sbl`)
);

CREATE TABLE `data_sub_keg_bl_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_sub_skpd` INT(11) NOT NULL,
  `id_lokasi` INT(11) DEFAULT NULL,
  `id_label_kokab` INT(11) NOT NULL,
  `nama_dana` TEXT CHARACTER SET latin1,
  `no_sub_giat` VARCHAR(20) CHARACTER SET latin1 NOT NULL,
  `kode_giat` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `id_program` INT(11) NOT NULL,
  `nama_lokasi` TEXT CHARACTER SET latin1,
  `waktu_akhir` INT(11) NOT NULL,
  `pagu_n_lalu` DOUBLE(20,2) DEFAULT NULL,
  `id_urusan` INT(11) NOT NULL,
  `id_unik_sub_bl` TEXT CHARACTER SET latin1 NOT NULL,
  `id_sub_giat` INT(11) NOT NULL,
  `label_prov` TEXT CHARACTER SET latin1,
  `kode_program` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `kode_sub_giat` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `no_program` VARCHAR(20) CHARACTER SET latin1 NOT NULL,
  `kode_urusan` VARCHAR(20) CHARACTER SET latin1 NOT NULL,
  `kode_bidang_urusan` VARCHAR(20) CHARACTER SET latin1 NOT NULL,
  `nama_program` TEXT CHARACTER SET latin1 NOT NULL,
  `target_4` TEXT CHARACTER SET latin1,
  `target_5` TEXT CHARACTER SET latin1,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `nama_bidang_urusan` TEXT CHARACTER SET latin1,
  `target_3` TEXT CHARACTER SET latin1,
  `no_giat` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `id_label_prov` INT(11) NOT NULL,
  `waktu_awal` INT(11) NOT NULL,
  `pagumurni` DOUBLE(20,2) DEFAULT NULL,
  `pagu` DOUBLE(20,2) NOT NULL,
  `pagu_simda` DOUBLE(20,2) DEFAULT NULL,
  `output_sub_giat` TEXT CHARACTER SET latin1,
  `sasaran` TEXT CHARACTER SET latin1,
  `indikator` VARCHAR(512) CHARACTER SET latin1,
  `id_dana` INT(11) DEFAULT NULL,
  `nama_sub_giat` TEXT CHARACTER SET latin1 NOT NULL,
  `pagu_n_depan` DOUBLE(20,2) NOT NULL,
  `satuan` TEXT CHARACTER SET latin1,
  `id_rpjmd` INT(11) NOT NULL,
  `id_giat` INT(11) NOT NULL,
  `id_label_pusat` INT(11) NOT NULL,
  `nama_giat` TEXT CHARACTER SET latin1 NOT NULL,
  `kode_skpd` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `nama_skpd` TEXT CHARACTER SET latin1 NOT NULL,
  `kode_sub_skpd` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `id_skpd` INT(11) NOT NULL,
  `id_sub_bl` INT(11) DEFAULT NULL,
  `nama_sub_skpd` TEXT CHARACTER SET latin1 NOT NULL,
  `target_1` TEXT CHARACTER SET latin1,
  `nama_urusan` TEXT CHARACTER SET latin1 NOT NULL,
  `target_2` TEXT CHARACTER SET latin1,
  `label_kokab` TEXT CHARACTER SET latin1,
  `label_pusat` TEXT CHARACTER SET latin1,
  `pagu_keg` DOUBLE(20,2) NOT NULL,
  `pagu_fmis` DOUBLE(20,2) DEFAULT NULL,
  `id_bl` INT(11) DEFAULT NULL,
  `kode_bl` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `kode_sbl` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`),
  KEY `id_sub_skpd` (`id_sub_skpd`)
);

CREATE TABLE `data_sub_keg_bl_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_sub_skpd` INT(11) NOT NULL,
  `id_lokasi` INT(11) DEFAULT NULL,
  `id_label_kokab` INT(11) NOT NULL,
  `nama_dana` TEXT CHARACTER SET latin1,
  `no_sub_giat` VARCHAR(20) CHARACTER SET latin1 NOT NULL,
  `kode_giat` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `id_program` INT(11) NOT NULL,
  `nama_lokasi` TEXT CHARACTER SET latin1,
  `waktu_akhir` INT(11) NOT NULL,
  `pagu_n_lalu` DOUBLE(20,2) DEFAULT NULL,
  `id_urusan` INT(11) NOT NULL,
  `id_unik_sub_bl` TEXT CHARACTER SET latin1 NOT NULL,
  `id_sub_giat` INT(11) NOT NULL,
  `label_prov` TEXT CHARACTER SET latin1,
  `kode_program` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `kode_sub_giat` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `no_program` VARCHAR(20) CHARACTER SET latin1 NOT NULL,
  `kode_urusan` VARCHAR(20) CHARACTER SET latin1 NOT NULL,
  `kode_bidang_urusan` VARCHAR(20) CHARACTER SET latin1 NOT NULL,
  `nama_program` TEXT CHARACTER SET latin1 NOT NULL,
  `target_4` TEXT CHARACTER SET latin1,
  `target_5` TEXT CHARACTER SET latin1,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `nama_bidang_urusan` TEXT CHARACTER SET latin1,
  `target_3` TEXT CHARACTER SET latin1,
  `no_giat` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `id_label_prov` INT(11) NOT NULL,
  `waktu_awal` INT(11) NOT NULL,
  `pagumurni` DOUBLE(20,2) DEFAULT NULL,
  `pagu` DOUBLE(20,2) NOT NULL,
  `pagu_simda` DOUBLE(20,2) DEFAULT NULL,
  `output_sub_giat` TEXT CHARACTER SET latin1,
  `sasaran` TEXT CHARACTER SET latin1,
  `indikator` VARCHAR(512) CHARACTER SET latin1,
  `id_dana` INT(11) DEFAULT NULL,
  `nama_sub_giat` TEXT CHARACTER SET latin1 NOT NULL,
  `pagu_n_depan` DOUBLE(20,2) NOT NULL,
  `satuan` TEXT CHARACTER SET latin1,
  `id_rpjmd` INT(11) NOT NULL,
  `id_giat` INT(11) NOT NULL,
  `id_label_pusat` INT(11) NOT NULL,
  `nama_giat` TEXT CHARACTER SET latin1 NOT NULL,
  `kode_skpd` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `nama_skpd` TEXT CHARACTER SET latin1 NOT NULL,
  `kode_sub_skpd` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `id_skpd` INT(11) NOT NULL,
  `id_sub_bl` INT(11) DEFAULT NULL,
  `nama_sub_skpd` TEXT CHARACTER SET latin1 NOT NULL,
  `target_1` TEXT CHARACTER SET latin1,
  `nama_urusan` TEXT CHARACTER SET latin1 NOT NULL,
  `target_2` TEXT CHARACTER SET latin1,
  `label_kokab` TEXT CHARACTER SET latin1,
  `label_pusat` TEXT CHARACTER SET latin1,
  `pagu_keg` DOUBLE(20,2) NOT NULL,
  `pagu_fmis` DOUBLE(20,2) DEFAULT NULL,
  `id_bl` INT(11) DEFAULT NULL,
  `kode_bl` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `kode_sbl` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `catatan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `pagu_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_n_depan_usulan` DOUBLE(20,2) DEFAULT NULL,
  `waktu_awal_usulan` INT(11) DEFAULT NULL,
  `waktu_akhir_usulan` INT(11) DEFAULT NULL,
  `sasaran_usulan` TEXT DEFAULT NULL,
  `kode_sbl_lama` VARCHAR(50) CHARACTER SET latin1 DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`),
  KEY `id_sub_skpd` (`id_sub_skpd`)
);

CREATE TABLE `data_sub_keg_indikator_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `outputteks` TEXT NOT NULL,
  `targetoutput` VARCHAR(50) NOT NULL,
  `satuanoutput` TEXT NOT NULL,
  `idoutputbl` INT(11) NOT NULL,
  `targetoutputteks` TEXT NOT NULL,
  `kode_sbl` VARCHAR(50) NOT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_sub_keg_indikator_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `outputteks` TEXT NOT NULL,
  `targetoutput` VARCHAR(50) NOT NULL,
  `satuanoutput` TEXT NOT NULL,
  `idoutputbl` INT(11) NOT NULL,
  `targetoutputteks` TEXT NOT NULL,
  `kode_sbl` VARCHAR(50) NOT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `outputteks_usulan` TEXT DEFAULT NULL,
  `targetoutput_usulan` VARCHAR(50) DEFAULT NULL,
  `satuanoutput_usulan` TEXT DEFAULT NULL,
  `targetoutputteks_usulan` TEXT DEFAULT NULL,
  `id_indikator_sub_giat` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_keg_indikator_hasil_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `hasilteks` TEXT,
  `satuanhasil` VARCHAR(50) DEFAULT NULL,
  `targethasil` VARCHAR(50) DEFAULT NULL,
  `targethasilteks` VARCHAR(50) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` VARCHAR(50) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_tag_sub_keg_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `idlabelgiat` INT(11) DEFAULT NULL,
  `namalabel` VARCHAR(50) DEFAULT NULL,
  `idtagbl` INT(11) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_capaian_prog_sub_keg_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `satuancapaian` VARCHAR(50) DEFAULT NULL,
  `targetcapaianteks` VARCHAR(50) DEFAULT NULL,
  `capaianteks` TEXT,
  `targetcapaian` INT(11) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_capaian_prog_sub_keg_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `satuancapaian` VARCHAR(50) DEFAULT NULL,
  `targetcapaianteks` VARCHAR(50) DEFAULT NULL,
  `capaianteks` TEXT,
  `targetcapaian` INT(11) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `satuancapaian_usulan` VARCHAR(50) DEFAULT NULL,
  `targetcapaianteks_usulan` VARCHAR(50) DEFAULT NULL,
  `capaianteks_usulan` TEXT DEFAULT NULL,
  `targetcapaian_usulan` INT(11) DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_output_giat_sub_keg_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `outputteks` TEXT,
  `satuanoutput` VARCHAR(50) DEFAULT NULL,
  `targetoutput` VARCHAR(50) DEFAULT NULL,
  `targetoutputteks` VARCHAR(50) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_output_giat_sub_keg_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `outputteks` TEXT,
  `satuanoutput` VARCHAR(50) DEFAULT NULL,
  `targetoutput` VARCHAR(50) DEFAULT NULL,
  `targetoutputteks` VARCHAR(50) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `bobot_kinerja` VARCHAR(50) DEFAULT 1,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `outputteks_usulan` TEXT DEFAULT NULL,
  `satuanoutput_usulan` VARCHAR(50) DEFAULT NULL,
  `targetoutput_usulan` VARCHAR(50) DEFAULT NULL,
  `targetoutputteks_usulan` VARCHAR(50) DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_dana_sub_keg_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `namadana` TEXT,
  `kodedana` VARCHAR(50) DEFAULT NULL,
  `iddana` INT(11) DEFAULT NULL,
  `iddanasubbl` INT(11) DEFAULT NULL,
  `pagudana` DOUBLE(20,2) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `is_locked` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_lokasi_sub_keg_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `camatteks` TEXT,
  `daerahteks` TEXT,
  `idcamat` INT(11) DEFAULT NULL,
  `iddetillokasi` DOUBLE DEFAULT NULL,
  `idkabkota` INT(11) DEFAULT NULL,
  `idlurah` INT(11) DEFAULT NULL,
  `lurahteks` TEXT,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_lokasi_sub_keg_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `camatteks` TEXT,
  `daerahteks` TEXT,
  `idcamat` INT(11) DEFAULT NULL,
  `iddetillokasi` DOUBLE DEFAULT NULL,
  `idkabkota` INT(11) DEFAULT NULL,
  `idlurah` INT(11) DEFAULT NULL,
  `lurahteks` TEXT,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `camatteks_usulan` TEXT DEFAULT NULL,
  `daerahteks_usulan` TEXT DEFAULT NULL,
  `idcamat_usulan` INT(11) DEFAULT NULL,
  `iddetillokasi_usulan` DOUBLE DEFAULT NULL,
  `idkabkota_usulan` INT(11) DEFAULT NULL,
  `idlurah_usulan` INT(11) DEFAULT NULL,
  `lurahteks_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`)
);

CREATE TABLE `data_mapping_sumberdana_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_rinci_sub_bl` INT(11) NOT NULL,
  `id_sumber_dana` INT(11) NOT NULL,
  `user` TEXT,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `active` (`active`)
);

CREATE TABLE `data_tipe_perencanaan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `nama_tipe` VARCHAR(64) NOT NULL,
  `keterangan_tipe` TEXT NOT NULL,
  `lama_pelaksanaan` INT(11) NOT NULL,
  PRIMARY KEY (id)
);

CREATE TABLE `data_rpjmd_visi_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_visi` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(2) DEFAULT 0,
  `status` TEXT DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_misi_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(2) DEFAULT 0,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(2) DEFAULT NULL,
  `visi_lock` TINYINT(2) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_visi` (`id_visi`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_tujuan_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_tujuan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_misi` (`id_misi`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_sasaran_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_sasaran` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_sasaran` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_tujuan` (`kode_tujuan`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_program_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` VARCHAR(20) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_sasaran` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_program_lama` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_unit` (`id_unit`),
  KEY `kode_tujuan` (`kode_tujuan`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_tujuan_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `indikator_teks_usulan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_sasaran_rpjm` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `catatan_tujuan` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `kode_bidang_urusan_multiple` TEXT DEFAULT NULL,
  `kode_sasaran_multiple` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unit` (`id_unit`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_sasaran_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `indikator_teks_usulan` TEXT DEFAULT NULL,
  `is_locked` INT(11) DEFAULT NULL,
  `is_locked_indikator` INT(11) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,  
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unit` (`id_unit`),
  KEY `kode_tujuan` (`kode_tujuan`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_program_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_usulan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `pagu_1_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5_usulan` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `tujuan_lock` INT(11) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `id_sub_unit_usulan` INT(11) DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_program_lama` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_unit` (`id_unit`),
  KEY `kode_sasaran` (`kode_sasaran`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_kegiatan_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` TINYINT(4) DEFAULT NULL,
  `giat_lock` TINYINT(4) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_usulan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_giat` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `kode_unik_program` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_giat` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `pagu_1_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5_usulan` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `renstra_prog_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_giat_lama` INT(11) DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  `id_sub_unit_usulan` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_unit` (`id_unit`),
  KEY `id_program` (`id_program`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_visi_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_visi` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(2) DEFAULT 0,
  `status` TEXT DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_misi_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(2) DEFAULT 0,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(2) DEFAULT NULL,
  `visi_lock` TINYINT(2) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_visi` (`id_visi`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_tujuan_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_tujuan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_misi` (`id_misi`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_sasaran_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_sasaran` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_sasaran` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_program_lama` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_tujuan` (`kode_tujuan`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_program_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` VARCHAR(20) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_sasaran` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_program_lama` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `kode_sasaran` (`kode_sasaran`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_tujuan_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `indikator_teks_usulan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_sasaran_rpjm` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `catatan_tujuan` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `kode_bidang_urusan_multiple` TEXT DEFAULT NULL,
  `kode_sasaran_multiple` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_unit` (`id_unit`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_sasaran_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `indikator_teks_usulan` TEXT DEFAULT NULL,
  `is_locked` INT(11) DEFAULT NULL,
  `is_locked_indikator` INT(11) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_tujuan` (`kode_tujuan`),
  KEY `id_unit` (`id_unit`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_program_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_usulan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `pagu_1_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5_usulan` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `tujuan_lock` INT(11) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `id_sub_unit_usulan` INT(11) DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_program_lama` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `kode_sasaran` (`kode_sasaran`),
  KEY `id_unit` (`id_unit`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_kegiatan_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` TINYINT(4) DEFAULT NULL,
  `giat_lock` TINYINT(4) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_usulan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_giat` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `kode_unik_program` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_giat` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `pagu_1_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5_usulan` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `renstra_prog_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_giat_lama` INT(11) DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  `id_sub_unit_usulan` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `kode_program` (`kode_program`),
  KEY `id_unit` (`id_unit`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_visi_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_visi` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(2) DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_misi_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(2) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(2) DEFAULT NULL,
  `visi_lock` TINYINT(2) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_visi` (`id_visi`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_tujuan_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_tujuan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_misi` (`id_misi`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_sasaran_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_sasaran` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_sasaran` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `kode_tujuan` (`kode_tujuan`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_program_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` VARCHAR(20) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` INT(11) DEFAULT NULL,
  `urut_sasaran` INT(11) DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `kode_sasaran` (`kode_sasaran`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_tujuan_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_sasaran_rpjm` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_tujuan` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `keterangan_1` TEXT DEFAULT NULL,
  `keterangan_2` TEXT DEFAULT NULL,
  `keterangan_3` TEXT DEFAULT NULL,
  `keterangan_4` TEXT DEFAULT NULL,
  `keterangan_5` TEXT DEFAULT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `kode_bidang_urusan_multiple` TEXT DEFAULT NULL,
  `kode_sasaran_multiple` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_unit` (`id_unit`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_sasaran_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_unik` INT(11) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` VARCHAR(512) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` INT(11) DEFAULT NULL,
  `is_locked_indikator` INT(11) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `keterangan_1` TEXT DEFAULT NULL,
  `keterangan_2` TEXT DEFAULT NULL,
  `keterangan_3` TEXT DEFAULT NULL,
  `keterangan_4` TEXT DEFAULT NULL,
  `keterangan_5` TEXT DEFAULT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_unit` (`id_unit`),
  KEY `kode_tujuan` (`kode_tujuan`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_program_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` INT(11) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` INT(11) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `keterangan_1` TEXT DEFAULT NULL,
  `keterangan_2` TEXT DEFAULT NULL,
  `keterangan_3` TEXT DEFAULT NULL,
  `keterangan_4` TEXT DEFAULT NULL,
  `keterangan_5` TEXT DEFAULT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_unit` (`id_unit`),
  KEY `kode_sasaran` (`kode_sasaran`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_kegiatan_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` TINYINT(4) DEFAULT NULL,
  `giat_lock` TINYINT(4) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_giat` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `kode_unik_program` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_giat` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `renstra_prog_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `keterangan_1` TEXT DEFAULT NULL,
  `keterangan_2` TEXT DEFAULT NULL,
  `keterangan_3` TEXT DEFAULT NULL,
  `keterangan_4` TEXT DEFAULT NULL,
  `keterangan_5` TEXT DEFAULT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_unit` (`id_unit`),
  KEY `kode_program` (`kode_program`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_tujuan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_tujuan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(4) DEFAULT NULL,
  `urut_saspok` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id_jadwal` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_sasaran` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_sasaran` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TEXT DEFAULT NULL,
  `urut_sasaran` TEXT DEFAULT NULL,
  `urut_saspok` TEXT DEFAULT NULL,
  `urut_tujuan` TEXT DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id_jadwal` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_tujuan` (`kode_tujuan`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_program` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_bidur_mth` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_program_mth` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` VARCHAR(20) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TEXT DEFAULT NULL,
  `misi_teks` TINYINT(4) DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(4) DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_saspok` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id_jadwal` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sasaran` (`kode_sasaran`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_tujuan_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_tujuan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(4) DEFAULT NULL,
  `urut_saspok` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `id_isu` INT(11) DEFAULT NULL,
  `no_urut` INT(11) NOT NULL,
  `catatan_teks_tujuan` TEXT NOT NULL,
  `indikator_catatan_teks` TEXT NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_sasaran_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_sasaran` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TEXT DEFAULT NULL,
  `urut_sasaran` TEXT DEFAULT NULL,
  `urut_saspok` TEXT DEFAULT NULL,
  `urut_tujuan` TEXT DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `sasaran_no_urut` INT(11) NOT NULL,
  `sasaran_catatan` TEXT NOT NULL,
  `indikator_catatan_teks` TEXT NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_tujuan` (`kode_tujuan`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_program_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_bidur_mth` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_program_mth` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` VARCHAR(20) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TEXT DEFAULT NULL,
  `misi_teks` TINYINT(4) DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(4) DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_saspok` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  `id_program_lama` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sasaran` (`kode_sasaran`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_tujuan_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_tujuan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(4) DEFAULT NULL,
  `urut_saspok` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_sasaran_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_sasaran` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TEXT DEFAULT NULL,
  `urut_sasaran` TEXT DEFAULT NULL,
  `urut_saspok` TEXT DEFAULT NULL,
  `urut_tujuan` TEXT DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `kode_tujuan` (`kode_tujuan`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_program_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_bidur_mth` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_program_mth` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` VARCHAR(20) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TEXT DEFAULT NULL,
  `misi_teks` TINYINT(4) DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(4) DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_saspok` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id)
);

CREATE TABLE `data_rpd_tujuan_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_tujuan` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(4) DEFAULT NULL,
  `urut_saspok` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `id_isu` INT(11) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `no_urut` INT(11) NOT NULL,
  `catatan_teks_tujuan` TEXT NOT NULL,
  `indikator_catatan_teks` TEXT NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `id_tujuan` (`id_tujuan`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_sasaran_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_sasaran` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TINYINT(4) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TEXT DEFAULT NULL,
  `urut_sasaran` TEXT DEFAULT NULL,
  `urut_saspok` TEXT DEFAULT NULL,
  `urut_tujuan` TEXT DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `sasaran_no_urut` INT(11) NOT NULL,
  `sasaran_catatan` TEXT NOT NULL,
  `indikator_catatan_teks` TEXT NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `id_program_lama` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `id_sasaran` (`id_sasaran`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpd_program_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `head_teks` TEXT DEFAULT NULL,
  `id_bidur_mth` INT(11) DEFAULT NULL,
  `id_misi_old` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_program_mth` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` VARCHAR(20) DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `misi_lock` TEXT DEFAULT NULL,
  `misi_teks` TINYINT(4) DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_misi` TINYINT(4) DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_saspok` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `id_program_lama` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `id_program` (`id_program`),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjpd_visi` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `visi_teks` VARCHAR(700) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `visi_teks` (`visi_teks`)
);

CREATE TABLE `data_rpjpd_misi` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_visi` INT(11) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `urut_misi` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_visi` (`id_visi`),
  KEY `misi_teks` (`misi_teks`)
);

CREATE TABLE `data_rpjpd_sasaran` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `urut_saspok` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_misi` (`id_misi`),
  KEY `saspok_teks` (`saspok_teks`)
);

CREATE TABLE `data_rpjpd_kebijakan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_saspok` INT(11) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `urut_kebijakan` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_saspok` (`id_saspok`),
  KEY `kebijakan_teks` (`kebijakan_teks`)
);

CREATE TABLE `data_rpjpd_isu` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_kebijakan` INT(11) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `urut_isu` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_kebijakan` (`id_kebijakan`),
  KEY `isu_teks` (`isu_teks`)
);

CREATE TABLE `data_rpjpd_visi_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `visi_teks` VARCHAR(512) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `visi_teks` (`visi_teks`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_rpjpd_misi_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_visi` INT(11) DEFAULT NULL,
  `misi_teks` VARCHAR(512) DEFAULT NULL,
  `urut_misi` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_visi` (`id_visi`),
  KEY `misi_teks` (`misi_teks`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_rpjpd_sasaran_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_misi` INT(11) DEFAULT NULL,
  `saspok_teks` VARCHAR(512) DEFAULT NULL,
  `urut_saspok` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_misi` (`id_misi`),
  KEY `saspok_teks` (`saspok_teks`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_rpjpd_kebijakan_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_saspok` INT(11) DEFAULT NULL,
  `kebijakan_teks` VARCHAR(512) DEFAULT NULL,
  `urut_kebijakan` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_saspok` (`id_saspok`),
  KEY `kebijakan_teks` (`kebijakan_teks`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_rpjpd_isu_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_kebijakan` INT(11) DEFAULT NULL,
  `isu_teks` VARCHAR(512) DEFAULT NULL,
  `urut_isu` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_kebijakan` (`id_kebijakan`),
  KEY `isu_teks` (`isu_teks`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_pendapatan_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(50) DEFAULT NULL,
  `createdtime` VARCHAR(50) DEFAULT NULL,
  `id_pendapatan` INT(11) DEFAULT NULL,
  `keterangan` TEXT,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT,
  `nilaimurni` DOUBLE DEFAULT NULL,
  `program_koordinator` INT(11) DEFAULT NULL,
  `rekening` TEXT,
  `skpd_koordinator` INT(11) DEFAULT NULL,
  `total` DOUBLE DEFAULT NULL,
  `pagu_fmis` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(50) DEFAULT NULL,
  `updatedtime` VARCHAR(50) DEFAULT NULL,
  `uraian` TEXT,
  `urusan_koordinator` INT(11) DEFAULT NULL,
  `user1` TEXT DEFAULT NULL,
  `user2` TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_pendapatan` (`id_pendapatan`),
  KEY `kode_akun` (`kode_akun`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_pembiayaan_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(50) DEFAULT NULL,
  `createdtime` VARCHAR(50) DEFAULT NULL,
  `id_pembiayaan` INT(11) DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT,
  `nilaimurni` DOUBLE DEFAULT NULL,
  `program_koordinator` INT(11) DEFAULT NULL,
  `rekening` TEXT,
  `skpd_koordinator` INT(11) DEFAULT NULL,
  `total` DOUBLE DEFAULT NULL,
  `pagu_fmis` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(50) DEFAULT NULL,
  `updatedtime` VARCHAR(50) DEFAULT NULL,
  `uraian` TEXT,
  `urusan_koordinator` INT(11) DEFAULT NULL,
  `type` VARCHAR(50) DEFAULT NULL,
  `user1`TEXT DEFAULT NULL,
  `user2`TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_pembiayaan` (`id_pembiayaan`),
  KEY `kode_akun` (`kode_akun`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);
CREATE TABLE `data_realisasi_akun_sipd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_unit` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_sub_skpd` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_sub_giat` INT(11) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `lokus_akun_teks` TEXT DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `kode_akun` VARCHAR(512) DEFAULT NULL,
  `nama_akun` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `nilai` DOUBLE(20,2) DEFAULT NULL,
  `action` INT(11) DEFAULT NULL,
  `realisasi` DOUBLE(20,2) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) NOT NULL,
  `tahun` YEAR(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `type` VARCHAR(50) NOT NULL,
  `updated_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_akun` (`id_akun`),
  KEY `kode_akun` (`kode_akun`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_sub_skpd` (`id_sub_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_sirup_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `idSirup` INT(11) NOT NULL,
  `idBulan` INT(11) NOT NULL,
  `idJenisPengadaan` INT(11) NOT NULL,
  `idKldi` tinytext NOT NULL,
  `idMetode` INT(11) NOT NULL,
  `id_referensi` INT(11) NOT NULL,
  `idlokasi` INT(11) NOT NULL,
  `isPDN` tinytext NOT NULL,
  `isUMK` tinytext NOT NULL,
  `jenisPengadaan` VARCHAR(250) NOT NULL,
  `kldi` VARCHAR(250) NOT NULL,
  `lokasi` VARCHAR(250) NOT NULL,
  `metode` VARCHAR(250) NOT NULL,
  `pagu` DOUBLE(20,2) NOT NULL,
  `paket` TEXT NOT NULL,
  `pemilihan` VARCHAR(250) NOT NULL,
  `satuanKerja` VARCHAR(250) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `idSirup` (`idSirup`),
  KEY `satuanKerja` (`satuanKerja`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_skpd_sirup` (
  `id` INT(11) NOT NULL,
  `id_satuan_kerja` INT(11) NOT NULL,
  `satuan_kerja` VARCHAR(250) NOT NULL,
  `paket_penyedia` INT(11) NOT NULL,
  `pagu_penyedia` INT(11) NOT NULL,
  `paket_swakelola` INT(11) NOT NULL,
  `pagu_swakelola` INT(11) NOT NULL,
  `paket_pd_swakelola` INT(11) NOT NULL,
  `pagu_pd_swakelola` INT(11) NOT NULL,
  `total_paket` INT(11) NOT NULL,
  `total_pagu` INT(11) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_satuan_kerja` (`id_satuan_kerja`),
  KEY `satuan_kerja` (`satuan_kerja`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_master_indikator_subgiat` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_skpd` INT(11) NOT NULL,
  `id_sub_keg` INT(11) NOT NULL,
  `indikator` VARCHAR(512) NOT NULL,
  `satuan` TEXT NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `updated_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_sub_keg` (`id_sub_keg`),
  KEY `indikator` (`indikator`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_prioritas_pusat` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_prioritas` INT(11) DEFAULT NULL,
  `teks_prioritas` TEXT DEFAULT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `id_label_pusat` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `is_locked` INT(11) DEFAULT NULL, 
  `set_urut` INT(11) DEFAULT NULL, 
  `tahun_awal` YEAR(4) DEFAULT NULL,
  `tahun_akhir` YEAR(4) DEFAULT NULL,
  `nama_label` TEXT DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_prioritas` (`id_prioritas`),
  KEY `id_label_pusat` (`id_label_pusat`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_prioritas_prov` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_prioritas` INT(11) DEFAULT NULL,
  `teks_prioritas` TEXT DEFAULT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `id_label_prov` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `is_locked` INT(11) DEFAULT NULL,
  `nama_label` TEXT DEFAULT NULL,
  `status` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_prioritas` (`id_prioritas`),
  KEY `id_label_prov` (`id_label_prov`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_prioritas_kokab` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_prioritas` INT(11) DEFAULT NULL,
  `teks_prioritas` TEXT DEFAULT NULL,
  `id_label_kokab` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `is_locked` INT(11) DEFAULT NULL,
  `nama_label` TEXT DEFAULT NULL,
  `status` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_prioritas` (`id_prioritas`),
  KEY `id_label_kokab` (`id_label_kokab`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_label_giat` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,  
  `id_label_giat` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `is_locked` INT(11) DEFAULT NULL,
  `nama_label` TEXT DEFAULT NULL,
  `status` TEXT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  PRIMARY KEY (id),
  KEY `id_label_giat` (`id_label_giat`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_sub_kegiatan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_jadwal` INT(11) NOT NULL,
  `bidur_lock` TINYINT(4) DEFAULT NULL,
  `giat_lock` TINYINT(4) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_sub_giat` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `id_indikator` TEXT DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `id_indikator_usulan` TEXT DEFAULT NULL,
  `indikator_usulan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_sub_giat` TEXT DEFAULT NULL,
  `kode_giat` TEXT DEFAULT NULL,
  `kode_kegiatan` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `kode_unik_program` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_sub_giat` TEXT DEFAULT NULL,
  `nama_giat` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_sub_unit` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `realisasi_pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `renstra_prog_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `realisasi_target_1` TEXT DEFAULT NULL,
  `realisasi_target_2` TEXT DEFAULT NULL,
  `realisasi_target_3` TEXT DEFAULT NULL,
  `realisasi_target_4` TEXT DEFAULT NULL,
  `realisasi_target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_sub_giat_lama` TEXT DEFAULT NULL,
  `keterangan_1` TEXT DEFAULT NULL,
  `keterangan_2` TEXT DEFAULT NULL,
  `keterangan_3` TEXT DEFAULT NULL,
  `keterangan_4` TEXT DEFAULT NULL,
  `keterangan_5` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_sub_unit` (`id_sub_unit`),
  KEY `id_sub_giat` (`id_sub_giat`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_sub_kegiatan_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` TINYINT(4) DEFAULT NULL,
  `giat_lock` TINYINT(4) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_sub_giat` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `id_indikator` TEXT DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `id_indikator_usulan` TEXT DEFAULT NULL,
  `indikator_usulan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_sub_giat` TEXT DEFAULT NULL,
  `kode_giat` TEXT DEFAULT NULL,
  `kode_kegiatan` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `kode_unik_program` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_sub_giat` TEXT DEFAULT NULL,
  `nama_giat` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_sub_unit` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `pagu_1_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5_usulan` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `renstra_prog_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_sub_giat_lama` TEXT DEFAULT NULL,
  `keterangan_1` TEXT DEFAULT NULL,
  `keterangan_2` TEXT DEFAULT NULL,
  `keterangan_3` TEXT DEFAULT NULL,
  `keterangan_4` TEXT DEFAULT NULL,
  `keterangan_5` TEXT DEFAULT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_sub_unit` (`id_sub_unit`),
  KEY `id_sub_giat` (`id_sub_giat`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_sub_kegiatan_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` TINYINT(4) DEFAULT NULL,
  `giat_lock` TINYINT(4) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_sub_giat` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `id_indikator` TEXT DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `id_indikator_usulan` TEXT DEFAULT NULL,
  `indikator_usulan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_sub_giat` TEXT DEFAULT NULL,
  `kode_giat` TEXT DEFAULT NULL,
  `kode_kegiatan` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `kode_unik_program` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_sub_giat` TEXT DEFAULT NULL,
  `nama_giat` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_sub_unit` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `pagu_1_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5_usulan` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `renstra_prog_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_sub_giat_lama` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_sub_unit` (`id_sub_unit`),
  KEY `id_sub_giat` (`id_sub_giat`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_renstra_sub_kegiatan_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bidur_lock` TINYINT(4) DEFAULT NULL,
  `giat_lock` TINYINT(4) DEFAULT NULL,
  `id_bidang_urusan` INT(11) DEFAULT NULL,
  `id_sub_giat` INT(11) DEFAULT NULL,
  `id_giat` INT(11) DEFAULT NULL,
  `id_misi` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512) DEFAULT NULL,
  `id_unik_indikator` VARCHAR(512) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `id_sub_unit` INT(11) DEFAULT NULL,
  `id_visi` INT(11) DEFAULT NULL,
  `id_indikator` TEXT DEFAULT NULL,
  `indikator` VARCHAR(512) DEFAULT NULL,
  `id_indikator_usulan` TEXT DEFAULT NULL,
  `indikator_usulan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `is_locked_indikator` TINYINT(4) DEFAULT NULL,
  `kode_bidang_urusan` TEXT DEFAULT NULL,
  `kode_sub_giat` TEXT DEFAULT NULL,
  `kode_giat` TEXT DEFAULT NULL,
  `kode_kegiatan` TEXT DEFAULT NULL,
  `kode_program` VARCHAR(512) DEFAULT NULL,
  `kode_sasaran` VARCHAR(512) DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_tujuan` VARCHAR(512) DEFAULT NULL,
  `kode_unik_program` TEXT DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `nama_sub_giat` TEXT DEFAULT NULL,
  `nama_giat` TEXT DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_sub_unit` TEXT DEFAULT NULL,
  `pagu_1` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5` DOUBLE(20,2) DEFAULT NULL,
  `pagu_1_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_2_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_3_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_4_usulan` DOUBLE(20,2) DEFAULT NULL,
  `pagu_5_usulan` DOUBLE(20,2) DEFAULT NULL,
  `program_lock` TINYINT(4) DEFAULT NULL,
  `renstra_prog_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_lock` TINYINT(4) DEFAULT NULL,
  `sasaran_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `target_1` TEXT DEFAULT NULL,
  `target_2` TEXT DEFAULT NULL,
  `target_3` TEXT DEFAULT NULL,
  `target_4` TEXT DEFAULT NULL,
  `target_5` TEXT DEFAULT NULL,
  `target_akhir` TEXT DEFAULT NULL,
  `target_awal` TEXT DEFAULT NULL,
  `satuan_usulan` TEXT DEFAULT NULL,
  `target_1_usulan` TEXT DEFAULT NULL,
  `target_2_usulan` TEXT DEFAULT NULL,
  `target_3_usulan` TEXT DEFAULT NULL,
  `target_4_usulan` TEXT DEFAULT NULL,
  `target_5_usulan` TEXT DEFAULT NULL,
  `target_akhir_usulan` TEXT DEFAULT NULL,
  `target_awal_usulan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `tujuan_lock` TINYINT(4) DEFAULT NULL,
  `tujuan_teks` TEXT DEFAULT NULL,
  `urut_sasaran` TINYINT(4) DEFAULT NULL,
  `urut_tujuan` TINYINT(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_sub_giat_lama` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_unik` (`id_unik`),
  KEY `id_unik_indikator` (`id_unik_indikator`),
  KEY `id_sub_unit` (`id_sub_unit`),
  KEY `id_sub_giat` (`id_sub_giat`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_kamus_usulan_pokir` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `anggaran` TEXT DEFAULT NULL,
  `bidang_urusan` TEXT DEFAULT NULL,
  `giat_teks` TEXT DEFAULT NULL,
  `id_kamus` INT(11) DEFAULT NULL,
  `id_program` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `idbidangurusan` INT(11) DEFAULT NULL,
  `idskpd` INT(11) DEFAULT NULL,
  `kodeprogram` TEXT DEFAULT NULL,
  `namaprogram` TEXT DEFAULT NULL,
  `jenis_profil` TEXT DEFAULT NULL,
  `kelompok` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `outcome_teks` TEXT DEFAULT NULL,
  `output_teks` TEXT DEFAULT NULL,
  `pekerjaan` TEXT DEFAULT NULL,
  `prioritas_teks` TEXT DEFAULT NULL,
  `satuan` TEXT DEFAULT NULL,
  `tipe` TEXT DEFAULT NULL,
  `id_jenis_usul` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_kamus` (`id_kamus`),
  KEY `idskpd` (`idskpd`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_file` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `nama` VARCHAR(512) DEFAULT NULL,
  `url_asli` TEXT DEFAULT NULL,
  `path` TEXT DEFAULT NULL,
  `tipe_file` TEXT DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `nama` (`nama`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_sp2d_fmis` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `DT_RowIndex` TEXT DEFAULT NULL,
  `created_at` TEXT DEFAULT NULL,
  `url_sp2d` TEXT DEFAULT NULL,
  `nama_file` TEXT DEFAULT NULL,
  `created_id` INT(11) DEFAULT NULL,
  `idkdbank` INT(11) DEFAULT NULL,
  `idsp2d` INT(11) DEFAULT NULL,
  `idspm` INT(11) DEFAULT NULL,
  `idsubunit` INT(11) DEFAULT NULL,
  `info` TEXT DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `no_bku` INT(11) DEFAULT NULL,
  `no_transaksi` TEXT DEFAULT NULL,
  `npwp_bud` TEXT DEFAULT NULL,
  `penandatangan_jbt` TEXT DEFAULT NULL,
  `penandatangan_nip` TEXT DEFAULT NULL,
  `penandatangan_nm` TEXT DEFAULT NULL,
  `sp2d_no` TEXT DEFAULT NULL,
  `sp2d_tgl` DATE DEFAULT NULL,
  `status` TEXT DEFAULT NULL,
  `status_tte` TEXT DEFAULT NULL,
  `tahun` YEAR(4) DEFAULT NULL,
  `updated_at` TEXT DEFAULT NULL,
  `updated_id` TEXT DEFAULT NULL,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `idsp2d` (`idsp2d`),
  KEY `idsubunit` (`idsubunit`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_sp2d_sipd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `idSpm` INT(11) DEFAULT NULL,
  `nomorSp2d` VARCHAR(80) DEFAULT NULL,
  `tanggalSp2d` DATE DEFAULT NULL,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  `idSubUnit` INT(11) DEFAULT NULL,
  `keteranganSp2d` VARCHAR(500) DEFAULT NULL,
  `jenisSp2d` VARCHAR(5) DEFAULT NULL,
  `nilaiSp2d` DOUBLE DEFAULT NULL,
  `jenisLs` VARCHAR(20) DEFAULT NULL,
  `isPergeseran` BIT(1) DEFAULT NULL,
  `isPelimpahan` BIT(1) DEFAULT NULL,
  `created_at` DATETIME DEFAULT NULL,
  `updated_at` DATETIME DEFAULT NULL,
  `isTbpLs` BIT(1) DEFAULT NULL,
  `idSkpd` INT(11) DEFAULT NULL,
  `isDraft` BIT(1) DEFAULT NULL,
  `idSp2d` INT(11) DEFAULT NULL,
  `verifikasiSp2d` BIT(1) DEFAULT NULL,
  `tanggalVerifikasi` DATE DEFAULT NULL,
  `idSkpdTujuan` INT(11) DEFAULT NULL,
  `kunciRekening` BIT(1) DEFAULT NULL,
  `isBku` BIT(1) DEFAULT NULL,
  `bulan_gaji` INT(11) DEFAULT NULL,
  `tahun_gaji` YEAR(4) DEFAULT NULL,
  `jenis_gaji` TINYINT(4) DEFAULT NULL,
  `is_bku_skpd` BIT(1) DEFAULT NULL,
  `id_jadwal` INT(11) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `status_tahap` VARCHAR(20) DEFAULT NULL,
  `kode_tahap` VARCHAR(10) DEFAULT NULL,
  `status_aklap` TINYINT(4) DEFAULT NULL,
  `nomor_jurnal` VARCHAR(50) DEFAULT NULL,
  `jurnal_id` INT(11) DEFAULT NULL,
  `metode` VARCHAR(30) DEFAULT NULL,
  `bulan_tpp` TINYINT(4) DEFAULT NULL,
  `tahun_tpp` YEAR(4) DEFAULT NULL,
  `nomor_rekening_pembayar` VARCHAR(30) DEFAULT NULL,
  `bank_rekening_pembayar` VARCHAR(40) DEFAULT NULL,
  `is_rekening_pembayar` BIT(1) DEFAULT NULL,
  `nomorSpm` VARCHAR(80) DEFAULT NULL,
  `tanggalSpm` DATE DEFAULT NULL,
  `tahunSpm` YEAR(4) DEFAULT NULL,
  `keteranganSpm` VARCHAR(500) DEFAULT NULL,
  `verifikasiSpm` TINYINT(4) DEFAULT NULL,
  `tanggalVerifikasiSpm` DATE DEFAULT NULL,
  `jenisSpm` VARCHAR(5) DEFAULT NULL,
  `nilaiSpm` DOUBLE DEFAULT NULL,
  `keteranganVerifikasiSpm` VARCHAR(500) DEFAULT NULL,
  `isOtorisasi` BIT(1) DEFAULT NULL,
  `tanggalOtorisasi` DATE DEFAULT NULL,
  `is_sptjm` BIT(1) DEFAULT NULL,
  `namaSkpd` VARCHAR(200) DEFAULT NULL,
  `kodeSkpd` VARCHAR(50) DEFAULT NULL,
  `is_bpk` BIT(1) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `nomorSp2d` (`nomorSp2d`),
  KEY `idSp2d` (`idSp2d`),
  KEY `idSkpd` (`idSkpd`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_sp2d_sipd_detail` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_sp_2_d` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `jumlah` DOUBLE(20,2) DEFAULT NULL,
  `kode_rekening` TEXT DEFAULT NULL,
  `total_anggaran` DOUBLE(20,2) DEFAULT NULL,
  `uraian` TEXT DEFAULT NULL,
  `bank_pihak_ketiga` TEXT DEFAULT NULL,
  `jabatan_bud_kbud` TEXT DEFAULT NULL,
  `keterangan_sp2d` TEXT DEFAULT NULL,
  `nama_bank` TEXT DEFAULT NULL,
  `nama_bud_kbud` TEXT DEFAULT NULL,
  `nama_daerah` TEXT DEFAULT NULL,
  `nama_ibukota` TEXT DEFAULT NULL,
  `nama_pihak_ketiga` TEXT DEFAULT NULL,
  `nama_rek_pihak_ketiga` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_sub_skpd` TEXT DEFAULT NULL,
  `nilai_sp2d` DOUBLE(20,2) DEFAULT NULL,
  `nip_bud_kbud` TEXT DEFAULT NULL,
  `no_rek_pihak_ketiga` TEXT DEFAULT NULL,
  `nomor_rekening` TEXT DEFAULT NULL,
  `nomor_sp_2_d` VARCHAR(512) DEFAULT NULL,
  `nomor_spm` TEXT DEFAULT NULL,
  `npwp_pihak_ketiga` TEXT DEFAULT NULL,
  `tahun` YEAR(4) DEFAULT NULL,
  `tanggal_sp_2_d` DATETIME DEFAULT NULL,
  `tanggal_spm` DATETIME DEFAULT NULL,
  `tipe` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_sp_2_d` (`id_sp_2_d`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_sp2d_sipd_detail_potongan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_sp_2_d` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_billing` TEXT DEFAULT NULL,
  `id_pajak_potongan` INT(11) DEFAULT NULL,
  `nama_pajak_potongan` TEXT DEFAULT NULL,
  `[REDACTED]` DOUBLE(20,2) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_sp_2_d` (`id_sp_2_d`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_pajak_potongan` (`id_pajak_potongan`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_sp2d_sipd_ri` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `bulan_gaji` INT(11) DEFAULT NULL,
  `bulan_tpp` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT NULL,
  `created_by` TEXT DEFAULT NULL,
  `deleted_at` DATETIME DEFAULT NULL,
  `deleted_by` TEXT DEFAULT NULL,
  `id_bank` INT(11) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_jadwal` INT(11) DEFAULT NULL,
  `id_pegawai_bud_kbud` INT(11) DEFAULT NULL,
  `id_rkud` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_sp_2_d` INT(11) DEFAULT NULL,
  `id_spm` INT(11) DEFAULT NULL,
  `id_sub_skpd` INT(11) DEFAULT NULL,
  `id_sumber_dana` INT(11) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `id_unit` INT(11) DEFAULT NULL,
  `is_gaji` INT(11) DEFAULT NULL,
  `[REDACTED]` INT(11) DEFAULT NULL,
  `is_pelimpahan` INT(11) DEFAULT NULL,
  `is_status_perubahan` INT(11) DEFAULT NULL,
  `is_tpp` INT(11) DEFAULT NULL,
  `is_transfer_sp_2_d` INT(11) DEFAULT NULL,
  `[REDACTED]` INT(11) DEFAULT NULL,
  `jenis_gaji` INT(11) DEFAULT NULL,
  `jenis_ls_sp_2_d` TEXT DEFAULT NULL,
  `jenis_rkud` TEXT DEFAULT NULL,
  `jenis_sp_2_d` TEXT DEFAULT NULL,
  `jurnal_id` INT(11) DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `keterangan_transfer_sp_2_d` TEXT DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `kode_skpd` TEXT DEFAULT NULL,
  `kode_sub_skpd` TEXT DEFAULT NULL,
  `kode_tahap` TEXT DEFAULT NULL,
  `metode` TEXT DEFAULT NULL,
  `nama_bank` TEXT DEFAULT NULL,
  `nama_bud_kbud` TEXT DEFAULT NULL,
  `nama_rek_bp_bpp` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_sub_skpd` TEXT DEFAULT NULL,
  `[REDACTED]` DOUBLE DEFAULT NULL,
  `nilai_sp_2_d` DOUBLE DEFAULT NULL,
  `nip_bud_kbud` TEXT DEFAULT NULL,
  `no_rek_bp_bpp` TEXT DEFAULT NULL,
  `nomor_jurnal` TEXT DEFAULT NULL,
  `nomor_sp_2_d` VARCHAR(512) DEFAULT NULL,
  `nomor_spm` TEXT DEFAULT NULL,
  `status_aklap` TEXT DEFAULT NULL,
  `status_perubahan_at` DATETIME DEFAULT NULL,
  `status_perubahan_by` INT(11) DEFAULT NULL,
  `status_tahap` TEXT DEFAULT NULL,
  `tahun` INT(11) DEFAULT NULL,
  `tahun_gaji` INT(11) DEFAULT NULL,
  `tahun_tpp` INT(11) DEFAULT NULL,
  `tanggal_sp_2_d` DATETIME DEFAULT NULL,
  `tanggal_spm` DATETIME DEFAULT NULL,
  `transfer_sp_2_d_at` TEXT DEFAULT NULL,
  `transfer_sp_2_d_by` TEXT DEFAULT NULL,
  `updated_at` DATETIME DEFAULT NULL,
  `updated_by` TEXT DEFAULT NULL,
  `[REDACTED]` DATETIME DEFAULT NULL,
  `[REDACTED]` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_sp_2_d` (`id_sp_2_d`),
  KEY `id_skpd` (`id_skpd`),
  KEY `nomor_sp_2_d` (`nomor_sp_2_d`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_sp2d_sipd_detail_ri` (
   `id` INT(11) NOT NULL AUTO_INCREMENT,
   `id_skpd` INT(11) DEFAULT NULL,
   `id_sp_2_d` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `id_sp_2_d` (`id_sp_2_d`),
  KEY `id_skpd` (`id_skpd`)
);

CREATE TABLE `data_spm_sipd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `idSpm` INT(11) DEFAULT NULL,
  `idSpp` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT NULL,
  `updated_at` DATETIME DEFAULT NULL,
  `idDetailSpm` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_jadwal` INT(11) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `status_tahap` VARCHAR(15) DEFAULT NULL,
  `nomorSpp` VARCHAR(80) DEFAULT NULL,
  `nilaiSpp` DOUBLE DEFAULT NULL,
  `tanggalSpp` DATE DEFAULT NULL,
  `keteranganSpp` VARCHAR(500) DEFAULT NULL,
  `idSkpd` INT(11) DEFAULT NULL,
  `idSubUnit` INT(11) DEFAULT NULL,
  `nilaiDisetujuiSpp` DOUBLE DEFAULT NULL,
  `tanggalDisetujuiSpp` DATE DEFAULT NULL,
  `jenisSpp` INT(11) DEFAULT NULL,
  `verifikasiSpp` VARCHAR(10) DEFAULT NULL,
  `keteranganVerifikasi` VARCHAR(500) DEFAULT NULL,
  `idSpd` INT(11) DEFAULT NULL,
  `idPengesahanSpj` INT(11) DEFAULT NULL,
  `kunciRekening` BIT(1) DEFAULT NULL,
  `alamatPenerimaSpp` VARCHAR(100) DEFAULT NULL,
  `bankPenerimaSpp` VARCHAR(100) DEFAULT NULL,
  `nomorRekeningPenerimaSpp` VARCHAR(35) DEFAULT NULL,
  `npwpPenerimaSpp` VARCHAR(35) DEFAULT NULL,
  `jenisLs` VARCHAR(15) DEFAULT NULL,
  `isUploaded` BIT(1) DEFAULT NULL,
  `tahunSpp` YEAR(4) DEFAULT NULL,
  `idKontrak` INT(11) DEFAULT NULL,
  `idBA` INT(11) DEFAULT NULL,
  `isSpm` BIT(1) DEFAULT NULL,
  `statusPerubahan` BIT(1) DEFAULT NULL,
  `isDraft` BIT(1) DEFAULT NULL,
  `isGaji` BIT(1) DEFAULT NULL,
  `is_sptjm` BIT(1) DEFAULT NULL,
  `tanggal_otorisasi` DATE DEFAULT NULL,
  `is_otorisasi` BIT(1) DEFAULT NULL,
  `bulan_gaji` TINYINT(4) DEFAULT NULL,
  `id_pegawai_pptk` INT(11) DEFAULT NULL,
  `nama_pegawai_pptk` VARCHAR(50) DEFAULT NULL,
  `nip_pegawai_pptk` VARCHAR(30) DEFAULT NULL,
  `kode_tahap` VARCHAR(5) DEFAULT NULL,
  `is_tpp` BIT(1) DEFAULT NULL,
  `bulan_tpp` TINYINT(1) DEFAULT NULL,
  `id_pengajuan_tu` INT(11) DEFAULT NULL,
  `nomor_pengajuan_tu` VARCHAR(80) DEFAULT NULL,
  `nomorSpm` VARCHAR(80) DEFAULT NULL,
  `tanggalSpm` DATE DEFAULT NULL,
  `keteranganSpm` VARCHAR(500) DEFAULT NULL,
  `verifikasiSpm` BIT(1) DEFAULT NULL,
  `tanggalVerifikasiSpm` DATE DEFAULT NULL,
  `jenisSpm` VARCHAR(5) DEFAULT NULL,
  `nilaiSpm` DOUBLE DEFAULT NULL,
  `keteranganVerifikasiSpm` VARCHAR(500) DEFAULT NULL,
  `isOtorisasi` BIT(1) DEFAULT NULL,
  `tanggalOtorisasi` DATE DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `idSpm` (`idSpm`),
  KEY `id_skpd` (`id_skpd`),
  KEY `nomorSpm` (`nomorSpm`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_dana_sub_keg_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `namadana` TEXT DEFAULT NULL,
  `kodedana` VARCHAR(50) DEFAULT NULL,
  `iddana` INT(11) DEFAULT NULL,
  `iddanasubbl` INT(11) DEFAULT NULL,
  `pagudana` DOUBLE(20,2) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `nama_dana_usulan` TEXT DEFAULT NULL,
  `kode_dana_usulan` VARCHAR(50) DEFAULT NULL,
  `id_dana_usulan` INT(11) DEFAULT NULL,
  `pagu_dana_usulan` DOUBLE(20,2) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `iddana` (`iddana`),
  KEY `id_dana_usulan` (`id_dana_usulan`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_dana_sub_keg_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `namadana` TEXT,
  `kodedana` VARCHAR(50) DEFAULT NULL,
  `iddana` INT(11) DEFAULT NULL,
  `iddanasubbl` INT(11) DEFAULT NULL,
  `pagudana` DOUBLE(20,2) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `is_locked` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `nama_dana_usulan` TEXT DEFAULT NULL,
  `kode_dana_usulan` VARCHAR(50) DEFAULT NULL,
  `id_dana_usulan` INT(11) DEFAULT NULL,
  `pagu_dana_usulan` DOUBLE(20,2) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `iddana` (`iddana`),
  KEY `id_dana_usulan` (`id_dana_usulan`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_rka_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(10) DEFAULT NULL,
  `createdtime` VARCHAR(10) DEFAULT NULL,
  `harga_satuan` DOUBLE(20,2) DEFAULT NULL,
  `harga_satuan_murni` DOUBLE(20,2) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_rinci_sub_bl` INT(11) DEFAULT NULL,
  `id_standar_nfs` TINYINT(4) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `jenis_bl` VARCHAR(50) DEFAULT NULL,
  `ket_bl_teks` TEXT DEFAULT NULL,
  `substeks` TEXT DEFAULT NULL,
  `id_dana` INT(11) DEFAULT NULL,
  `nama_dana` TEXT DEFAULT NULL,
  `is_paket` TINYINT(4) DEFAULT NULL,
  `kode_dana` VARCHAR(30) DEFAULT NULL,
  `subtitle_teks` TEXT DEFAULT NULL,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `koefisien` TEXT DEFAULT NULL,
  `koefisien_murni` TEXT DEFAULT NULL,
  `lokus_akun_teks` TEXT DEFAULT NULL,
  `nama_akun` TEXT DEFAULT NULL,
  `nama_komponen` TEXT DEFAULT NULL,
  `spek_komponen` TEXT DEFAULT NULL,
  `satuan` VARCHAR(150) DEFAULT NULL,
  `spek` TEXT DEFAULT NULL,
  `sat1` TEXT DEFAULT NULL,
  `sat2` TEXT DEFAULT NULL,
  `sat3` TEXT DEFAULT NULL,
  `sat4` TEXT DEFAULT NULL,
  `volum1` TEXT DEFAULT NULL,
  `volum2` TEXT DEFAULT NULL,
  `volum3` TEXT DEFAULT NULL,
  `volum4` TEXT DEFAULT NULL,
  `volume` TEXT DEFAULT NULL,
  `volume_murni` TEXT DEFAULT NULL,
  `subs_bl_teks` TEXT DEFAULT NULL,
  `total_harga` DOUBLE(20,2) DEFAULT NULL,
  `rincian` DOUBLE(20,2) DEFAULT NULL,
  `rincian_murni` DOUBLE(20,2) DEFAULT NULL,
  `totalpajak` DOUBLE(20,2) DEFAULT NULL,
  `pajak` DOUBLE(20,2) DEFAULT NULL,
  `pajak_murni` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(20) DEFAULT NULL,
  `updatedtime` VARCHAR(20) DEFAULT NULL,
  `user1` TEXT DEFAULT NULL,
  `user2` TEXT DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1,
  `akun_locked` TINYINT(4) DEFAULT NULL,
  `ssh_locked` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  `idbl` INT(11) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `kode_bl` VARCHAR(50) NOT NULL,
  `kode_sbl` VARCHAR(50) NOT NULL,
  `id_prop_penerima` INT(11) DEFAULT NULL,
  `id_camat_penerima` INT(11) DEFAULT NULL,
  `id_kokab_penerima` INT(11) DEFAULT NULL,
  `id_lurah_penerima` INT(11) DEFAULT NULL,
  `id_penerima` INT(11) DEFAULT NULL,
  `idkomponen` DOUBLE(20,2) DEFAULT NULL,
  `idketerangan` INT(11) DEFAULT NULL,
  `idsubtitle` INT(11) DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `kode_sbl` (`kode_sbl`)
);

CREATE TABLE `data_rka_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(10) CHARACTER SET latin1 DEFAULT NULL,
  `createdtime` VARCHAR(10) CHARACTER SET latin1 DEFAULT NULL,
  `harga_satuan` DOUBLE(20,2) DEFAULT NULL,
  `harga_satuan_murni` DOUBLE(20,2) DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_rinci_sub_bl` INT(11) DEFAULT NULL,
  `id_standar_nfs` TINYINT(4) DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT NULL,
  `jenis_bl` VARCHAR(50) CHARACTER SET latin1 DEFAULT NULL,
  `ket_bl_teks` TEXT CHARACTER SET latin1,
  `kode_akun` VARCHAR(50) CHARACTER SET latin1 DEFAULT NULL,
  `koefisien` TEXT CHARACTER SET latin1,
  `koefisien_murni` TEXT CHARACTER SET latin1,
  `lokus_akun_teks` TEXT CHARACTER SET latin1,
  `nama_akun` TEXT CHARACTER SET latin1,
  `nama_komponen` TEXT CHARACTER SET latin1,
  `spek_komponen` TEXT CHARACTER SET latin1,
  `satuan` VARCHAR(150) CHARACTER SET latin1 DEFAULT NULL,
  `spek` TEXT CHARACTER SET latin1,
  `sat1` TEXT CHARACTER SET latin1,
  `sat2` TEXT CHARACTER SET latin1,
  `sat3` TEXT CHARACTER SET latin1,
  `sat4` TEXT CHARACTER SET latin1,
  `volum1` TEXT CHARACTER SET latin1,
  `volum2` TEXT CHARACTER SET latin1,
  `volum3` TEXT CHARACTER SET latin1,
  `volum4` TEXT CHARACTER SET latin1,
  `volume` TEXT CHARACTER SET latin1,
  `volume_murni` TEXT CHARACTER SET latin1,
  `subs_bl_teks` TEXT CHARACTER SET latin1,
  `subtitle_teks` TEXT CHARACTER SET latin1,
  `kode_dana` VARCHAR(30) CHARACTER SET latin1 DEFAULT NULL,
  `is_paket` TINYINT(4) DEFAULT NULL,
  `nama_dana` TEXT CHARACTER SET latin1,
  `id_dana` INT(11) DEFAULT NULL,
  `substeks` TEXT CHARACTER SET latin1,
  `total_harga` DOUBLE(20,2) DEFAULT NULL,
  `rincian` DOUBLE(20,2) DEFAULT NULL,
  `rincian_murni` DOUBLE(20,2) DEFAULT NULL,
  `totalpajak` DOUBLE(20,2) DEFAULT NULL,
  `pajak` DOUBLE(20,2) DEFAULT NULL,
  `pajak_murni` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(20) CHARACTER SET latin1 DEFAULT NULL,
  `updatedtime` VARCHAR(20) CHARACTER SET latin1 DEFAULT NULL,
  `user1` TEXT CHARACTER SET latin1,
  `user2` TEXT CHARACTER SET latin1,
  `active` TINYINT(4) DEFAULT '1',
  `akun_locked` TINYINT(4) DEFAULT NULL,
  `ssh_locked` TINYINT(4) DEFAULT NULL,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  `idbl` INT(11) DEFAULT NULL,
  `idsubbl` INT(11) DEFAULT NULL,
  `kode_bl` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `kode_sbl` VARCHAR(50) CHARACTER SET latin1 NOT NULL,
  `id_prop_penerima` INT(11) DEFAULT NULL,
  `id_camat_penerima` INT(11) DEFAULT NULL,
  `id_kokab_penerima` INT(11) DEFAULT NULL,
  `id_lurah_penerima` INT(11) DEFAULT NULL,
  `id_penerima` INT(11) DEFAULT NULL,
  `idkomponen` DOUBLE(20,2) DEFAULT NULL,
  `idketerangan` INT(11) DEFAULT NULL,
  `idsubtitle` INT(11) DEFAULT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_surat_usulan_ssh` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` TEXT DEFAULT NULL,
  `idskpd` INT(11) DEFAULT NULL,
  `nomor_surat` VARCHAR(512) DEFAULT NULL,
  `nama_file` TEXT DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `catatan_verifikator` TEXT DEFAULT NULL,
  `jenis_survey` INT(11) DEFAULT NULL,
  `jenis_juknis` INT(11) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `idskpd` (`idskpd`),
  KEY `nomor_surat` (`nomor_surat`)
);

CREATE TABLE `data_nota_dinas_usulan_ssh` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` TEXT DEFAULT NULL,
  `nomor_surat` VARCHAR(512) DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `is_locked` TINYINT(4) DEFAULT 0,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2021',
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `nomor_surat` (`nomor_surat`)
);

CREATE TABLE `data_keg_indikator_hasil_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `hasilteks` TEXT,
  `satuanhasil` VARCHAR(50) DEFAULT NULL,
  `targethasil` VARCHAR(50) DEFAULT NULL,
  `targethasilteks` VARCHAR(50) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` VARCHAR(50) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `hasilteks_usulan` TEXT,
  `satuanhasil_usulan` VARCHAR(50) DEFAULT NULL,
  `targethasil_usulan` VARCHAR(50) DEFAULT NULL,
  `targethasilteks_usulan` VARCHAR(50) DEFAULT NULL,
  `catatan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`)
);

CREATE TABLE `data_keg_indikator_hasil_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `hasilteks` TEXT,
  `satuanhasil` VARCHAR(50) DEFAULT NULL,
  `targethasil` VARCHAR(50) DEFAULT NULL,
  `targethasilteks` VARCHAR(50) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `idsubbl` VARCHAR(50) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT '1',
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `hasilteks_usulan` TEXT,
  `satuanhasil_usulan` VARCHAR(50) DEFAULT NULL,
  `targethasil_usulan` VARCHAR(50) DEFAULT NULL,
  `targethasilteks_usulan` VARCHAR(50) DEFAULT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `catatan` TEXT DEFAULT NULL,
  `catatan_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_jenis_standar_harga`(
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `jenis_standar_harga` VARCHAR(50) DEFAULT NULL,
  PRIMARY KEY (id)
);

CREATE TABLE `data_label_sub_keg` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_label_giat` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512),
  `is_locked` INT(11) DEFAULT NULL,
  `nama_label` TEXT,
  `status` tinytext,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `id_label_giat_usulan` INT(11) DEFAULT NULL,
  `id_unik_usulan` TEXT DEFAULT NULL,
  `nama_label_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_label_giat` (`id_label_giat`)
);

CREATE TABLE `data_label_sub_keg_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_label_giat` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512),
  `is_locked` INT(11) DEFAULT NULL,
  `nama_label` TEXT,
  `status` tinytext,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `id_label_giat_usulan` INT(11) DEFAULT NULL,
  `id_unik_usulan` TEXT DEFAULT NULL,
  `nama_label_usulan` TEXT DEFAULT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_label_giat` (`id_label_giat`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_label_sub_keg_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_label_giat` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512),
  `is_locked` INT(11) DEFAULT NULL,
  `nama_label` TEXT,
  `status` tinytext,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `id_label_giat_usulan` INT(11) DEFAULT NULL,
  `id_unik_usulan` TEXT DEFAULT NULL,
  `nama_label_usulan` TEXT DEFAULT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_label_giat` (`id_label_giat`)
);

CREATE TABLE `data_label_sub_keg_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_label_giat` INT(11) DEFAULT NULL,
  `id_unik` VARCHAR(512),
  `is_locked` INT(11) DEFAULT NULL,
  `nama_label` TEXT,
  `status` tinytext,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `id_label_giat_usulan` INT(11) DEFAULT NULL,
  `id_unik_usulan` TEXT DEFAULT NULL,
  `nama_label_usulan` TEXT DEFAULT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_label_giat` (`id_label_giat`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_bkk_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_kecamatan` INT(11) DEFAULT NULL,
  `id_desa` INT(11) DEFAULT NULL,
  `kecamatan` TEXT DEFAULT NULL,
  `desa` TEXT DEFAULT NULL,
  `kegiatan` TEXT DEFAULT NULL,
  `alamat` TEXT DEFAULT NULL,
  `total` DOUBLE(20,2) DEFAULT NULL,
  `id_dana` VARCHAR(512) DEFAULT NULL,
  `sumber_dana` TEXT DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_desa` (`id_desa`),
  KEY `id_dana` (`id_dana`)
);

CREATE TABLE `data_pencairan_bkk_pilkades_desa` ( 
  `id` INT(11) NOT NULL AUTO_INCREMENT, 
  `id_bkk_pilkades` INT(11) DEFAULT NULL, 
  `total_pencairan` DOUBLE(20,2) DEFAULT NULL, 
  `keterangan` TEXT DEFAULT NULL, 
  `nama_user` TEXT DEFAULT NULL, 
  `status_ver_total` TINYINT(4) DEFAULT 0, 
  `ket_ver_total` TEXT DEFAULT NULL, 
  `update_at` DATETIME NOT NULL, 
  `status` TINYINT(4) DEFAULT 1, 
  PRIMARY KEY (id) ,
  KEY `status` (`status`),
  KEY `id_bkk_pilkades` (`id_bkk_pilkades`)
);

CREATE TABLE `data_pendapatan_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(50) DEFAULT NULL,
  `createdtime` VARCHAR(50) DEFAULT NULL,
  `id_pendapatan` INT(11) DEFAULT NULL,
  `keterangan` TEXT,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT,
  `nilaimurni` DOUBLE DEFAULT NULL,
  `program_koordinator` INT(11) DEFAULT NULL,
  `rekening` TEXT,
  `skpd_koordinator` INT(11) DEFAULT NULL,
  `total` DOUBLE DEFAULT NULL,
  `pagu_fmis` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(50) DEFAULT NULL,
  `updatedtime` VARCHAR(50) DEFAULT NULL,
  `uraian` TEXT,
  `urusan_koordinator` INT(11) DEFAULT NULL,
  `user1` TEXT DEFAULT NULL,
  `user2` TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `id_jadwal_murni` INT(11) DEFAULT NULL,
  `koefisien` VARCHAR(50) DEFAULT NULL,
  `kua_murni` VARCHAR(50) DEFAULT NULL,
  `kua_pak` VARCHAR(50) DEFAULT NULL,
  `rkpd_murni` VARCHAR(50) DEFAULT NULL,
  `rkpd_pak` VARCHAR(50) DEFAULT NULL,
  `satuan` VARCHAR(50) DEFAULT NULL,
  `volume` VARCHAR(50) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_pendapatan` (`id_pendapatan`),
  KEY `kode_akun` (`kode_akun`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_akun` (`id_akun`)
);

CREATE TABLE `data_pendapatan_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(50) DEFAULT NULL,
  `createdtime` VARCHAR(50) DEFAULT NULL,
  `id_pendapatan` INT(11) DEFAULT NULL,
  `keterangan` TEXT,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT,
  `nilaimurni` DOUBLE DEFAULT NULL,
  `program_koordinator` INT(11) DEFAULT NULL,
  `rekening` TEXT,
  `skpd_koordinator` INT(11) DEFAULT NULL,
  `total` DOUBLE DEFAULT NULL,
  `pagu_fmis` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(50) DEFAULT NULL,
  `updatedtime` VARCHAR(50) DEFAULT NULL,
  `uraian` TEXT,
  `urusan_koordinator` INT(11) DEFAULT NULL,
  `user1` TEXT DEFAULT NULL,
  `user2` TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_pendapatan` (`id_pendapatan`),
  KEY `kode_akun` (`kode_akun`),
  KEY `id_akun` (`id_akun`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_bhpd_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_kecamatan` INT(11) DEFAULT NULL,
  `id_desa` INT(11) DEFAULT NULL,
  `kecamatan` TEXT DEFAULT NULL,
  `desa` TEXT DEFAULT NULL,
  `total` DOUBLE(20,2) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_desa` (`id_desa`)
);

CREATE TABLE `data_bkk_pilkades_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_kecamatan` INT(11) DEFAULT NULL,
  `id_desa` INT(11) DEFAULT NULL,
  `kecamatan` TEXT DEFAULT NULL,
  `desa` TEXT DEFAULT NULL,
  `total` DOUBLE(20,2) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_desa` (`id_desa`)
);

CREATE TABLE `data_bhrd_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_kecamatan` INT(11) DEFAULT NULL,
  `id_desa` INT(11) DEFAULT NULL,
  `kecamatan` TEXT DEFAULT NULL,
  `desa` TEXT DEFAULT NULL,
  `total` DOUBLE(20,2) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_desa` (`id_desa`)
);

CREATE TABLE `data_bku_dd_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_kecamatan` INT(11) DEFAULT NULL,
  `id_desa` INT(11) DEFAULT NULL,
  `kecamatan` TEXT DEFAULT NULL,
  `desa` TEXT DEFAULT NULL,
  `total` DOUBLE(20,2) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_desa` (`id_desa`)
);

CREATE TABLE `data_bku_add_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_kecamatan` INT(11) DEFAULT NULL,
  `id_desa` INT(11) DEFAULT NULL,
  `kecamatan` TEXT DEFAULT NULL,
  `desa` TEXT DEFAULT NULL,
  `total` DOUBLE(20,2) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `active` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_desa` (`id_desa`)
);

CREATE TABLE `data_pembiayaan_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(50) DEFAULT NULL,
  `createdtime` VARCHAR(50) DEFAULT NULL,
  `id_pembiayaan` INT(11) DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT,
  `nilaimurni` DOUBLE DEFAULT NULL,
  `program_koordinator` INT(11) DEFAULT NULL,
  `rekening` TEXT,
  `skpd_koordinator` INT(11) DEFAULT NULL,
  `total` DOUBLE DEFAULT NULL,
  `pagu_fmis` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(50) DEFAULT NULL,
  `updatedtime` VARCHAR(50) DEFAULT NULL,
  `uraian` TEXT,
  `urusan_koordinator` INT(11) DEFAULT NULL,
  `type` VARCHAR(50) DEFAULT NULL,
  `user1` TEXT DEFAULT NULL,
  `user2`  TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `id_jadwal_murni` INT(11) DEFAULT NULL,
  `koefisien` VARCHAR(50) DEFAULT NULL,
  `kua_murni` VARCHAR(50) DEFAULT NULL,
  `kua_pak` VARCHAR(50) DEFAULT NULL,
  `rkpd_murni` VARCHAR(50) DEFAULT NULL,
  `rkpd_pak` VARCHAR(50) DEFAULT NULL,
  `satuan` VARCHAR(50) DEFAULT NULL,
  `volume` VARCHAR(50) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_pembiayaan` (`id_pembiayaan`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_akun` (`id_akun`)
);

CREATE TABLE `data_pembiayaan_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `created_user` INT(11) DEFAULT NULL,
  `createddate` VARCHAR(50) DEFAULT NULL,
  `createdtime` VARCHAR(50) DEFAULT NULL,
  `id_pembiayaan` INT(11) DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `nama_akun` TEXT,
  `nilaimurni` DOUBLE DEFAULT NULL,
  `program_koordinator` INT(11) DEFAULT NULL,
  `rekening` TEXT,
  `skpd_koordinator` INT(11) DEFAULT NULL,
  `total` DOUBLE DEFAULT NULL,
  `pagu_fmis` DOUBLE(20,2) DEFAULT NULL,
  `updated_user` INT(11) DEFAULT NULL,
  `updateddate` VARCHAR(50) DEFAULT NULL,
  `updatedtime` VARCHAR(50) DEFAULT NULL,
  `uraian` TEXT,
  `urusan_koordinator` INT(11) DEFAULT NULL,
  `type` VARCHAR(50) DEFAULT NULL,
  `user1`TEXT DEFAULT NULL,
  `user2`TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_akun` INT(11) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_pembiayaan` (`id_pembiayaan`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_akun` (`id_akun`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_pencairan_bkk_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_kegiatan` INT(11) DEFAULT NULL,
  `total_pencairan` DOUBLE(20,2) DEFAULT NULL,
  `file_nota_dinas` TEXT DEFAULT NULL,
  `file_sptj` TEXT DEFAULT NULL,
  `file_pakta_integritas` TEXT DEFAULT NULL,
  `file_permohonan_transfer` TEXT DEFAULT NULL,
  `file_verifikasi_rekomendasi` TEXT DEFAULT NULL,
  `file_permohonan_penyaluran_kades` TEXT DEFAULT NULL,
  `file_sptj_kades` TEXT DEFAULT NULL,
  `file_pakta_integritas_kades` TEXT DEFAULT NULL,
  `file_pakta_integritas_3_orang` TEXT DEFAULT NULL,
  `file_proposal_rencana_anggaran` TEXT DEFAULT NULL,
  `file_apbdes` TEXT DEFAULT NULL,
  `file_fc_rek_kas_desa` TEXT DEFAULT NULL,
  `nama_user` TEXT DEFAULT NULL,
  `status_ver_total` TINYINT(4) DEFAULT 0,
  `ket_ver_total` TEXT DEFAULT NULL,
  `status_ver_proposal` TINYINT(4) DEFAULT 0,
  `ket_ver_proposal` TEXT DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `status` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `id_kegiatan` (`id_kegiatan`),
  KEY `status` (`status`)
);

CREATE TABLE `data_pencairan_bhpd_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_bhpd` INT(11) DEFAULT NULL,
  `total_pencairan` DOUBLE(20,2) DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `file_nota_dinas` TEXT DEFAULT NULL,
  `file_sptj` TEXT DEFAULT NULL,
  `file_pakta_integritas` TEXT DEFAULT NULL,
  `file_permohonan_transfer` TEXT DEFAULT NULL,
  `file_rekomendasi` TEXT DEFAULT NULL,
  `file_permohonan_penyaluran_kades` TEXT DEFAULT NULL,
  `file_sptj_kades` TEXT DEFAULT NULL,
  `file_pakta_integritas_kades` TEXT DEFAULT NULL,
  `file_pernyataaan_kades_spj_dbhpd` TEXT DEFAULT NULL,
  `file_sk_bendahara_desa` TEXT DEFAULT NULL,
  `file_fc_ktp_kades` TEXT DEFAULT NULL,
  `file_fc_rek_kas_desa` TEXT DEFAULT NULL,
  `file_laporan_realisasi_tahun_sebelumnya` TEXT DEFAULT NULL,
  `nama_user` TEXT DEFAULT NULL,
  `status_ver_total` TINYINT(4) DEFAULT 0,
  `ket_ver_total` TEXT DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `status` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `id_bhpd` (`id_bhpd`),
  KEY `status` (`status`)
);

CREATE TABLE `data_pencairan_bhrd_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_bhrd` INT(11) DEFAULT NULL,
  `total_pencairan` DOUBLE(20,2) DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `file_nota_dinas` TEXT DEFAULT NULL,
  `file_sptj` TEXT DEFAULT NULL,
  `file_pakta_integritas` TEXT DEFAULT NULL,
  `file_rekomendasi` TEXT DEFAULT NULL,
  `file_permohonan_transfer` TEXT DEFAULT NULL,
  `file_permohonan_penyaluran_kades` TEXT DEFAULT NULL,
  `file_sptj_kades` TEXT DEFAULT NULL,
  `file_pakta_integritas_kades` TEXT DEFAULT NULL,
  `file_pernyataaan_kades_spj_dbhpd` TEXT DEFAULT NULL,
  `file_sk_bendahara_desa` TEXT DEFAULT NULL,
  `file_fc_ktp_kades` TEXT DEFAULT NULL,
  `file_fc_rek_kas_desa` TEXT DEFAULT NULL,
  `file_laporan_realisasi_sebelumnya` TEXT DEFAULT NULL,
  `nama_user` TEXT DEFAULT NULL,
  `status_ver_total` TINYINT(4) DEFAULT 0,
  `ket_ver_total` TEXT DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `status` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `id_bhrd` (`id_bhrd`),
  KEY `status` (`status`)
);

CREATE TABLE `data_pencairan_bku_dd_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_bku_dd` INT(11) DEFAULT NULL,
  `total_pencairan` DOUBLE(20,2) DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `file_nota_dinas` TEXT DEFAULT NULL,
  `file_sptj` TEXT DEFAULT NULL,
  `file_pakta_integritas` TEXT DEFAULT NULL,
  `file_permohonan_transfer` TEXT DEFAULT NULL,
  `file_realisasi_tahap_sebelumnya` TEXT DEFAULT NULL,
  `file_dokumen_syarat_umum` TEXT DEFAULT NULL,
  `file_dokumen_syarat_khusus` TEXT DEFAULT NULL,
  `nama_user` TEXT DEFAULT NULL,
  `status_ver_total` TINYINT(4) DEFAULT 0,
  `ket_ver_total` TEXT DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `status` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `id_bku_dd` (`id_bku_dd`),
  KEY `status` (`status`)

);

CREATE TABLE `data_pencairan_bku_add_desa` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_bku_add` INT(11) DEFAULT NULL,
  `total_pencairan` DOUBLE(20,2) DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `file_nota_dinas` TEXT DEFAULT NULL,
  `file_sptj` TEXT DEFAULT NULL,
  `file_pakta_integritas` TEXT DEFAULT NULL,
  `file_permohonan_transfer` TEXT DEFAULT NULL,
  `file_realisasi_tahap_sebelumnya` TEXT DEFAULT NULL,
  `file_dokumen_syarat_umum` TEXT DEFAULT NULL,
  `file_dokumen_syarat_khusus` TEXT DEFAULT NULL,
  `nama_user` TEXT DEFAULT NULL,
  `status_ver_total` TINYINT(4) DEFAULT 0,
  `ket_ver_total` TEXT DEFAULT NULL,
  `update_at` DATETIME NOT NULL,
  `status` TINYINT(4) DEFAULT 1,
  PRIMARY KEY (id),
  KEY `id_bku_add` (`id_bku_add`),
  KEY `status` (`status`)
);

CREATE TABLE `data_mapping_sumberdana_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_rinci_sub_bl` INT(11) NOT NULL,
  `id_sumber_dana` INT(11) NOT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `id_sumber_dana` (`id_sumber_dana`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_mapping_sumberdana_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_rinci_sub_bl` INT(11) NOT NULL,
  `id_sumber_dana` INT(11) NOT NULL,
  `user` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `id_sumber_dana` (`id_sumber_dana`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_spp_sipd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `nomorSpp` VARCHAR(512) DEFAULT NULL,
  `nilaiSpp` DOUBLE(20,2) DEFAULT NULL,
  `tanggalSpp` DATE DEFAULT NULL,
  `keteranganSpp` TEXT DEFAULT NULL,
  `idSkpd` INT(11) DEFAULT NULL,
  `idSubUnit` INT(11) DEFAULT NULL,
  `nilaiDisetujuiSpp` DOUBLE(20,2) DEFAULT NULL,
  `tanggalDisetujuiSpp` DATE DEFAULT NULL,
  `jenisSpp` VARCHAR(5) DEFAULT NULL,
  `verifikasiSpp` TINYINT(4) DEFAULT NULL,
  `keteranganVerifikasi` TEXT DEFAULT NULL,
  `idSpd` INT(11) DEFAULT NULL,
  `idPengesahanSpj` INT(11) DEFAULT NULL,
  `kunciRekening` TINYINT(4) DEFAULT NULL,
  `alamatPenerimaSpp` TEXT DEFAULT NULL,
  `bankPenerimaSpp` TEXT DEFAULT NULL,
  `nomorRekeningPenerimaSpp` TEXT DEFAULT NULL,
  `npwpPenerimaSpp` TEXT DEFAULT NULL,
  `idUser` INT(11) DEFAULT NULL,
  `jenisLs` TEXT DEFAULT NULL,
  `isUploaded` TINYINT(4) DEFAULT NULL,
  `tahunSpp` YEAR(4) DEFAULT NULL,
  `idKontrak` INT(11) DEFAULT NULL,
  `idBA` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT NULL,
  `updated_at` DATETIME DEFAULT NULL,
  `isSpm` TINYINT(4) DEFAULT NULL,
  `statusPerubahan` TINYINT(4) DEFAULT NULL,
  `isDraft` TINYINT(4) DEFAULT NULL,
  `idSpp` INT(11) DEFAULT NULL,
  `kodeDaerah` TEXT DEFAULT NULL,
  `idDaerah` INT(11) DEFAULT NULL,
  `isGaji` TINYINT(4) DEFAULT NULL,
  `is_sptjm` TINYINT(4) DEFAULT NULL,
  `tanggal_otorisasi` DATETIME DEFAULT NULL,
  `is_otorisasi` TINYINT(4) DEFAULT NULL,
  `bulan_gaji` TEXT DEFAULT NULL,
  `id_pegawai_pptk` INT(11) DEFAULT NULL,
  `nama_pegawai_pptk` TEXT DEFAULT NULL,
  `nip_pegawai_pptk` TEXT DEFAULT NULL,
  `id_jadwal` INT(11) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `status_tahap` TEXT DEFAULT NULL,
  `kode_tahap` TEXT DEFAULT NULL,
  `is_tpp` TINYINT(4) DEFAULT NULL,
  `bulan_tpp` TINYINT(4) DEFAULT NULL,
  `id_pengajuan_tu` INT(11) DEFAULT NULL,
  `nomor_pengajuan_tu` TEXT DEFAULT NULL,
  `id_npd` INT(11) DEFAULT NULL,
  `tipe` VARCHAR(10) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `idSkpd` (`idSkpd`),
  KEY `idSpp` (`idSpp`),
  KEY `nomorSpp` (`nomorSpp`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_spp_sipd_detail` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `idSpp` INT(11) DEFAULT NULL,
  `idKegiatan` INT(11) DEFAULT NULL,
  `nilaiDetailSpp` DOUBLE(20,2) DEFAULT NULL,
  `nilaiDisetujuiDetailSpp` DOUBLE(20,2) DEFAULT NULL,
  `idRekening` INT(11) DEFAULT NULL,
  `idBelanja` INT(11) DEFAULT NULL,
  `nominal` TEXT DEFAULT NULL,
  `idDetailSpd` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT NULL,
  `updated_at` DATETIME DEFAULT NULL,
  `idSpd` INT(11) DEFAULT NULL,
  `idDetailSpp` INT(11) DEFAULT NULL,
  `id_jadwal` INT(11) DEFAULT NULL,
  `id_tahap` INT(11) DEFAULT NULL,
  `status_tahap` TEXT DEFAULT NULL,
  `id_daerah` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `tahun_spp` YEAR DEFAULT NULL,
  `kode_rekening` TEXT DEFAULT NULL,
  `nama_rekening` TEXT DEFAULT NULL,
  `id_sub_kegiatan` INT(11) DEFAULT NULL,
  `kode_sub_kegiatan` VARCHAR(50) DEFAULT NULL,
  `nama_sub_kegiatan` TEXT DEFAULT NULL,
  `kode_kegiatan` VARCHAR(50) DEFAULT NULL,
  `nama_kegiatan` TEXT DEFAULT NULL,
  `id_sub_skpd` INT(11) DEFAULT NULL,
  `nama_sub_skpd` TEXT DEFAULT NULL,
  `distribusi` TEXT DEFAULT NULL,
  `id_pegawai_kpa` INT(11) DEFAULT NULL,
  `id_npd` INT(11) DEFAULT NULL,
  `id_detail_npd` INT(11) DEFAULT NULL,
  `nilaiDetailSpd` DOUBLE(20,2) DEFAULT NULL,
  `sisaDetailSpd` DOUBLE(20,2) DEFAULT NULL,
  `isUp` TINYINT(4) DEFAULT NULL,
  `tahun` TEXT DEFAULT NULL,
  `isPengajuanTu` TINYINT(4) DEFAULT NULL,
  `idSubKegiatan` INT(11) DEFAULT NULL,
  `kodeSubKegiatan` TEXT DEFAULT NULL,
  `namaSubKegiatan` TEXT DEFAULT NULL,
  `kodeRekening` VARCHAR(50) DEFAULT NULL,
  `namaRekening` TEXT DEFAULT NULL,
  `kodeKegiatan` VARCHAR(50) DEFAULT NULL,
  `namaKegiatan` TEXT DEFAULT NULL,
  `idSkpd` INT(11) DEFAULT NULL,
  `idDaerah` INT(11) DEFAULT NULL,
  `idProgram` INT(11) DEFAULT NULL,
  `idSubSkpd` INT(11) DEFAULT NULL,
  `idPegawaiKpa` INT(11) DEFAULT NULL,
  `kodeSubSkpd` VARCHAR(50) DEFAULT NULL,
  `namaSubSkpd` TEXT DEFAULT NULL,
  `isVerifikasiSpp` TINYINT(4) DEFAULT NULL,
  `id_bidang` INT(11) DEFAULT NULL,
  `kode_program` VARCHAR(50) DEFAULT NULL,
  `nama_program` TEXT DEFAULT NULL,
  `kode_bidang_urusan` VARCHAR(50) DEFAULT NULL,
  `nama_bidang_urusan` TEXT DEFAULT NULL,
  `tipe` VARCHAR(10) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `idSubSkpd` (`idSubSkpd`),
  KEY `idSpp` (`idSpp`),
  KEY `idDetailSpp` (`idDetailSpp`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_spp_sipd_ri_detail` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_spp` INT(11) DEFAULT NULL,
  `nomor_spd` TEXT DEFAULT NULL,
  `tanggal_spd` DATETIME DEFAULT NULL,
  `total_spd` DOUBLE(20,2) DEFAULT NULL,
  `jumlah` DOUBLE(20,2) DEFAULT NULL,
  `kode_rekening` VARCHAR(255) DEFAULT NULL,
  `uraian` TEXT DEFAULT NULL,
  `bank_bp_bpp` TEXT DEFAULT NULL,
  `jabatan_bp_bpp` TEXT DEFAULT NULL,
  `jabatan_pa_kpa` TEXT DEFAULT NULL,
  `jenis_ls_spp` TEXT DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `nama_bp_bpp` TEXT DEFAULT NULL,
  `nama_daerah` TEXT DEFAULT NULL,
  `nama_ibukota` TEXT DEFAULT NULL,
  `nama_pa_kpa` TEXT DEFAULT NULL,
  `nama_pptk` TEXT DEFAULT NULL,
  `nama_rek_bp_bpp` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_sub_skpd` TEXT DEFAULT NULL,
  `nilai` DOUBLE(20,2) DEFAULT NULL,
  `nip_bp_bpp` TEXT DEFAULT NULL,
  `nip_pa_kpa` TEXT DEFAULT NULL,
  `nip_pptk` TEXT DEFAULT NULL,
  `no_rek_bp_bpp` TEXT DEFAULT NULL,
  `nomor_transaksi` TEXT DEFAULT NULL,
  `npwp_bp_bpp` TEXT DEFAULT NULL,
  `tahun` YEAR(4) DEFAULT NULL,
  `tanggal_transaksi` DATETIME DEFAULT NULL,
  `tipe` VARCHAR(10) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_spp` (`id_spp`),
  KEY `kode_rekening` (`kode_rekening`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_spm_sipd_detail` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_spm` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `nomor_spd` TEXT DEFAULT NULL,
  `tanggal_spd` DATETIME DEFAULT NULL,
  `total_spd` DOUBLE(20,2) DEFAULT NULL,
  `jumlah` DOUBLE(20,2) DEFAULT NULL,
  `kode_rekening` VARCHAR(255) DEFAULT NULL,
  `uraian` TEXT DEFAULT NULL,
  `bank_pihak_ketiga` TEXT DEFAULT NULL,
  `jabatan_pa_kpa` TEXT DEFAULT NULL,
  `keterangan_spm` TEXT DEFAULT NULL,
  `nama_daerah` TEXT DEFAULT NULL,
  `nama_ibukota` TEXT DEFAULT NULL,
  `nama_pa_kpa` TEXT DEFAULT NULL,
  `nama_pihak_ketiga` TEXT DEFAULT NULL,
  `nama_rek_pihak_ketiga` TEXT DEFAULT NULL,
  `nama_skpd` TEXT DEFAULT NULL,
  `nama_sub_skpd` TEXT DEFAULT NULL,
  `nilai_spm` DOUBLE(20,2) DEFAULT NULL,
  `nip_pa_kpa` TEXT DEFAULT NULL,
  `no_rek_pihak_ketiga` TEXT DEFAULT NULL,
  `nomor_spm` TEXT DEFAULT NULL,
  `nomor_spp` TEXT DEFAULT NULL,
  `npwp_pihak_ketiga` TEXT DEFAULT NULL,
  `tahun` YEAR(4) DEFAULT NULL,
  `tanggal_spm` DATETIME DEFAULT NULL,
  `tanggal_spp` DATETIME DEFAULT NULL,
  `tipe` VARCHAR(10) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_spm` (`id_spm`),
  KEY `kode_rekening` (`kode_rekening`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_spm_sipd_detail_potongan` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_spm` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_billing` TEXT DEFAULT NULL,
  `id_pajak_potongan` INT(11) DEFAULT NULL,
  `nama_pajak_potongan` TEXT DEFAULT NULL,
  `nilai_spp_pajak_potongan` DOUBLE(20,2) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `update_at` DATETIME NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_spm` (`id_spm`),
  KEY `id_pajak_potongan` (`id_pajak_potongan`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_verifikasi_rka` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_user` INT(11) NOT NULL,
  `nama_verifikator` VARCHAR(100) NOT NULL,
  `fokus_uraian` TEXT NOT NULL,
  `catatan_verifikasi` TEXT NOT NULL,
  `tanggapan_opd` TEXT NOT NULL,
  `update_at_tanggapan` DATETIME DEFAULT CURRENT_TIMESTAMP(),
  `create_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP(),
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_verifikasi_rka_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_user` INT(11) NOT NULL,
  `nama_verifikator` VARCHAR(100) NOT NULL,
  `fokus_uraian` TEXT NOT NULL,
  `catatan_verifikasi` TEXT NOT NULL,
  `tanggapan_opd` TEXT NOT NULL,
  `update_at_tanggapan` DATETIME DEFAULT CURRENT_TIMESTAMP(),
  `create_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP(),
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_verifikasi_rka_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_user` INT(11) NOT NULL,
  `nama_verifikator` VARCHAR(100) NOT NULL,
  `fokus_uraian` TEXT NOT NULL,
  `catatan_verifikasi` TEXT NOT NULL,
  `tanggapan_opd` TEXT NOT NULL,
  `update_at_tanggapan` DATETIME DEFAULT CURRENT_TIMESTAMP(),
  `create_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP(),
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_verifikasi_rka_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_user` INT(11) NOT NULL,
  `nama_verifikator` VARCHAR(100) NOT NULL,
  `fokus_uraian` TEXT NOT NULL,
  `catatan_verifikasi` TEXT NOT NULL,
  `tanggapan_opd` TEXT NOT NULL,
  `update_at_tanggapan` DATETIME DEFAULT CURRENT_TIMESTAMP(),
  `create_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP(),
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_pptk_sub_keg` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_user` INT(11) NOT NULL,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_pptk_sub_keg_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_user` INT(11) NOT NULL,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_pptk_sub_keg_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_user` INT(11) NOT NULL,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_pptk_sub_keg_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_user` INT(11) NOT NULL,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `active` (`active`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_validasi_verifikasi_rka` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_user` INT(11) NOT NULL,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `nama_bidang` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `nama_bidang` (`nama_bidang`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_validasi_verifikasi_rka_lokal` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_user` INT(11) NOT NULL,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `nama_bidang` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `nama_bidang` (`nama_bidang`),
  KEY `tahun_anggaran` (`tahun_anggaran`)
);

CREATE TABLE `data_validasi_verifikasi_rka_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_user` INT(11) NOT NULL,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `nama_bidang` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `nama_bidang` (`nama_bidang`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_validasi_verifikasi_rka_lokal_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_user` INT(11) NOT NULL,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `nama_bidang` VARCHAR(512) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id_asli` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_user` (`id_user`),
  KEY `nama_bidang` (`nama_bidang`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`)
);

CREATE TABLE `data_batasan_pagu_sd`(
  `id` INT NOT NULL AUTO_INCREMENT,
  `id_dana` INT(11) NOT NULL,
  `kode_dana` VARCHAR(50) NOT NULL,
  `nama_dana` TEXT NOT NULL,
  `nilai_batasan` DOUBLE(20,2) NOT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP(),
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `id_dana` (`id_dana`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_nota_pencairan_dana` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `nomor_npd` VARCHAR(50) NOT NULL,
  `id_user_pptk` INT(11) NOT NULL,
  `jenis_panjar` VARCHAR(64) DEFAULT NULL,
  `nomor_dpa` VARCHAR(50) NOT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `nomor_npd` (`nomor_npd`),
  KEY `id_user_pptk` (`id_user_pptk`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rekening_nota_pencairan_dana` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `nama_rekening` TEXT NOT NULL,
  `kode_rekening` VARCHAR(255) NOT NULL,
  `id_rekening` INT(11) DEFAULT NULL,
  `pagu_dana` DOUBLE(20,2) DEFAULT NULL,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `id_npd` INT(11) NOT NULL,
  `active` TINYINT(4) DEFAULT 1,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_npd` (`id_npd`),
  KEY `id_rekening` (`id_rekening`),
  KEY `kode_rekening` (`kode_rekening`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_buku_kas_umum_pembantu` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_npd` INT(11) NOT NULL,
  `kode_sbl` VARCHAR(512) NOT NULL,
  `nomor_nota_bkup` VARCHAR(50) NOT NULL,
  `nomor_bukti` VARCHAR(50) DEFAULT NULL,
  `uraian` TEXT DEFAULT NULL,
  `tipe` VARCHAR(50) NOT NULL,
  `tanggal_bkup` DATETIME DEFAULT CURRENT_TIMESTAMP(),
  `metode_bku` ENUM('tanpa_rumus','dengan_rumus') DEFAULT 'tanpa_rumus',
  `rumus_pagu` VARCHAR(512) DEFAULT NULL,
  `pagu` DOUBLE(20,2) DEFAULT NULL,
  `jenis_cash` VARCHAR(12) DEFAULT NULL,
  `kode_rekening` VARCHAR(50) NOT NULL,
  `nama_rekening` TEXT NOT NULL,
  `nama_pemilik_rekening_bank` VARCHAR(50) DEFAULT NULL,
  `nama_rekening_bank` VARCHAR(50) DEFAULT NULL,
  `no_rekening_bank` INT(11) DEFAULT NULL,
  `id_rinci_sub_bl` INT(11) DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP(),
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `id_npd` (`id_npd`),
  KEY `nomor_bukti` (`nomor_bukti`),
  KEY `id_rinci_sub_bl` (`id_rinci_sub_bl`),
  KEY `kode_rekening` (`kode_rekening`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_pohon_kinerja` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `label` VARCHAR(255) NOT NULL,
  `parent` INT(11) DEFAULT 0,
  `label_indikator_kinerja` VARCHAR(255) DEFAULT null,
  `level` INT(11) NOT null,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP(),
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY key (id),
  KEY `parent` (`parent`),
  KEY `level` (`level`),
  KEY `label` (`label`),
  KEY `label_indikator_kinerja` (`label_indikator_kinerja`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_spt_sppd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `nomor_spt` VARCHAR(512) NOT NULL,
  `dasar_spt` TEXT NOT NULL,
  `tujuan_spt` TEXT NOT NULL,
  `tgl_spt` DATE NOT NULL,
  `id_ka_opd` INT(11) NOT NULL,
  `id_skpd` INT(11) NOT NULL,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP(),
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY key (id),
  KEY `nomor_spt` (`nomor_spt`),
  KEY `id_skpd` (`id_skpd`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_pegawai_spt_sppd` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `nomor_spt` VARCHAR(512) NOT NULL,
  `nomor_sppd` VARCHAR(512) NOT NULL,
  `id_pegawai` INT(11) NOT NULL DEFAULT 0,
  `nama_pegawai` TEXT DEFAULT NULL COMMENT 'Nama Pegawai Custom',
  `nip_pegawai` VARCHAR(512) DEFAULT NULL COMMENT 'NIP Pegawai Custom',
  `pangkat_gol_pegawai` TEXT DEFAULT NULL COMMENT 'Pangkat/Gol Pegawai Custom',
  `jabatan_pegawai` TEXT DEFAULT NULL COMMENT 'Jabatan Pegawai Custom',
  `alat_angkut` ENUM('Kendaraan Dinas', 'Kendaraan Pribadi', 'Kendaraan Umum') NOT NULL,
  `tempat_berangkat` TEXT DEFAULT NULL,
  `tgl_berangkat` DATE NOT NULL,
  `tempat_tujuan` TEXT DEFAULT NULL,
  `tgl_sampai` DATE NOT NULL,
  `tgl_kembali` DATE NOT NULL,
  `id_skpd_sumber_dana` INT(11) NOT NULL,
  `kode_rincian_belanja` TEXT NOT NULL,
  `id_ka_opd` INT(11) NOT NULL,
  `tgl_ttd_sppd` DATE NOT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `maksud_sppd` TEXT DEFAULT NULL,
  `tahun_anggaran` YEAR(4) DEFAULT NULL,
  `active` TINYINT(4) NOT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP(),
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (id),
  KEY `nomor_spt` (`nomor_spt`),
  KEY `nomor_sppd` (`nomor_sppd`),
  KEY `id_pegawai` (`id_pegawai`),
  KEY `nip_pegawai` (`nip_pegawai`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_efisiensi_belanja` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `pagu_efisiensi` DOUBLE(20,0) DEFAULT NULL,
  `active` TINYINT(4) DEFAULT 1,
  `keterangan` TEXT DEFAULT NULL,
  `update_at` DATETIME DEFAULT NULL,
  `tahun_anggaran` YEAR(4) NOT NULL DEFAULT '2025',
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `kode_akun` (`kode_akun`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_efisiensi_belanja_history` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `kode_sbl` VARCHAR(50) DEFAULT NULL,
  `kode_akun` VARCHAR(50) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `pagu_efisiensi` DOUBLE(20,0) DEFAULT NULL,
  `keterangan` TEXT DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `id_asli` INT(11) NOT NULL,
  PRIMARY KEY (id),
  KEY `kode_sbl` (`kode_sbl`),
  KEY `kode_akun` (`kode_akun`),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`)
);

CREATE TABLE `data_tujuan_sasaran_manrisk_sebelum` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_tujuan_sasaran` VARCHAR(512) DEFAULT NULL,
  `id_indikator` VARCHAR(512) DEFAULT NULL,
  `uraian_resiko` TEXT DEFAULT NULL,
  `kode_resiko` TEXT DEFAULT NULL,
  `pemilik_resiko` TEXT DEFAULT NULL,
  `uraian_sebab` TEXT DEFAULT NULL,
  `sumber_sebab` TEXT DEFAULT NULL,
  `controllable` TINYINT(4) DEFAULT 1 COMMENT '0=Controllable, 1=Uncontrollable',
  `tipe` TINYINT(4) DEFAULT 1 COMMENT '0=Tujuan, 1=Sasaran',
  `uraian_dampak` TEXT DEFAULT NULL,
  `pihak_terkena` TEXT DEFAULT NULL,
  `skala_dampak` VARCHAR(255) DEFAULT 0,
  `skala_kemungkinan` VARCHAR(255) DEFAULT 0,
  `nilai_resiko` VARCHAR(255) DEFAULT NULL,
  `rencana_tindak_pengendalian` TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_tujuan_sasaran_manrisk_sesudah` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_sebelum` INT(11) DEFAULT NULL,
  `id_tujuan_sasaran` VARCHAR(512) DEFAULT NULL,
  `id_indikator` VARCHAR(512) DEFAULT NULL,
  `tujuan_sasaran_teks` TEXT DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `uraian_resiko` TEXT DEFAULT NULL,
  `kode_resiko` TEXT DEFAULT NULL,
  `pemilik_resiko` TEXT DEFAULT NULL,
  `uraian_sebab` TEXT DEFAULT NULL,
  `sumber_sebab` TEXT DEFAULT NULL,
  `controllable` TINYINT(4) DEFAULT 1 COMMENT '0=Controllable, 1=Uncontrollable',
  `tipe` TINYINT(4) DEFAULT 1 COMMENT '0=Tujuan, 1=Sasaran',
  `uraian_dampak` TEXT DEFAULT NULL,
  `pihak_terkena` TEXT DEFAULT NULL,
  `skala_dampak` VARCHAR(255) DEFAULT 0,
  `skala_kemungkinan` VARCHAR(255) DEFAULT 0,
  `nilai_resiko` VARCHAR(255) DEFAULT NULL,
  `rencana_tindak_pengendalian` TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_program_kegiatan_manrisk_sebelum` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_program_kegiatan` VARCHAR(512) DEFAULT NULL,
  `id_indikator` VARCHAR(512) DEFAULT NULL,
  `satuan_capaian` VARCHAR(255) DEFAULT NULL,
  `target_capaian_teks` VARCHAR(255) DEFAULT NULL,
  `capaian_teks` TEXT,
  `target_capaian` VARCHAR(255) DEFAULT NULL,
  `uraian_resiko` TEXT DEFAULT NULL,
  `kode_resiko` TEXT DEFAULT NULL,
  `pemilik_resiko` TEXT DEFAULT NULL COMMENT '1=Kepala Daerah, 2=Kepala OPD, 3=Kepala Bidang',
  `uraian_sebab` TEXT DEFAULT NULL,
  `sumber_sebab` TEXT DEFAULT NULL COMMENT '1=Internal, 2=Eksternal, 3=Internal & Eksternal',
  `controllable` TINYINT(4) DEFAULT 1 COMMENT '0=Controllable, 1=Uncontrollable',
  `tipe` TINYINT(4) DEFAULT 1 COMMENT '0=Program, 1=Kegiatan, 2=Sub Kegiatan',
  `uraian_dampak` TEXT DEFAULT NULL,
  `pihak_terkena` TEXT DEFAULT NULL COMMENT '1=Pemerintah, 2=Perangkat Daerah, 3=Kepala OPD, 4=Pegawai OPD, 5=Masyarakat',
  `skala_dampak` VARCHAR(255) DEFAULT 0,
  `skala_kemungkinan` VARCHAR(255) DEFAULT 0,
  `nilai_resiko` VARCHAR(255) DEFAULT NULL,
  `rencana_tindak_pengendalian` TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `status` TINYINT(4) DEFAULT 0,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_program_kegiatan_manrisk_sesudah` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_sebelum` INT(11) DEFAULT NULL,
  `id_program_kegiatan` VARCHAR(512) DEFAULT NULL,
  `id_indikator` VARCHAR(512) DEFAULT NULL,
  `satuan_capaian` VARCHAR(255) DEFAULT NULL,
  `target_capaian_teks` VARCHAR(255) DEFAULT NULL,
  `capaian_teks` TEXT,
  `target_capaian` VARCHAR(255) DEFAULT NULL,
  `program_kegiatan_teks` TEXT DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `uraian_resiko` TEXT DEFAULT NULL,
  `kode_resiko` TEXT DEFAULT NULL,
  `pemilik_resiko` TEXT DEFAULT NULL COMMENT '1=Kepala Daerah, 2=Kepala OPD, 3=Kepala Bidang',
  `uraian_sebab` TEXT DEFAULT NULL,
  `sumber_sebab` TEXT DEFAULT NULL COMMENT '1=Internal, 2=Eksternal, 3=Internal & Eksternal',
  `controllable` TINYINT(4) DEFAULT 1 COMMENT '0=Controllable, 1=Uncontrollable',
  `tipe` TINYINT(4) DEFAULT 1 COMMENT '0=Program, 1=Kegiatan, 2=Sub Kegiatan',
  `uraian_dampak` TEXT DEFAULT NULL,
  `pihak_terkena` TEXT DEFAULT NULL COMMENT '1=Pemerintah, 2=Perangkat Daerah, 3=Kepala OPD, 4=Pegawai OPD, 5=Masyarakat',
  `skala_dampak` VARCHAR(255) DEFAULT 0,
  `skala_kemungkinan` VARCHAR(255) DEFAULT 0,
  `nilai_resiko` VARCHAR(255) DEFAULT NULL,
  `rencana_tindak_pengendalian` TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `status` TINYINT(4) DEFAULT 0,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_tujuan_sasaran_manrisk_sebelum_pemda` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_tujuan_sasaran` VARCHAR(512) DEFAULT NULL,
  `id_indikator` VARCHAR(512) DEFAULT NULL,
  `uraian_resiko` TEXT DEFAULT NULL,
  `kode_resiko` TEXT DEFAULT NULL,
  `pemilik_resiko` TEXT DEFAULT NULL,
  `uraian_sebab` TEXT DEFAULT NULL,
  `sumber_sebab` TEXT DEFAULT NULL,
  `controllable` TINYINT(4) DEFAULT 1 COMMENT '0=Controllable, 1=Uncontrollable',
  `tipe` TINYINT(4) DEFAULT 1 COMMENT '0=Tujuan, 1=Sasaran',
  `uraian_dampak` TEXT DEFAULT NULL,
  `pihak_terkena` TEXT DEFAULT NULL,
  `skala_dampak` VARCHAR(255) DEFAULT 0,
  `skala_kemungkinan` VARCHAR(255) DEFAULT 0,
  `nilai_resiko` VARCHAR(255) DEFAULT NULL,
  `rencana_tindak_pengendalian` TEXT DEFAULT NULL,
  `id_jadwal` VARCHAR(512) DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `active` (`active`)
);

CREATE TABLE `data_tujuan_sasaran_manrisk_sesudah_pemda` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_sebelum` INT(11) DEFAULT NULL,
  `id_tujuan_sasaran` VARCHAR(512) DEFAULT NULL,
  `id_indikator` VARCHAR(512) DEFAULT NULL,
  `tujuan_sasaran_teks` TEXT DEFAULT NULL,
  `indikator_teks` TEXT DEFAULT NULL,
  `uraian_resiko` TEXT DEFAULT NULL,
  `kode_resiko` TEXT DEFAULT NULL,
  `pemilik_resiko` TEXT DEFAULT NULL,
  `uraian_sebab` TEXT DEFAULT NULL,
  `sumber_sebab` TEXT DEFAULT NULL,
  `controllable` TINYINT(4) DEFAULT 1 COMMENT '0=Controllable, 1=Uncontrollable',
  `tipe` TINYINT(4) DEFAULT 1 COMMENT '0=Tujuan, 1=Sasaran',
  `uraian_dampak` TEXT DEFAULT NULL,
  `pihak_terkena` TEXT DEFAULT NULL,
  `skala_dampak` VARCHAR(255) DEFAULT 0,
  `skala_kemungkinan` VARCHAR(255) DEFAULT 0,
  `nilai_resiko` VARCHAR(255) DEFAULT NULL,
  `rencana_tindak_pengendalian` TEXT DEFAULT NULL,
  `id_jadwal` VARCHAR(512) DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `active` (`active`)
);

CREATE TABLE `data_pokin_renstra` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_pokin` VARCHAR(255) DEFAULT NULL,
  `level` TINYINT(4) DEFAULT NULL,
  `label` TEXT DEFAULT NULL,
  `indikator` TEXT DEFAULT NULL,
  `id_unik` VARCHAR(255) DEFAULT NULL COMMENT 'jika tipe 6, menyimpan id_transformasi_cascading',
  `tipe` TINYINT(4) DEFAULT NULL COMMENT '1=tujuan, 2=sasaran, 3=program, 4=kegiatan, 5=sub kegiatan, 6=transformasi cascading apbd',
  `id_skpd` INT(11) DEFAULT NULL COMMENT 'jika tipe 6, wajib null biar tidak terselect by id_skpd',
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) DEFAULT NULL COMMENT 'jika tipe 6, wajib null biar tidak terselect by tahun_anggaran',
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_unik` (`id_unik`),
  KEY `active` (`active`)
);

CREATE TABLE `data_pelaksana_renstra` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_satker` VARCHAR(255) DEFAULT NULL,
  `nama_satker` TEXT DEFAULT NULL,
  `id_unik` VARCHAR(255) DEFAULT NULL,
  `tipe` INT(11) DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_unik` (`id_unik`),
  KEY `active` (`active`)
);

CREATE TABLE `data_opd_kecurangan_mcp` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_skpd` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_sasaran_tahapan_mcp` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `sasaran` TEXT DEFAULT NULL,
  `tahapan` TEXT DEFAULT NULL,
  `update_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `active` (`active`)
);

CREATE TABLE `data_resiko_kecurangan_mcp` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_skpd` INT(11) NOT NULL,
  `id_tahapan` INT(11) NOT NULL,
  `deskripsi_resiko` TEXT DEFAULT NULL,
  `pihak_terkait` TEXT DEFAULT NULL,
  `jenis_resiko` TEXT DEFAULT NULL,
  `pemilik_resiko` VARCHAR(255) DEFAULT NULL,
  `penyebab` TEXT DEFAULT NULL,
  `dampak` TEXT DEFAULT NULL,
  `skala_kemungkinan` VARCHAR(255) DEFAULT 0,
  `skala_dampak` VARCHAR(255) DEFAULT 0,
  `tindak_pengendalian` TEXT DEFAULT NULL,
  `target_waktu` TEXT DEFAULT NULL,
  `pelaksanaan_pengendalian` TEXT DEFAULT NULL,
  `bukti_pelaksanaan` TEXT DEFAULT NULL,
  `kendala` TEXT DEFAULT NULL,
  `opd_pemilik_resiko` TEXT DEFAULT NULL,
  `keterangan_pengisian` TEXT DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `id_tahapan` (`id_tahapan`),
  KEY `active` (`active`)
);

CREATE TABLE `data_rpjmd_renstra` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_program` VARCHAR(512) DEFAULT NULL,
  `program_prioritas` TEXT DEFAULT NULL,
  `sektor_unggulan` TEXT DEFAULT NULL,
  `isu_terkini` TEXT DEFAULT NULL,
  `id_skpd` INT(11) DEFAULT NULL,
  `id_jadwal` INT(11) DEFAULT NULL,
  `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP,
  `tahun_anggaran` YEAR(4) NOT NULL,
  `active` TINYINT(4) NOT NULL,
  PRIMARY KEY (id),
  KEY `tahun_anggaran` (`tahun_anggaran`),
  KEY `id_skpd` (`id_skpd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_transformasi_cascading` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `uraian_cascading` TEXT NOT NULL,
  `is_pelaksana` TINYINT(1) NOT NULL DEFAULT 0,
  `parent_id` INT(11) DEFAULT NULL,
  `level` INT(11) COMMENT '3 = Program, 4 = Kegiatan, 5 = Subkegiatan' NOT NULL,
  `id_skpd` INT(11) NOT NULL,
  `id_jadwal` INT(11) NOT NULL,
  `tahun_apbd` YEAR(4) DEFAULT NULL COMMENT 'jika berisi tahun_anggaran maka itu apbd',
  `sasaran_renstra` VARCHAR(128) DEFAULT NULL COMMENT 'jika berisi id_unik sasaran maka itu apbd',
  `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (id),
  KEY `id_jadwal` (`id_jadwal`),
  KEY `parent_id` (`parent_id`),
  KEY `id_skpd` (`id_skpd`),
  KEY `tahun_apbd` (`tahun_apbd`),
  KEY `active` (`active`)
);

CREATE TABLE `data_progkeg_transformasi_cascading` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_uraian_cascading` INT(11) NOT NULL,
  `id_unik` VARCHAR(50) NOT NULL COMMENT 'jika apbd maka berisi kode_sbl',
  `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (id),
  KEY `id_uraian_cascading` (`id_uraian_cascading`),
  KEY `id_unik` (`id_unik`),
  KEY `active` (`active`)
);

CREATE TABLE `data_indikator_transformasi_cascading` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `id_uraian_cascading` INT(11) DEFAULT NULL,
  `indikator` TEXT DEFAULT NULL,
  `satuan` VARCHAR(512) DEFAULT NULL,
  `parent_indikator` INT(11) DEFAULT NULL,
  `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `active` TINYINT(4) NOT NULL DEFAULT 1,
  PRIMARY KEY (id),
  KEY `id_uraian_cascading` (`id_uraian_cascading`),
  KEY `active` (`active`)
);