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

38 lines
720 B
PHP
Raw Normal View History

2023-09-14 20:16:27 +00:00
<?php namespace Romanah\Gokbakja\Models;
use Model;
/**
* Model
*/
class BagSize extends Model
{
use \October\Rain\Database\Traits\Validation;
2023-09-16 06:18:02 +00:00
2023-09-14 20:16:27 +00:00
use \October\Rain\Database\Traits\SoftDelete;
protected $dates = ['deleted_at'];
2023-09-16 06:18:02 +00:00
public $hasMany = [
'machine' => [
'Romanah\Gokbakja\Models\ProductionMachine',
'key' => 'size_id'
2023-10-08 23:04:21 +00:00
],
'order_items' => [
'Romanah\Gokbakja\Models\OrderItem',
'key' => 'size_id'
],
2023-09-16 06:18:02 +00:00
];
2023-09-14 20:16:27 +00:00
/**
* @var string The database table used by the model.
*/
public $table = 'romanah_gokbakja_bag_size';
/**
* @var array Validation rules
*/
public $rules = [
];
}