<?php namespace Tps\Movies\Models;

use Model;

/**
 * Model
 */
class Movie extends Model
{
    use \October\Rain\Database\Traits\Validation;
    
    public $implement = ['RainLab.Translate.Behaviors.TranslatableModel'];
    /*
     * 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 = 'tps_movies_';

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

    public $attachOne = [
        'thumb_image' => 'Tps\Shops\Classes\Attachment',
        'image' => 'Tps\Shops\Classes\Attachment',
    ];
    
    public $translatable = ['name', 'description', 'genras', 'duration', 'languages', 'acters', 'directors', 'country', 'sessions'];
}
