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

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.yonge.cooleshow.biz.dal.enums.ClientEnum;
import com.yonge.cooleshow.biz.dal.enums.SourceTypeEnum;
import lombok.Data;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

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


/**
 * 购买训练工具记录
 * 2023-07-24 13:32:24
 */
@Data
@ApiModel(" UserTenantAlbumRecord-购买训练工具记录")
@TableName("user_tenant_album_record")
public class UserTenantAlbumRecord implements Serializable {

    @ApiModelProperty("记录id") 

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

    @ApiModelProperty("用户id") 
	@TableField(value = "user_id_")
    private Long userId;



    @ApiModelProperty("机构ID")
    @TableField(value = "tenant_id_")
    private Long tenantId;

    @ApiModelProperty("机构专辑ID") 
	@TableField(value = "tenant_album_id_")
    private Long tenantAlbumId;

    @ApiModelProperty("订单号") 
	@TableField(value = "order_no_")
    private String orderNo;

    @ApiModelProperty("ORDER:订单") 
	@TableField(value = "source_type_")
    private SourceTypeEnum sourceType;

    @ApiModelProperty("购买人员类型 TEACHRE :老师端 STUDNET : 学生端") 
	@TableField(value = "client_type_")
    private ClientEnum clientType;

    @ApiModelProperty("订单详情号") 
	@TableField(value = "sub_order_no_")
    private String subOrderNo;

    @ApiModelProperty("开始时间") 
	@TableField(value = "start_time_")
    private Date startTime;

    @ApiModelProperty("结束时间") 
	@TableField(value = "end_time_")
    private Date endTime;

    @ApiModelProperty("创建时间") 
	@TableField(value = "create_time_")
    private Date createTime;

    @ApiModelProperty("创建人") 
	@TableField(value = "create_by_")
    private Long createBy;

    @ApiModelProperty("更新时间") 
	@TableField(value = "update_time_")
    private Date updateTime;

    @ApiModelProperty("时间类型 DAY:天 MONTH:月，YEAR:年") 
	@TableField(value = "type_")
    private String type;

    @ApiModelProperty("添加时间数量") 
	@TableField(value = "times_")
    private Integer times;

    @ApiModelProperty("消息发送 0、未发送 1、已发送提前3天消息 2、已发送会员过期消息 暂时不用") 
	@TableField(value = "msg_status_")
    private Boolean msgStatus;

    @ApiModelProperty("备注") 
	@TableField(value = "reason_")
    private String reason;

}