Skip to content

Commit

Permalink
Merge pull request #44 from achmadhadikurnia/main
Browse files Browse the repository at this point in the history
refactor: improvement database
  • Loading branch information
achmadhadikurnia authored Mar 20, 2024
2 parents e34bffe + 8c28fe3 commit 88900de
Show file tree
Hide file tree
Showing 32 changed files with 262 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
public function up(): void
{
Schema::create('siasn_referensi_agama', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->unsignedTinyInteger('id')->primary()->autoIncrement(false);
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public function up(): void
{
Schema::create('siasn_referensi_alasan_hukuman_disiplin', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->text('nama')->nullable();
$table->string('keterangan')->nullable();
$table->text('nama');
$table->string('keterangan', 16);
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function up(): void
{
Schema::create('siasn_referensi_asn_jenis_jabatan', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
public function up(): void
{
Schema::create('siasn_referensi_asn_jenjang_jabatan', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->string('asnJenisJabatanId', 42)->nullable();
$table->string('level')->nullable();
$table->string('id', 2)->primary();
$table->string('nama');
$table->string('asnJenisJabatanId', 2);
$table->unsignedTinyInteger('level', 1)->autoIncrement(false);
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
public function up(): void
{
Schema::create('siasn_referensi_eselon', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->string('terendah_id')->nullable();
$table->string('tertinggi_id')->nullable();
$table->string('eselon_level_id')->nullable();
$table->string('asn_jenjang_jabatan_id')->nullable();
$table->string('jabatan_asn')->nullable();
$table->string('level_kompetensi_jabatan')->nullable();
$table->string('id', 2)->primary();
$table->string('nama');
$table->unsignedTinyInteger('terendah_id')->autoIncrement(false);
$table->unsignedTinyInteger('tertinggi_id')->autoIncrement(false);
$table->unsignedTinyInteger('eselon_level_id', 1)->autoIncrement(false);
$table->string('asn_jenjang_jabatan_id', 2);
$table->string('jabatan_asn');
$table->string('level_kompetensi_jabatan');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
public function up(): void
{
Schema::create('siasn_referensi_golongan', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->string('namaPangkat')->nullable();
$table->string('fungKredututama')->nullable();
$table->string('fungKreditTambahan')->nullable();
$table->string('fungKreditTotal')->nullable();
$table->unsignedTinyInteger('id', 2)->primary()->autoIncrement(false);
$table->string('nama');
$table->string('namaPangkat');
$table->unsignedSmallInteger('fungKredututama')->autoIncrement(false);
$table->unsignedSmallInteger('fungKreditTambahan')->autoIncrement(false);
$table->unsignedSmallInteger('fungKreditTotal')->autoIncrement(false);
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ public function up(): void
{
Schema::create('siasn_referensi_instansi', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('lokasiId', 42)->nullable();
$table->string('nama')->nullable();
$table->string('jenis')->nullable();
$table->string('cepatKode')->nullable();
$table->string('prosesBerkasDipusat')->nullable();
$table->string('mgrCepatKode')->nullable();
$table->string('status')->nullable();
$table->string('cepatKode5')->nullable();
$table->string('cepatKode5Lama')->nullable();
$table->string('namaBaru')->nullable();
$table->string('namaJabatan')->nullable();
$table->string('jenisInstansiId', 42)->nullable();
$table->string('lokasiId', 42);
$table->string('nama');
$table->string('jenis', 1);
$table->string('cepatKode', 10);
$table->string('prosesBerkasDipusat');
$table->string('mgrCepatKode');
$table->string('status', 1);
$table->string('cepatKode5', 10);
$table->string('cepatKode5Lama', 10);
$table->string('namaBaru');
$table->string('namaJabatan');
$table->string('jenisInstansiId', 8);
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,30 @@ public function up(): void
{
Schema::create('siasn_referensi_jabatan_fungsional', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('min_gol_id')->nullable();
$table->string('max_gol_id')->nullable();
$table->string('nama')->nullable();
$table->string('bup_usia')->nullable();
$table->string('tun_jabatan')->nullable();
$table->string('bobot')->nullable();
$table->string('kel_jabatan_id')->nullable();
$table->string('cepat_kode')->nullable();
$table->string('mgr_cepat_kode')->nullable();
$table->string('jenis')->nullable();
$table->string('cepat_kode_new')->nullable();
$table->string('status')->nullable();
$table->string('jml_formasi')->nullable();
$table->string('nama_asli')->nullable();
$table->string('jenjang')->nullable();
$table->string('jf_ex_medis')->nullable();
$table->string('is_syarat_jabatan')->nullable();
$table->string('jenis_jabatan_id')->nullable();
$table->string('jenis_jabatan_nama')->nullable();
$table->string('kode_jenjang_jabatan')->nullable();
$table->string('asn_jenjang_jabatan')->nullable();
$table->string('level')->nullable();
$table->string('rumpun_jabatan_id')->nullable();
$table->string('rumpun_jabatan_nama')->nullable();
$table->unsignedTinyInteger('min_gol_id')->autoIncrement(false);
$table->unsignedTinyInteger('max_gol_id')->autoIncrement(false);
$table->string('nama');
$table->unsignedTinyInteger('bup_usia', 2)->autoIncrement(false);
$table->unsignedInteger('tun_jabatan')->autoIncrement(false);
$table->unsignedSmallInteger('bobot')->autoIncrement(false);
$table->string('kel_jabatan_id');
$table->string('cepat_kode', 10);
$table->string('mgr_cepat_kode', 10);
$table->string('jenis', 1)->autoIncrement(false);
$table->string('cepat_kode_new', 10);
$table->string('status', 1);
$table->unsignedInteger('jml_formasi')->autoIncrement(false);
$table->string('nama_asli');
$table->string('jenjang', 2);
$table->string('jf_ex_medis', 1);
$table->string('is_syarat_jabatan', 1);
$table->string('jenis_jabatan_id');
$table->string('jenis_jabatan_nama');
$table->string('kode_jenjang_jabatan');
$table->string('asn_jenjang_jabatan');
$table->string('level');
$table->string('rumpun_jabatan_id');
$table->string('rumpun_jabatan_nama');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ public function up(): void
{
Schema::create('siasn_referensi_jabatan_fungsional_umum', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->string('cepat_kode')->nullable();
$table->string('wajib_ganti_tertentu')->nullable();
$table->string('mgr_cepat_kode')->nullable();
$table->string('nama_asli')->nullable();
$table->string('kode_menpan')->nullable();
$table->string('instansi_id')->nullable();
$table->string('status')->nullable();
$table->string('asal_peraturan_id')->nullable();
$table->string('jfu_urusan_pemerintahan')->nullable();
$table->string('jenis_jabatan_umum_id')->nullable();
$table->string('jenis_jabatan_umum_nama')->nullable();
$table->string('asn_jenjang_jabatan_id')->nullable();
$table->string('asn_jenjang_jabatan_nama')->nullable();
$table->string('level')->nullable();
$table->string('ref_urusan_pemerintahan_id')->nullable();
$table->string('ref_urusan_pemerintahan_nama')->nullable();
$table->string('nama');
$table->string('cepat_kode', 10);
$table->string('wajib_ganti_tertentu', 1);
$table->string('mgr_cepat_kode', 10);
$table->string('nama_asli');
$table->string('kode_menpan', 16);
$table->string('instansi_id', 42);
$table->string('status', 1);
$table->boolean('asal_peraturan_id');
$table->unsignedInteger('jfu_urusan_pemerintahan')->autoIncrement(false);
$table->unsignedTinyInteger('jenis_jabatan_umum_id');
$table->string('jenis_jabatan_umum_nama');
$table->string('asn_jenjang_jabatan_id');
$table->string('asn_jenjang_jabatan_nama');
$table->string('level');
$table->string('ref_urusan_pemerintahan_id', 42);
$table->string('ref_urusan_pemerintahan_nama');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
public function up(): void
{
Schema::create('siasn_referensi_jenis_anak', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
public function up(): void
{
Schema::create('siasn_referensi_jenis_hukuman', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->string('jenisTingkatHukumanId', 42)->nullable();
$table->string('id', 2)->primary();
$table->string('nama');
$table->string('jenisTingkatHukumanId', 1);
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
public function up(): void
{
Schema::create('siasn_referensi_jenis_jabatan', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
public function up(): void
{
Schema::create('siasn_referensi_kanreg', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('regKota')->nullable();
$table->string('nama')->nullable();
$table->string('pengenal')->nullable();
$table->string('satuanKerjaId', 42)->nullable();
$table->string('tanggalJorge')->nullable();
$table->string('id', 2)->primary();
$table->string('regKota');
$table->string('nama');
$table->string('pengenal', 1);
$table->string('satuanKerjaId', 42);
$table->string('tanggalJorge');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
public function up(): void
{
Schema::create('siasn_referensi_kedudukan_hukum', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->string('aturan')->nullable();
$table->string('kode')->nullable();
$table->string('id', 2)->primary();
$table->string('nama');
$table->string('aturan');
$table->string('kode', 3);
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ public function up(): void
{
Schema::create('siasn_referensi_kel_jabatan', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('rumpunJabatanId', 42)->nullable();
$table->string('nama')->nullable();
$table->string('lingkup')->nullable();
$table->text('tugasPokok')->nullable();
$table->text('pejabatPak')->nullable();
$table->string('pembinaId', 42)->nullable();
$table->string('jenisJabatanUmumId', 42)->nullable();
$table->string('status')->nullable();
$table->string('kodeRumpun')->nullable();
$table->string('kodeKelompok')->nullable();
$table->string('jenisJabatanUmumBaruId', 42)->nullable();
$table->string('kesehatanNonmedis')->nullable();
$table->string('refUrusanPemerintahanId', 42)->nullable();
$table->string('rumpunJabatanId', 42);
$table->string('nama');
$table->string('lingkup', 1);
$table->text('tugasPokok');
$table->text('pejabatPak');
$table->string('pembinaId', 42);
$table->unsignedTinyInteger('jenisJabatanUmumId');
$table->string('status', 1);
$table->string('kodeRumpun', 4);
$table->string('kodeKelompok', 4);
$table->string('jenisJabatanUmumBaruId', 1);
$table->boolean('kesehatanNonmedis');
$table->string('refUrusanPemerintahanId');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
public function up(): void
{
Schema::create('siasn_referensi_latihan_struktural', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('nama')->nullable();
$table->string('eselon_level')->nullable();
$table->string('ncsistime')->nullable();
$table->string('struktural_pns')->nullable();
$table->unsignedTinyInteger('id')->primary();
$table->string('nama');
$table->string('eselon_level', 1);
$table->string('ncsistime');
$table->string('struktural_pns', 1);
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ public function up(): void
{
Schema::create('siasn_referensi_lokasi', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('kanregId', 42)->nullable();
$table->string('lokasiId', 42)->nullable();
$table->string('nama')->nullable();
$table->string('cepatKode')->nullable();
$table->string('jenis')->nullable();
$table->string('jenisKabupaten')->nullable();
$table->string('removalDate')->nullable();
$table->string('jenisDesa')->nullable();
$table->string('tanggalJorge')->nullable();
$table->string('mgrCepatKode')->nullable();
$table->string('ibukota')->nullable();
$table->string('kanregId', 2);
$table->string('lokasiId', 42);
$table->string('nama');
$table->string('cepatKode', 10);
$table->string('jenis', 2);
$table->string('jenisKabupaten', 4);
$table->string('removalDate');
$table->string('jenisDesa');
$table->string('tanggalJorge');
$table->string('mgrCepatKode', 10);
$table->string('ibukota');
$table->timestamps();
$table->softDeletes();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ public function up(): void
{
Schema::create('siasn_referensi_pendidikan', function (Blueprint $table) {
$table->string('id', 42)->primary();
$table->string('tingkat_pendidikan_id')->nullable();
$table->string('nama')->nullable();
$table->string('cepat_kode')->nullable();
$table->string('mgr_cepat_kode')->nullable();
$table->string('nama_asli')->nullable();
$table->string('status')->nullable();
$table->string('subrumpun_prog_id')->nullable();
$table->string('cepat_kode_induk')->nullable();
$table->string('subrumpun_prog_kode')->nullable();
$table->unsignedTinyInteger('tingkat_pendidikan_id', 2)->autoIncrement(false);
$table->string('nama');
$table->string('cepat_kode', 10);
$table->string('mgr_cepat_kode', 10);
$table->string('nama_asli');
$table->boolean('status');
$table->string('subrumpun_prog_id', 8);
$table->string('cepat_kode_induk', 10);
$table->string('subrumpun_prog_kode', 8);
$table->timestamps();
$table->softDeletes();
});
Expand Down
Loading

0 comments on commit 88900de

Please sign in to comment.