package com.ai.da.mapper.primary.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("trial_order")
public class TrialOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("title")
    private String title;

    @ApiModelProperty("surname")
    private String surname;

    @ApiModelProperty("givenName")
    private String givenName;

    @ApiModelProperty("userName")
    private String userName;

    @ApiModelProperty("email")
    private String email;

    @ApiModelProperty("country")
    private String country;

    @ApiModelProperty("occupation")
    private String occupation;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;


    /**
     * 0待审评
     * 1通过
     * 2拒绝
     */
    private Integer status;
    private Integer isDeleted;
    private String ip;
}
