feat: implement integration management with CRUD operations and routes for tenant integration

This commit is contained in:
2026-07-03 14:44:18 -03:00
parent 0d4c6a4492
commit 3887a4fcba
16 changed files with 446 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Domains\Integration\Models;
use Illuminate\Database\Eloquent\Model;
class Integration extends Model
{
protected $table = 'integrations';
protected $fillable = [
'integration_code',
'name',
'integration_data_schema',
];
protected $casts = [
'integration_data_schema' => 'array',
];
public function tenantIntegrations()
{
return $this->hasMany(TenantIntegration::class, 'integration_code', 'integration_code');
}
}