1 package fr.tiogars.domaintemplate.domains.auth.role.entities;
2
3 import java.time.Instant;
4
5 import io.swagger.v3.oas.annotations.media.Schema;
6 import jakarta.validation.constraints.NotNull;
7
8
9 public record Role(
10 @Schema(description = "Generated persistent identifier.", example = "1") @NotNull Long id,
11 @Schema(description = "Stable role code.", example = "ADMIN") @NotNull String code,
12 @Schema(description = "Display label.", example = "Administrator") @NotNull String label,
13 @Schema(description = "Creation timestamp.") @NotNull Instant createdDate,
14 @Schema(description = "Last modification timestamp.") @NotNull Instant lastModifiedDate) {
15 }