<?php

namespace App\Modules\Bookings;

use App\Models\ValidationModel;

class Manufacturer extends ValidationModel
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'manufacturers';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['name'];

    /**
     * Array of validation rules.
     *
     * @var  array
     */
    protected static $rules = [
        'name'   => 'required',
    ];

    /**
     * Array of custom validation messages.
     *
     * @var  array
     */
    protected static $messages = [
        'name.required' => 'The manufacturer field is required.',
    ];
}
