'array', 'standard_criteria' => 'array', 'field_values' => 'array', 'sort_order' => 'integer', 'frequency_n' => 'integer', 'frequency_c' => 'integer', ]; /** * field_values 우선, 없으면 기존 컬럼 fallback */ public function getFieldValue(string $key): mixed { if (! empty($this->field_values) && array_key_exists($key, $this->field_values)) { return $this->field_values[$key]; } return $this->attributes[$key] ?? null; } public function section(): BelongsTo { return $this->belongsTo(DocumentTemplateSection::class, 'section_id'); } }