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

46 lines
974 B
PHP

<?php namespace Romanah\Gokbakja\Models;
use Model;
/**
* Model
*/
class ProductionCalculate extends Model
{
use \October\Rain\Database\Traits\Validation;
use \October\Rain\Database\Traits\SoftDelete;
protected $dates = ['deleted_at'];
public $belongsTo = [
'production' => [
'Romanah\Gokbakja\Models\Production',
'key' => 'production_id'
],
'product' => [
'Romanah\Gokbakja\Models\Product',
'key' => 'product_id'
],
'excruiter' => [
'Romanah\Gokbakja\Models\Excruiter',
'key' => 'excruiter_id'
],
'shift' => [
'Romanah\Gokbakja\Models\Shift',
'key' => 'shift_id'
]
];
/**
* @var string The database table used by the model.
*/
public $table = 'romanah_gokbakja_production_calculate';
/**
* @var array Validation rules
*/
public $rules = [
];
}