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_content")
public class DynamicContent implements Serializable {

  private static final long serialVersionUID = 1L;

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

  /**
   * 归属平台.
   */
  @TableField("sys_origin")
  private String sysOrigin;

  /**
   * 内容.
   */
  @TableField("content")
  private String content;

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

  /**
   * 类型
   */
  @TableField("type")
  private Integer type;

  /**
   * 位置.
   */
  @TableField("location")
  private String location;

  /**
   * 标签ID.
   */
  @TableField("tag_id")
  private Long tagId;

  /**
   * 是否已删除(0.否 1.是).
   */
  @TableField("is_del")
  private Boolean del;

  /**
   * 语言类型
   */
  @TableField("language_type")
  private String languageType;

  /**
   * 创建时间.
   */
  @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;

}
