package com.red.circle.other.infra.database.mongo.entity.user.region;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 区域辅助数据.
 *
 * @author pengshigang on 2023/03/14
 */
@Data
@Accessors(chain = true)
@Document("sys_region_assist_config")
public class SysRegionAssistConfig implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * id.
   */
  @Id
  private String id;

  /**
   * 系统管理.
   */
  private String sysOrigin;

  /**
   * 区域Id.
   */
  private String regionId;

  /**
   * 业务类型.
   */
  private String type;

  /**
   * 业务数据.
   */
  private String data;

  /**
   * 图片URL.
   */
  private String imgUrl;

  /**
   * true 已删除，false 未删除.
   */
  private Boolean del;

  /**
   * 创建时间.
   */
  private Timestamp createTime;

  /**
   * 修改时间.
   */
  private Timestamp updateTime;

  /**
   * 创建用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createUser;

  /**
   * 修改用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateUser;


}
