27 lines
530 B
PHP
27 lines
530 B
PHP
<?php
|
|
|
|
namespace App\Domains\Integration\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Integration extends Model
|
|
{
|
|
protected $table = 'integrations';
|
|
|
|
protected $fillable = [
|
|
'integration_code',
|
|
'name',
|
|
'url',
|
|
'integration_data_schema',
|
|
];
|
|
|
|
protected $casts = [
|
|
'integration_data_schema' => 'array',
|
|
];
|
|
|
|
public function tenantIntegrations()
|
|
{
|
|
return $this->hasMany(TenantIntegration::class, 'integration_code', 'integration_code');
|
|
}
|
|
}
|