package com.erp.warehouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;

import java.time.LocalDateTime;

/**
 * 库存预警通知配置实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("stock_alert_notification")
public class StockAlertNotification {

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

    /** 租户ID */
    private Long tenantId;

    /** 邮箱通知是否启用 */
    private Boolean emailEnabled;

    /** 邮箱收件人（逗号分隔） */
    private String emailRecipients;

    /** 钉钉通知是否启用 */
    private Boolean dingtalkEnabled;

    /** 钉钉Webhook URL */
    private String dingtalkWebhookUrl;

    /** 钉钉签名密钥 */
    private String dingtalkSecret;

    /** 钉钉@手机号（逗号分隔） */
    private String dingtalkAtMobiles;

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

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