fix : 테넌트별 옵션설정 작업
- Tenant Fields - Tenant Option Groups - Tenant Option Values - Tenant Profiles
This commit is contained in:
27
app/Models/Tenants/TenantOptionValue.php
Normal file
27
app/Models/Tenants/TenantOptionValue.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Tenants;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TenantOptionValue extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'is_active' => 'boolean',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'group_id',
|
||||
'value_key',
|
||||
'value_label',
|
||||
'sort_order',
|
||||
'is_active',
|
||||
];
|
||||
|
||||
public function group()
|
||||
{
|
||||
return $this->belongsTo(TenantOptionGroup::class, 'group_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user