<?php

namespace App\Models\Char;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CharFellow extends Model
{
    use HasFactory;

    protected $connection = 'Char';
    protected $table = 'Table_CharFellow';
    protected $primaryKey = 'DBKey';

    public $timestamps = false;
    public $incrementing = false;

    protected $fillable = [
        'Deleted',
        'RecID',
        'Name',
        'Sealed',
        'byLevel',
        'Exp',
        'Grade',
        'GrowthStage',
        'Hp',
        'Mp',
        'Sp',
        'Ep',
        'Rp',
        'Fire',
        'Ice',
        'Light',
        'Dark',
        'SoulBandPoint',
        'RemainCoolTimeMsec',
        'byGeneratedLevel',
        'byReinforceLevel',
        'Style',
        'AdventureCoolTime',
        'Fap',
        'OverriseLv',
        'OverriseExp',
    ];

    protected $casts = [
        'DBKey' => 'integer',
        'Owner' => 'integer',
        'Deleted' => 'integer',
        'Sealed' => 'boolean',
        'byLevel' => 'integer',
        'Exp' => 'float',
        'Hp' => 'integer',
        'Mp' => 'integer',
        'Sp' => 'integer',
        'Ep' => 'integer',
        'Rp' => 'integer',
        'Fire' => 'integer',
        'Ice' => 'integer',
        'Light' => 'integer',
        'Dark' => 'integer',
        'SoulBandPoint' => 'integer',
        'RemainCoolTimeMsec' => 'integer',
        'byGeneratedLevel' => 'integer',
        'byReinforceLevel' => 'integer',
        'AdventureCoolTime' => 'datetime',
        'Fap' => 'integer',
        'OverriseLv' => 'integer',
        'OverriseExp' => 'integer',
    ];
}
