42 lines
807 B
PHP
42 lines
807 B
PHP
<?php namespace Romanah\Gokbakja\Models;
|
|
|
|
use Model;
|
|
|
|
/**
|
|
* Model
|
|
*/
|
|
class Drobika extends Model
|
|
{
|
|
use \October\Rain\Database\Traits\Validation;
|
|
|
|
use \October\Rain\Database\Traits\SoftDelete;
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
public $belongsTo = [
|
|
'user' => [
|
|
'RainLab\User\Models\User',
|
|
'key' => 'user_id'
|
|
],
|
|
'product' => [
|
|
'Romanah\Gokbakja\Models\Product',
|
|
'key' => 'product_id'
|
|
],
|
|
'shift' => [
|
|
'Romanah\Gokbakja\Models\Shift',
|
|
'key' => 'shift_id'
|
|
],
|
|
];
|
|
|
|
/**
|
|
* @var string The database table used by the model.
|
|
*/
|
|
public $table = 'romanah_gokbakja_drobika';
|
|
|
|
/**
|
|
* @var array Validation rules
|
|
*/
|
|
public $rules = [
|
|
];
|
|
}
|