<?php

namespace App\Models;

use App\Traits\Blameable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class CorporateEmployee extends Model
{
    use HasFactory, SoftDeletes, Blameable;

    protected $fillable = [
        'corporate_id',
        'member_id',
        'branch_code',
        'division_id',
        'nik',
        'status'
    ];

    public function division()
    {
        return $this->belongsTo(CorporateDivision::class, 'division_id');
    }
}
