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.Serializable;
import java.sql.Timestamp;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 活动模版.
 *
 * @author pengliang on 2022/8/12
 */
@Data
@Accessors(chain = true)
@Document("activity_template")
public class ActivityTemplate implements Serializable {

  private static final long serialVersionUID = 1L;

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

  /**
   * 模版名称.
   */
  private String name;

  /**
   * 模版索引树.
   */
  private List<Object> indexTree;

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

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

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

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


}
