feat: implement integration management with CRUD operations and routes for tenant integration
This commit is contained in:
25
app/Domains/Integration/Models/Integration.php
Normal file
25
app/Domains/Integration/Models/Integration.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user