2024-04-05 12:41:28 +00:00
|
|
|
<?php namespace Tps\Shops\Models;
|
|
|
|
|
|
|
|
|
|
use Model;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Model
|
|
|
|
|
*/
|
|
|
|
|
class RentalsAndSales extends Model
|
|
|
|
|
{
|
|
|
|
|
use \October\Rain\Database\Traits\Validation;
|
|
|
|
|
|
2024-04-09 03:56:56 +00:00
|
|
|
public $implement = ['RainLab.Translate.Behaviors.TranslatableModel'];
|
2024-04-05 12:41:28 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var string The database table used by the model.
|
|
|
|
|
*/
|
|
|
|
|
public $table = 'tps_shops_rentals_and_sales';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var array Validation rules
|
|
|
|
|
*/
|
|
|
|
|
public $rules = [
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public $attachMany = [
|
|
|
|
|
'images' => 'Tps\Shops\Classes\Attachment',
|
|
|
|
|
];
|
2024-04-09 03:56:56 +00:00
|
|
|
|
|
|
|
|
public $translatable = ['name', 'sector','description'];
|
2024-04-05 12:41:28 +00:00
|
|
|
}
|
2024-04-09 03:56:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|