First Commit
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TxSkppHst extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'tx_skpp_hst';
|
||||
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",
|
||||
"tx_skpp_id"
|
||||
];
|
||||
|
||||
public function mst_keluarga() {
|
||||
return $this->hasMany('App\Models\TxKeluarga','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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user