<?php namespace Tps\About\Models;

use Model;
use October\Rain\Database\Traits\Sortable;
use October\Rain\Database\Traits\Validation;

/**
 * Model
 */
class About extends Model
{
    use Validation;
    use Sortable;

    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_about_';

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

    public $attachOne = [
        'image' => 'Tps\Shops\Classes\Attachment',
        'image2' => 'Tps\Shops\Classes\Attachment',
    ];

    public $translatable = ['name', 'description'];
}
