ca.ibodrov.mica.api.model.Entity Maven / Gradle / Ivy
package ca.ibodrov.mica.api.model;
import com.fasterxml.jackson.databind.JsonNode;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.OffsetDateTime;
public record Entity(@NotNull EntityId id,
@NotEmpty String name,
@NotEmpty String kind,
@NotNull OffsetDateTime createdAt,
@NotNull OffsetDateTime updatedAt,
@NotNull JsonNode data) {
}