package org.raddatz.familienarchiv.person;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.raddatz.familienarchiv.person.PersonType;

@Data
public class PersonUpdateDTO {
    @NotNull
    private PersonType personType;
    @Size(max = 50)
    private String title;
    @Size(max = 100)
    private String firstName;
    @Size(max = 100)
    private String lastName;
    @Size(max = 200)
    private String alias;
    @Size(max = 5000)
    private String notes;
    private Integer birthYear;
    private Integer deathYear;
}
