<?php namespace Romanah\Gokbakja\Models;

use Model;

/**
 * Model
 */
class BagColor extends Model
{
    use \October\Rain\Database\Traits\Validation;

    use \October\Rain\Database\Traits\SoftDelete;

    protected $dates = ['deleted_at'];


    public $hasMany = [
        'machine_production' => [
            'Romanah\Gokbakja\Models\ProductionMachine',
            'key' => 'color_id'
        ]
    ];
    /**
     * @var string The database table used by the model.
     */
    public $table = 'romanah_gokbakja_bag_color';

    /**
     * @var array Validation rules
     */
    public $rules = [
    ];
}
