42 lines
869 B
PHP
42 lines
869 B
PHP
|
|
<?php namespace Tps\Shops\Models;
|
||
|
|
|
||
|
|
use Illuminate\Support\Facades\App;
|
||
|
|
use Illuminate\Support\Facades\Log;
|
||
|
|
use Model;
|
||
|
|
use October\Rain\Exception\ApplicationException;
|
||
|
|
use October\Rain\Support\Facades\Input;
|
||
|
|
use ZipArchive;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Model
|
||
|
|
*/
|
||
|
|
class Report 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_reports';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @var array Validation rules
|
||
|
|
*/
|
||
|
|
public $rules = [];
|
||
|
|
|
||
|
|
public $attachOne = [
|
||
|
|
'file' => 'System\Models\File',
|
||
|
|
];
|
||
|
|
|
||
|
|
public $translatable = ['name'];
|
||
|
|
|
||
|
|
}
|