package com.red.circle.console.app.dto.clienobject.team;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.agency.agency.TeamPolicyDTO;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 团队策略.
 *
 * @author pengshigang on 2022/12/12
 */
@Data
@Accessors(chain = true)
public class TeamPolicyManagerCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

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

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

  /**
   * true: 曾经对外发布过.
   */
  private Boolean historyRelease;

  /**
   * true已发布队外政策.
   */
  private Boolean release;

  /**
   * 标题.
   */
  private String title;

  /**
   * 政策.
   */
  private List<TeamPolicyDTO> policy;

  /**
   * 类型 MONEY(美金政策)、SALARY_DIAMOND(工资钻石政策).
   */
  private String policyType;

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

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

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

  /**
   * 创建人用户名称.
   */
  private String createUserNickname;

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