package me.qwq.doghouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * Mapping relationship between Meta and Post
 *
 * @author Doghole
 * @since 2021-12-01
 * @see Post
 * @see Meta
 */
@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Relationship extends Model<Relationship> implements Serializable {
    
    @TableId(value="relationship_id", type=IdType.AUTO)
    private Long relationshipId;
    /**
     * 标签名称
     */
    @TableField("mid")
    private Long mid;
    
    @TableField("post_id")
    private Long postId;

}
