fix : 테넌트별 옵션설정 작업
- Tenant Fields - Tenant Option Groups - Tenant Option Values - Tenant Profiles
This commit is contained in:
34
app/Models/Tenants/SettingFieldDef.php
Normal file
34
app/Models/Tenants/SettingFieldDef.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Tenants;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SettingFieldDef extends Model
|
||||
{
|
||||
protected $casts = [
|
||||
'option_payload' => 'array',
|
||||
'is_core' => 'boolean',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'field_key',
|
||||
'label',
|
||||
'data_type',
|
||||
'input_type',
|
||||
'option_source',
|
||||
'option_payload',
|
||||
'comment',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
'storage_area',
|
||||
'storage_key',
|
||||
'is_core',
|
||||
];
|
||||
|
||||
// 관계 (테넌트 설정)
|
||||
public function tenantSettings()
|
||||
{
|
||||
return $this->hasMany(TenantFieldSetting::class, 'field_key', 'field_key');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user