package com.izouma.dingdong.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import java.time.LocalDateTime;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "用户sig", description = "用户sig")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer"})
public class UserSig extends BaseEntity {
    @ApiModelProperty(value = "用户ID", name = "userId")
    private String userId;

    private String sig;

    @ApiModelProperty(value = "过期时间", name = "expiresAt")
    private LocalDateTime expiresAt;
}
