g_sto/plugins/romanah/gokbakja/models/OrderItem.php

51 lines
1.0 KiB
PHP
Raw Normal View History

2023-10-02 22:15:33 +00:00
<?php namespace Romanah\Gokbakja\Models;
use Model;
/**
* Model
*/
class OrderItem extends Model
{
use \October\Rain\Database\Traits\Validation;
use \October\Rain\Database\Traits\SoftDelete;
protected $dates = ['deleted_at'];
public $belongsTo = [
'order' => [
'Romanah\Gokbakja\Models\Order',
'key' => 'order_id'
],
'product' => [
'Romanah\Gokbakja\Models\Product',
'key' => 'product_id'
2023-10-06 20:47:05 +00:00
],
'size' => [
'Romanah\Gokbakja\Models\BagSize',
'key' => 'size_id'
],
'type' => [
'Romanah\Gokbakja\Models\BagType',
'key' => 'type_id'
],
2023-10-23 22:37:45 +00:00
'color' => [
'Romanah\Gokbakja\Models\BagColor',
'key' => 'color_id'
],
2023-10-02 22:15:33 +00:00
];
/**
* @var string The database table used by the model.
*/
public $table = 'romanah_gokbakja_order_item';
/**
* @var array Validation rules
*/
public $rules = [
];
}