38 lines
688 B
PHP
38 lines
688 B
PHP
|
|
<?php namespace Tps\Shops\Models;
|
||
|
|
|
||
|
|
use Model;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Model
|
||
|
|
*/
|
||
|
|
class ReportDetail extends Model
|
||
|
|
{
|
||
|
|
use \October\Rain\Database\Traits\Validation;
|
||
|
|
|
||
|
|
/*
|
||
|
|
* 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_report_details';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @var array Validation rules
|
||
|
|
*/
|
||
|
|
public $rules = [];
|
||
|
|
|
||
|
|
public $belongsTo = [
|
||
|
|
'report' => [
|
||
|
|
'Tps\Shops\Models\Report'
|
||
|
|
],
|
||
|
|
'shop' => [
|
||
|
|
'RainLab\User\Models\Shop'
|
||
|
|
],
|
||
|
|
];
|
||
|
|
}
|