package com.iqser.red.service.persistence.management.v1.processor.service.users.model;

import java.io.Serializable;
import java.util.Set;
import java.util.TreeSet;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {

    private String userId;

    private String username;

    private String email;

    private String firstName;

    private String lastName;

    private boolean isActive;

    @Builder.Default
    private Set<String> roles = new TreeSet<>();

}
