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;

@Entity
@Data
@Table(name="qkj_catalogs_detail")
@ApiModel
public class QkjCatalogsDetail implements Serializable {

	private static final long serialVersionUID = 7402501419505585781L;

	@Id
    @Column(name = "id")
    @ApiModelProperty(value = "ID", hidden = true)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "catalogs_id",nullable = false)
    @ApiModelProperty(value = "分类id")
    private Integer catalogsId;

    @Column(name = "fu_id",nullable = false)
    @ApiModelProperty(value = "分类父id")
    private Integer fuId;

    @Column(name = "obj_type",nullable = false)
    @ApiModelProperty(value = "类型 1-直播 2：精品课 3：会议  4：资讯")
    private Integer objType;

    @Column(name = "obj_id",nullable = false)
    @ApiModelProperty(value = "类型对应的对象id")
    private Long objId;

    @Column(name = "collection_id",nullable = false)
    @ApiModelProperty(value = "合辑id（仅限type=10时使用）")
    private Integer collectionId;

    @Column(name = "sqn")
    @ApiModelProperty(value = "排序（降序）")
    private Integer sqn;

}
