109 lines
2.4 KiB
PHP
109 lines
2.4 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TxSkpp extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $table = 'tx_skpp';
|
|
protected $fillable = [
|
|
"id_pen",
|
|
"nama",
|
|
"nip",
|
|
"nrk",
|
|
"golongan",
|
|
"status_pegawai",
|
|
"tugas",
|
|
"dinas",
|
|
"tgl_akhir",
|
|
"akhir",
|
|
"id_kep",
|
|
"no_pen",
|
|
"tgl_pen",
|
|
"id_hak",
|
|
"tgl_tmt",
|
|
"ga_pok",
|
|
"t_issum",
|
|
"t_anak",
|
|
"t_lain",
|
|
"t_jab",
|
|
"t_beras",
|
|
"tpph",
|
|
"bulat",
|
|
"p_beras",
|
|
"iuran",
|
|
"ppph",
|
|
"lain_2",
|
|
"potong",
|
|
"gaber",
|
|
"u_gaji1",
|
|
"u_gaji2",
|
|
"jml_u_gaji",
|
|
"u_beras1",
|
|
"u_beras2",
|
|
"jml_u_beras",
|
|
"id_kan",
|
|
"kon_peg",
|
|
"status_id",
|
|
"tgl_cetak",
|
|
"tgl_peg",
|
|
"keterangan",
|
|
"nama_kantor1",
|
|
"nama_kantor2",
|
|
"wilayah",
|
|
"no_skpp",
|
|
"id_unit",
|
|
"f_revisi",
|
|
"revisi_remarks",
|
|
"id_kpkd",
|
|
"created_by",
|
|
"updated_by",
|
|
"revised_at",
|
|
"revised_by",
|
|
"total_utang",
|
|
"total_utang_angsur",
|
|
"total_utang_sisa",
|
|
"f_deleted",
|
|
"deleted_at",
|
|
"deleted_by"
|
|
];
|
|
|
|
public function mst_keluarga() {
|
|
return $this->hasMany('App\Models\TxKeluarga','nip','nip');
|
|
}
|
|
|
|
public function mst_utang() {
|
|
return $this->hasMany('App\Models\TxSkppUtang','nip','nip');
|
|
}
|
|
|
|
public function mst_golongan() {
|
|
return $this->belongsTo('App\Models\MstGolongan','golongan','id');
|
|
}
|
|
|
|
public function mst_keputusan() {
|
|
return $this->belongsTo('App\Models\MstKeputusan','id_kep','id');
|
|
}
|
|
|
|
public function mst_hak() {
|
|
return $this->belongsTo('App\Models\MstHak','id_hak', 'id');
|
|
}
|
|
|
|
public function mst_kantor() {
|
|
return $this->belongsTo('App\Models\MstKantor','id_kan','id');
|
|
}
|
|
|
|
public function mst_kpkd() {
|
|
return $this->belongsTo('App\Models\MstKpkd','id_kpkd','id');
|
|
}
|
|
|
|
public function user() {
|
|
return $this->belongsTo('App\Models\User','created_by','id');
|
|
}
|
|
|
|
public function user_revisi() {
|
|
return $this->belongsTo('App\Models\User','revised_by','id');
|
|
}
|
|
} |