<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class HouseType extends Model
{
    use SoftDeletes;

    protected $table = 'house_type';
    protected $primaryKey = 'HTY_Id';

    public $timestamps = true;

    const CREATED_AT = 'created_at';
    const UPDATED_AT = 'updated_at';
    const DELETED_AT = 'deleted_at';

    protected $fillable = [
        'House_Code',
        'HOUSTYPE',
        'Flat_Rate',
        'Std_Rate',
        'Eco_Rate',
        'Mkt_Rate',
        'Muni_Tax'
    ];

    protected $casts = [
        'HTY_Id' => 'integer',
        'House_Code' => 'integer',
        'Flat_Rate' => 'integer',
        'Std_Rate' => 'integer',
        'Eco_Rate' => 'integer',
        'Mkt_Rate' => 'integer',
        'Muni_Tax' => 'integer',
        'created_at' => 'datetime',
        'updated_at' => 'datetime',
        'deleted_at' => 'datetime'
    ];

    protected $hidden = [
        'deleted_at'
    ];
}
