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

46 lines
959 B
PHP
Raw Normal View History

2023-10-02 22:15:33 +00:00
<?php namespace Romanah\Gokbakja\Models;
use Model;
/**
* Model
*/
class SewerProduction extends Model
{
use \October\Rain\Database\Traits\Validation;
use \October\Rain\Database\Traits\SoftDelete;
protected $dates = ['deleted_at'];
2023-10-20 21:54:07 +00:00
public $hasMany = [
'pivot_sewer' => [
'Romanah\Gokbakja\Models\PivotSewer',
2023-10-29 19:54:41 +00:00
'key' => 'sewer_production_id',
'softDelete' => true
2023-10-20 21:54:07 +00:00
],
];
2023-10-02 22:15:33 +00:00
public $belongsTo = [
'employee' => [
'Romanah\Gokbakja\Models\Employee',
'key' => 'employee_id'
],
2023-10-20 21:54:07 +00:00
'machin_production' => [
'Romanah\Gokbakja\Models\ProductionMachine',
'key' => 'machine_production_id'
],
2023-10-02 22:15:33 +00:00
];
/**
* @var string The database table used by the model.
*/
public $table = 'romanah_gokbakja_sewer_production';
/**
* @var array Validation rules
*/
public $rules = [
];
}