package de.htwsaar.webshop.model;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.UUID;

import static de.htwsaar.webshop.util.TimeUtil.VALID_MIN_MILLIS_TIMESTAMP;

@Getter
@Setter
@ToString
@AllArgsConstructor
public class SessionModel {
    @NotNull
    UUID uuid;

    @Min(VALID_MIN_MILLIS_TIMESTAMP)
    long timeout;
}
