package com.webchat.repository.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.util.Date;

/**
 * @author 程序员王七七 https://www.coderutil.com 网站作者
 * @date 2024/11/7 00:50
 */
@Data
@Entity
@Table(name = "web_chat_moment_timeline")
public class MomentTimeLineEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    protected Long id;

    @Column(name = "userId")
    private String userId;

    @Column(name = "moment_user_id")
    private String momentUserId;

    @Column(name = "moment_id")
    private Long momentId;

    @Column(name = "deleted")
    private Boolean deleted;

    @Column(name = "time")
    private Date time;

    @Version
    @Column(name = "version")
    private Integer version;
}
