Berkarar/plugins/tps/shops/models/Shop.php

37 lines
700 B
PHP
Raw Normal View History

2022-08-28 19:50:26 +00:00
<?php namespace Tps\Shops\Models;
use Model;
/**
* Model
*/
class Shop extends Model
{
use \October\Rain\Database\Traits\Validation;
public $implement = ['RainLab.Translate.Behaviors.TranslatableModel'];
/**
* @var string The database table used by the model.
*/
public $table = 'tps_shops_';
/**
* @var array Validation rules
*/
public $rules = [
];
public $attachOne = [
'badge' => 'System\Models\File',
'image' => 'System\Models\File',
];
public $belongsTo = [
'category' => [
'Tps\Shops\Models\Category'
],
];
public $translatable = ['name','description','open_time'];
}