gurl_o/plugins/tps/birzha/models/OrderItems.php

33 lines
652 B
PHP
Raw Normal View History

2023-08-10 05:25:14 +00:00
<?php namespace TPS\Birzha\Models;
use Model;
/**
* Model
*/
class OrderItems extends Model
{
use \October\Rain\Database\Traits\Validation;
use \October\Rain\Database\Traits\SoftDelete;
protected $dates = ['deleted_at'];
/**
* @var string The database table used by the model.
*/
public $table = 'tps_birzha_order_items';
public $belongsTo = [
'order' => ['TPS\Birzha\Models\Orders', 'table' => 'tps_birzha_orders'],
2023-09-18 06:25:01 +00:00
'product' => ['TPS\Birzha\Models\Product', 'table' => 'tps_birzha_products'],
2023-08-10 05:25:14 +00:00
];
/**
* @var array Validation rules
*/
public $rules = [
];
}