package com.red.circle.other.infra.database.mongo.entity.sys;

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 2022/10/8
 */
@Data
@Accessors(chain = true)
@Document("customer_service_config")
public class CustomerServiceConfig implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键.
   */
  @Id
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 归属系统.
   */
  private String sysOrigin;

  /**
   * 语言.
   */
  private String language;

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 时间段.
   */
  private String timeSlot;

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

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

  /**
   * 区域.
   */
  private String regions;

}
