<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Branches extends Model
{
    public $table = 'branches';

    public $fillable = [
        'name',
        'phone',
        'email',
        'address',
        'image_name',
        'detail',
        'status',
        'currency_symbol',
        'company_id'
    ];

    protected $casts = [
        'name' => 'string',
        'phone' => 'string',
        'email' => 'string',
        'address' => 'string',
        'image_name' => 'string',
        'detail' => 'string',
        'status' => 'boolean'
    ];

    public static array $rules = [
        'name' => 'nullable|string|max:255',
        'phone' => 'nullable|string|max:255',
        'email' => 'nullable|string|max:255',
        'address' => 'nullable|string|max:255',
        'detail' => 'nullable|string|max:65535',
        'status' => 'nullable|boolean',
        'company_id' => 'nullable',
        'created_at' => 'nullable',
        'updated_at' => 'nullable'
    ];


}
