package com.bcxin.message.entity.yehuo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * description：野火-消息表
 * author：linchunpeng
 * date：2024/12/31
 */
@Data
@TableName("t_messages_0")
public class TMessagesEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId(value = "id")
    private Long id;

    //消息id
    @TableField(value = "_mid")
    private Long mid;

    //发送者用户id
    @TableField(value = "_from")
    private String from;

    //消息类型，0用户消息，1群组消息
    @TableField(value = "_type")
    private Integer type;

    //接收用户id/群组id
    @TableField(value = "_target")
    private String target;

    //发送时间
    @TableField(value = "_dt")
    private Date dt;

}