package com.yonge.cooleshow.biz.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yonge.cooleshow.biz.dal.enums.AuthStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 曲目审核表
 */
@TableName("music_sheet_auth_record")
@ApiModel(value = "MusicSheetAuthRecord对象", description = "曲目审核表")
@Data
public class MusicSheetAuthRecord implements Serializable {
	private static final long serialVersionUID = 1L;
    @ApiModelProperty("审核单id ")
    @TableId(value = "id_", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("曲目id ")
	@TableField(value = "music_sheet_id_")
    private Long musicSheetId;

    @ApiModelProperty("曲目JSON")
    @TableField(value = "music_sheet_json_")
    private String musicSheetJson;

    @ApiModelProperty("批次号,同一个批次为一条审核记录")
    @TableField(value = "batch_no_")
    private String batchNo;

    @ApiModelProperty("审核状态 DOING:审核中;PASS:通过;UNPASS:未通过 ")
	@TableField(value = "audit_state_")
    private AuthStatusEnum auditState;

    @ApiModelProperty("审核人 ")
	@TableField(value = "verify_user_id_")
    private Long verifyUserId;

    @ApiModelProperty("审核理由 ")
	@TableField(value = "reason_")
    private String reason;

	@TableField(value = "create_time_")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

	@TableField(value = "update_time_")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;
    
}