feat(model): add PersonType enum and MAIDEN_NAME alias type

PersonType has 5 values: PERSON, INSTITUTION, GROUP, UNKNOWN, SKIP.
SKIP is intentionally excluded from the DB CHECK constraint (added
in migration) as defense-in-depth. MAIDEN_NAME added to
PersonNameAliasType for #209.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-08 11:50:19 +02:00
parent dea1635d75
commit 8101ddb697
3 changed files with 26 additions and 0 deletions

View File

@@ -4,5 +4,6 @@ public enum PersonNameAliasType {
BIRTH,
WIDOWED,
DIVORCED,
MAIDEN_NAME,
OTHER
}

View File

@@ -0,0 +1,9 @@
package org.raddatz.familienarchiv.model;
public enum PersonType {
PERSON,
INSTITUTION,
GROUP,
UNKNOWN,
SKIP
}