feat: add provider model and bridging schemas

This commit is contained in:
2026-05-14 15:57:40 +07:00
parent f343f31075
commit 4027d6f687
4 changed files with 173 additions and 0 deletions

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

@@ -0,0 +1,32 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Provider extends Model
{
use HasFactory;
protected $table = 'providers';
protected $fillable = [
'organization_id',
'username',
'password',
'code',
'status',
'header_token',
'token',
];
protected $hidden = [
'password',
];
public function organization()
{
return $this->belongsTo(Organization::class, 'organization_id', 'id');
}
}