package com.red.circle.other.infra.database.rds.entity.dynamic;

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 java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 动态-时间轴表.
 * </p>
 *
 * @author pengshigang
 * @since 2022-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dynamic_timeline")
public class DynamicTimeline implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * ID.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 朋友圈信息ID.
   */
  @TableField("dynamic_content_id")
  private Long dynamicContentId;

  /**
   * 是否为自己发的朋友圈(1.是 0.否).
   */
  @TableField("is_own")
  private Boolean own;

  /**
   * 动态区域
   */
  @TableField("region")
  private String region;

  /**
   * 创建时间.
   */
  @TableField("create_time")
  private Timestamp createTime;

  /**
   * 创建用户.
   */
  @TableField("create_user")
  private Long createUser;

  /**
   * 修改时间
   */
  @TableField(value = "update_time", update = "now()")
  private Timestamp updateTime;

  /**
   * 修改用户
   */
  @TableField("update_user")
  private Long updateUser;

}
