package com.nbclass.activity.model;

import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Data;

@Data
@Table(name = "content_tags")
public class ContentTags {
    /**
     * ID, 主键,自增
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 内容表ID
     */
    private Long cid;

    /**
     * 标签id(与data_dict_item.id对应)
     */
    private Long tid;

    /**
     * 字典id
     */
    private Long dictId;

    /**
     *
     */



    // 标签名（查询字段）
    @Transient
    private String tagName;
    
}