package org.raddatz.familienarchiv.user;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;
import java.util.UUID;

@Data
public class CreateUserRequest {
    @NotBlank
    @Email
    @Pattern(regexp = "^[^:]+$", message = "Email must not contain a colon")
    private String email;
    private String initialPassword;
    private List<UUID> groupIds;
    private String firstName;
    private String lastName;
    private LocalDate birthDate;
    private String contact;
}
