package org.jeecg.modules.system.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: nm_isin
 * @Author: jeecg-boot
 * @Date:   2025-07-16
 * @Version: V1.0
 */
@Data
@TableName("nm_isin")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="nm_isin")
public class AppIsin implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID")
    private String id;
    /**部门编号*/
    @Excel(name = "部门编号", width = 15)
    @Schema(description = "部门编号")
    private String orgCode;
    private String originId;
	/**订单ID*/
	@Excel(name = "订单ID", width = 15)
    @Schema(description = "订单ID")
    private String orderId;
    @Excel(name = "订单编号", width = 15)
    @Schema(description = "订单编号")
    private String orderCode;
    @Excel(name = "子订单商品ID", width = 15)
    @Schema(description = "子订单商品ID")
    private String orderProInfoId;
    @Schema(description = "课时ID")
    private String coursePriceRuleId;
	/**用户ID*/
	@Excel(name = "用户ID（关联家庭用户表）", width = 15)
    @Schema(description = "用户ID（关联家庭用户表）")
    private String familyId;
    @Excel(name = "用户名", width = 15)
    @Schema(description = "用户名")
    private String familyUserName;
    @Excel(name = "手机号码", width = 15)
    @Schema(description = "手机号码")
    private String UserPhone;
	/**券码号*/
	@Excel(name = "券码号", width = 15)
    @Schema(description = "券码号")
    private String ticketNo;
	/**券状态  0-待使用 1-已使用 2-已失效*/
	@Excel(name = "券状态  0-待使用 1-已使用 2-已失效", width = 15)
    @Schema(description = "券状态  0-待使用 1-已使用 2-已失效")
    private Integer isinStatus;
    @Excel(name = "核验人ID", width = 15)
    @Schema(description = "核验人ID")
    private String verifyUserId;
    /**核验人*/
    @Excel(name = "核验人名称", width = 15)
    @Schema(description = "核验人名称")
    private String verifyUserName;
	/**使用时间*/
	@Excel(name = "使用时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "使用时间")
    private Date useTime;
    @Excel(name = "使用地点", width = 20)
    @Schema(description = "使用地点")
    private String useAddress;
    @Excel(name = "使用照片", width = 20)
    @Schema(description = "使用照片")
    private String useImage;
    @Excel(name = "备注", width = 20)
    @Schema(description = "备注")
    private String remark;
	/**创建人;创建人*/
    @Schema(description = "创建人;创建人")
    private String createBy;
	/**创建时间;创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private Date createTime;
	/**更新时间;更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private Date updateTime;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "到期时间")
    private String expireTime;
	/**系统状态;状态(0-正常,1-冻结)*/
	@Excel(name = "系统状态;状态(0-正常,1-冻结)", width = 15)
    @Schema(description = "系统状态(0-正常,1-冻结)")
    private Integer status;
	/**删除标志;删除状态(0-正常,1-已删除)*/
    @Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @Schema(description = "删除状态(0-正常,1-已删除)")
    @TableLogic
    private Integer delFlag;
}
