Commit 1cae2631 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix guardian relationship_type CHECK violation — use 'father' instead of invalid 'guardian'

The guardians_relationship_type_check constraint allows: father, mother,
grandfather, grandmother, uncle, aunt, sibling, legal_guardian, other.
The ParticipantForm was inserting 'guardian' which isn't a valid value.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent a4e6d437
......@@ -217,7 +217,7 @@ public function save(ParticipantService $service): void
$newGuardian = Guardian::create([
'academy_id' => $this->participant->academy_id,
'person_id' => $guardianPerson->id,
'relationship_type' => 'guardian',
'relationship_type' => 'father',
'is_emergency_contact' => true,
'is_financial_responsible' => true,
'can_pickup' => true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment