package com.izouma.nineth.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.redis.core.RedisHash;

import javax.persistence.Id;

@RedisHash(value = "UserProperty")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserProperty {
    @ApiModelProperty("userId")
    @Id
    @ExcelProperty("用户ID")
    private Long id;

    @ApiModelProperty("限购数量")
    @ExcelProperty("限购数量")
    private int maxCount;

//    @TimeToLive
//    private Long time;
}
