package com.cirle.scientific.po;

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

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "qkj_courseware")
@Data
@ApiModel
public class QkjCourseWare implements Serializable {
    private static final long serialVersionUID = 7044978507046631905L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "课件id")
    private Long id;

    @ApiModelProperty(value = "创建者")
    private String uploader;

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

    @ApiModelProperty(value = "课件名称")
    private String fileName;

    @ApiModelProperty(value = "课件大小")
    private Long fileSize;

    @ApiModelProperty(value = "课件类型")
    private Integer fileType;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "课件下载路径")
    private String downloadPath;

    @ApiModelProperty(value = "价格")
    private Double price = 0d;

    @ApiModelProperty(value = "是否支持积分兑换  0：不支持  1：支持")
    private Integer pointFlag = 0;

    @ApiModelProperty(value = "积分兑换所需积分(如果支持积分兑换此值大于0)")
    private Integer point = 0;

    @ApiModelProperty(value = "总下载量(显示）")
    private Integer downloadMembers = 0;

    @ApiModelProperty(value = "真实下载量")
    private Integer vdownloadMembers = 0;

    @ApiModelProperty(value = "'购买后有效时间（单位：天）'")
    private Integer durationValidity;

    @ApiModelProperty(value = "是否置顶 0：否 1：是")
    private Integer topStatus = 0;

    @ApiModelProperty(value = "状态，0-草稿，1-上线， 2-已删除")
    private Integer status;

    @ApiModelProperty(value = "是否可见  0 不可见  1 可见  2 上传者自己可见")
    private Integer isVisiable;


    @ApiModelProperty(value = "封面图")
    private String coverImg;

    /** M端或PC端展示 */
    @Column(name = "m_or_pc")
    @ApiModelProperty(value = "M端或PC端展示 0:m 1:pc 2:全部")
    private Integer mOrPc;


    @ApiModelProperty(value = "品牌ID")
    private Integer belongBrandid;

}
