package com.usky.rule.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import retrofit2.http.Field;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 对应表 rule_engine（数据规则引擎）
 */
@Data
public class RuleEngine implements Serializable {
    private Long id;
    private Long projectId;
    private String name;
    private Long spaceId;
    /** 规则状态 1：启用 0：停用 */
    private Integer status;
    private String descr;
    /** JSON：规则详情（条件、动作等与前端约定） */
    private String detail;
    private String updatedBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private String createdBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 租户号
     */
    private Integer tenantId;

    @TableField(exist = false)
    private String spaceName;
}
