2025-08-18 19:03:46 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models\Tenants;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
2025-08-21 09:50:15 +09:00
|
|
|
/**
|
|
|
|
|
* @mixin IdeHelperTenantOptionGroup
|
|
|
|
|
*/
|
2025-08-18 19:03:46 +09:00
|
|
|
class TenantOptionGroup extends Model
|
|
|
|
|
{
|
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'tenant_id',
|
|
|
|
|
'group_key',
|
|
|
|
|
'name',
|
|
|
|
|
'description',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public function values()
|
|
|
|
|
{
|
|
|
|
|
return $this->hasMany(TenantOptionValue::class, 'group_id');
|
|
|
|
|
}
|
|
|
|
|
}
|