nothing
This commit is contained in:
41
app/Models/MisBed.php
Normal file
41
app/Models/MisBed.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MisBed extends Model
|
||||
{
|
||||
protected $table = 'stt_Bed';
|
||||
protected $primaryKey = 'BedID';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'DateWorkB',
|
||||
'DateWorkE',
|
||||
'Flag',
|
||||
'Num',
|
||||
'rf_BedAssigmentID',
|
||||
'rf_BedProfileID',
|
||||
'rf_BedStatusID',
|
||||
'rf_BedTypeID',
|
||||
'rf_WardID',
|
||||
'UGUID',
|
||||
'x_Edition',
|
||||
'x_Status',
|
||||
'ShiftNum',
|
||||
'rf_PreviousBedID'
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'DateWorkB' => 'datetime',
|
||||
'DateWorkE' => 'datetime',
|
||||
'UGUID' => 'string',
|
||||
'x_Status' => 'integer'
|
||||
];
|
||||
|
||||
public function bedActions()
|
||||
{
|
||||
return $this->hasMany(MisBedAction::class, 'rf_BedID', 'BedID');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user