<?php namespace Admin\Videos\Models;

use Model;

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

    /*
     * Disable timestamps by default.
     * Remove this line if timestamps are defined in the database table.
     */
    public $timestamps = false;


    /**
     * @var string The database table used by the model.
     */
    public $table = 'admin_videos_';

    /**
     * @var array Validation rules
     */
    public $rules = [
    ];
    
    public $implement = ['RainLab.Translate.Behaviors.TranslatableModel'];

    public $translatable = ['title'];

    public $attachMany = [
        'video' => 'Admin\Videos\Classes\Attachment',
        'image' => 'Admin\Videos\Classes\Attachment',
    ];

}
