add migration provider table

This commit is contained in:
2026-05-13 09:44:57 +07:00
parent 7a72e6674f
commit a4a48014e1
3 changed files with 88 additions and 0 deletions

38
app/Models/Provider.php Normal file
View File

@@ -0,0 +1,38 @@
<?php
namespace App\Models;
use App\Traits\Blameable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Provider extends Model
{
use HasFactory, SoftDeletes, Blameable;
protected $fillable = [
'organization_id',
'name',
'code',
'header_token',
'username',
'password',
'status',
];
protected $hidden = [
'password',
'created_at',
'updated_at',
'deleted_at',
'created_by',
'updated_by',
'deleted_by',
];
public function organization()
{
return $this->belongsTo(Organization::class, 'organization_id');
}
}