package com.moka.gdtauto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 广告自动划配置表
 * </p>
 *
 * @author mokamvp
 * @since 2026-03-12
 */
@Getter
@Setter
@ToString
@TableName("ad_auto_conf")
public class AdAutoConf implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 工号
     */
    private String jobNumber;

    /**
     * 规则名称
     */
    private String ruleName;

    /**
     * 新广告天数定义
     */
    private Integer newAdDays;

    /**
     * 广告组ID
     */
    private Long adGroupId;

    // 日预算等级 [100,300,500,1000,5000,10000]
    private String dailyBudgetLevel;
    // 达到日预算百分比后升级预算
    private BigDecimal dailyBudgetRateTop;

    /**
     * com.moka.gdtauto.common.AutoPlanRule数组
     * 规则json
     */
    @NotEmpty
    @NotNull
    private String rules;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
}
