sample about material

This commit is contained in:
Wian Drs
2026-06-23 16:04:37 +07:00
parent b52e67c428
commit faab64e0dd
16 changed files with 848 additions and 0 deletions
+25
View File
@@ -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'
];
}
+24
View File
@@ -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'
];
}
+21
View File
@@ -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',
];
}