<?php

namespace App\Models\Char;

use Illuminate\Database\Eloquent\Model;
use App\Casts\BinaryTextCast;

class CharMail extends Model
{
    protected $connection = 'Char';
    protected $table = 'Table_CharMail';
    protected $primaryKey = 'MailDBKey';
    protected $dates = ['CreateDate', 'ReadDate'];
    protected $fillable = [
        'RecverDBKey',
        'Slot',
        'Deleted',
        'MailDBKey',
        'SentMailDBKey',
        'SenderDBKeyAccount',
        'SenderDBKey',
        'SendName',
        'RecvName',
        'bRead',
        'Title',
        'MailType',
        'CreateDate',
        'ReadDate',
        'Money',
        'AlreadyMoney',
        'Letter',
        'ItemCount',
        'ItemSlot0',
        'ItemSlot1',
        'ItemSlot2',
        'ItemSlot3',
        'ItemSlot4',
        'AlreadyItem0',
        'AlreadyItem1',
        'AlreadyItem2',
        'AlreadyItem3',
        'AlreadyItem4',
        'AlreadyItem5',
        'AlreadyItem6',
        'AlreadyItem7',
        'AlreadyItem8',
        'AlreadyItem9',
        'Confirm',
        'binLetter',
        'MailSerial',
        'binTitle',
    ];

    public $timestamps = false;

    protected $casts = [
        'binTitle' => BinaryTextCast::class,
        'binLetter' => BinaryTextCast::class,
    ];
}
