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

35 lines
716 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'];
2023-10-01 06:27:37 +00:00
2023-08-10 05:25:14 +00:00
/**
* @var string The database table used by the model.
*/
public $table = 'tps_birzha_order_items';
public $belongsTo = [
2023-10-01 06:27:37 +00:00
'order' => ['TPS\Birzha\Models\Orders', 'table' => 'tps_birzha_orders', 'key' => 'order_id'],
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
];
2023-10-01 06:27:37 +00:00
public $jsonable = ['items'];
2023-08-10 05:25:14 +00:00
/**
* @var array Validation rules
*/
public $rules = [
];
}