package com.tievd.jyz.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
import lombok.experimental.Accessors;
|
|
import java.io.Serializable;
|
import java.sql.Timestamp;
|
import java.util.Date;
|
|
/**
|
* <p>
|
* 自定义标签表
|
* </p>
|
*
|
* @author
|
* @since 2023-02-24
|
*/
|
@Data
|
@Accessors(chain = true)
|
@TableName("t_label")
|
@Schema(name = "Label", description = "自定义标签表")
|
public class Label extends Model<Label> {
|
|
private static final long serialVersionUID = 1L;
|
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
@Schema(description = "标签类型")
|
@TableField("label_type")
|
private String labelType;
|
|
@Schema(description = "标签名")
|
@TableField("label_name")
|
private String labelName;
|
|
@TableField("create_time")
|
private Date createTime;
|
|
@Override
|
public Serializable pkVal() {
|
return this.id;
|
}
|
}
|