package cn.axzo.workflow.core.repository.entity;

import cn.axzo.framework.data.mybatisplus.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 记录 API 使用方
 *
 * @author wangli
 * @since 2024/2/6 16:03
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ext_ax_property", autoResultMap = true)
@Data
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class ExtAxProperty extends BaseEntity<ExtAxProperty> {

    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private Boolean created;
    /**
     * 流程模型ID
     */
    @TableField("name")
    private String name;

    /**
     * 流程任务 ID
     */
    @TableField("value")
    private String value;

    /**
     * 接入方是否使用了 manageable
     */
    @TableField("manageable")
    private Boolean manageable;

    @TableField(value = "is_delete", fill = FieldFill.INSERT)
    private Long isDelete = 0L;
}
