forked from admin/services_core
sample about material
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MaterialMovement extends Model
|
||||
{
|
||||
protected $table = 'material_movements';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'barcode_id',
|
||||
'user_id',
|
||||
'from_user_id',
|
||||
'to_user_id',
|
||||
'ticket_id',
|
||||
'movement_type',
|
||||
'qty',
|
||||
'description',
|
||||
'created_by',
|
||||
'created_at'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TechnicianConsumable extends Model
|
||||
{
|
||||
protected $table = 'technician_consumables';
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'barcode_id',
|
||||
'inventory_item_id',
|
||||
'material_name',
|
||||
'unit',
|
||||
'qty_received',
|
||||
'qty_used',
|
||||
'qty_remaining',
|
||||
'status',
|
||||
'assigned_at',
|
||||
'assigned_by'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TechnicianMaterial extends Model
|
||||
{
|
||||
protected $table = 'technician_materials';
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'barcode_id',
|
||||
'inventory_item_id',
|
||||
'material_name',
|
||||
'serial_number',
|
||||
'status',
|
||||
'assigned_at',
|
||||
'assigned_by',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user