<?php

namespace App\Models;

use App\Scopes\CompanyScope;

class Currency extends Model
{
    protected $table = 'currencies';

    protected $default = ['name', 'symbol', 'code', 'position', 'thousand_separator', 'decimal_separator', 'decimal_digits', 'hide_empty_decimals', 'flag_code'];

    protected $guarded = ['id', 'created_at', 'updated_at'];

    protected $hidden = ['id'];

    protected $filterable = ['name'];

    protected $casts = [
        'is_deletable' => 'integer',
        'decimal_digits' => 'integer',
        'hide_empty_decimals' => 'boolean',
    ];
}
