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

42 lines
801 B
PHP
Executable File

<?php namespace Tps\Shops\Models;
use Model;
/**
* Model
*/
class Sale 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_shops_sales';
/**
* @var array Validation rules
*/
public $rules = [
];
public $attachMany = [
'images' => 'Tps\Shops\Classes\Attachment',
];
public $belongsTo = [
'shop' => [
'Tps\Shops\Models\Shop'
],
];
public $translatable = ['name'];
}