All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.vertxup.workflow.domain.tables.WTodo Maven / Gradle / Ivy

The newest version!
/*
 * This file is generated by jOOQ.
 */
package cn.vertxup.workflow.domain.tables;


import cn.vertxup.workflow.domain.Db;
import cn.vertxup.workflow.domain.Indexes;
import cn.vertxup.workflow.domain.Keys;
import cn.vertxup.workflow.domain.tables.records.WTodoRecord;
import org.jooq.Record;
import org.jooq.*;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({"all", "unchecked", "rawtypes"})
public class WTodo extends TableImpl {

    /**
     * The reference instance of DB_ETERNAL.W_TODO
     */
    public static final WTodo W_TODO = new WTodo();
    private static final long serialVersionUID = 1L;
    /**
     * The column DB_ETERNAL.W_TODO.KEY. 「key」- 待办主键
     */
    public final TableField KEY = createField(DSL.name("KEY"), SQLDataType.VARCHAR(36).nullable(false), this, "「key」- 待办主键");
    /**
     * The column DB_ETERNAL.W_TODO.SERIAL. 「serial」- 待办编号,使用
     * X_NUMBER 生成
     */
    public final TableField SERIAL = createField(DSL.name("SERIAL"), SQLDataType.VARCHAR(128), this, "「serial」- 待办编号,使用 X_NUMBER 生成");
    /**
     * The column DB_ETERNAL.W_TODO.NAME. 「name」- 待办名称(标题)
     */
    public final TableField NAME = createField(DSL.name("NAME"), SQLDataType.VARCHAR(255), this, "「name」- 待办名称(标题)");
    /**
     * The column DB_ETERNAL.W_TODO.CODE. 「code」-
     * 待办系统码,使用流程时候关联流程的任务ID
     */
    public final TableField CODE = createField(DSL.name("CODE"), SQLDataType.VARCHAR(128), this, "「code」- 待办系统码,使用流程时候关联流程的任务ID");
    /**
     * The column DB_ETERNAL.W_TODO.ICON. 「icon」- 待办显示的图标
     */
    public final TableField ICON = createField(DSL.name("ICON"), SQLDataType.VARCHAR(255), this, "「icon」- 待办显示的图标");
    /**
     * The column DB_ETERNAL.W_TODO.STATUS. 「status」- 待办状态
     */
    public final TableField STATUS = createField(DSL.name("STATUS"), SQLDataType.VARCHAR(36), this, "「status」- 待办状态");
    /**
     * The column DB_ETERNAL.W_TODO.TODO_URL. 「todoUrl」- 待办路径
     */
    public final TableField TODO_URL = createField(DSL.name("TODO_URL"), SQLDataType.VARCHAR(255), this, "「todoUrl」- 待办路径");
    /**
     * The column DB_ETERNAL.W_TODO.TYPE. 「type」- 待办类型
     */
    public final TableField TYPE = createField(DSL.name("TYPE"), SQLDataType.VARCHAR(36), this, "「type」- 待办类型");
    /**
     * The column DB_ETERNAL.W_TODO.EXPIRED_AT. 「expiredAt」- 超时时间
     */
    public final TableField EXPIRED_AT = createField(DSL.name("EXPIRED_AT"), SQLDataType.LOCALDATETIME(0), this, "「expiredAt」- 超时时间");
    /**
     * The column DB_ETERNAL.W_TODO.MODEL_ID. 「modelId」-
     * 关联的模型identifier,用于描述
     */
    public final TableField MODEL_ID = createField(DSL.name("MODEL_ID"), SQLDataType.VARCHAR(255), this, "「modelId」- 关联的模型identifier,用于描述");
    /**
     * The column DB_ETERNAL.W_TODO.MODEL_KEY. 「modelKey」-
     * 关联的模型记录ID,用于描述哪一个Model中的记录
     */
    public final TableField MODEL_KEY = createField(DSL.name("MODEL_KEY"), SQLDataType.VARCHAR(36), this, "「modelKey」- 关联的模型记录ID,用于描述哪一个Model中的记录");
    /**
     * The column DB_ETERNAL.W_TODO.MODEL_CATEGORY.
     * 「modelCategory」- 关联的category记录,只包含叶节点
     */
    public final TableField MODEL_CATEGORY = createField(DSL.name("MODEL_CATEGORY"), SQLDataType.VARCHAR(128), this, "「modelCategory」- 关联的category记录,只包含叶节点");
    /**
     * The column DB_ETERNAL.W_TODO.PARENT_ID. 「parentId」-
     * 待办支持父子集结构,父待办执行时候子待办同样执行
     */
    public final TableField PARENT_ID = createField(DSL.name("PARENT_ID"), SQLDataType.VARCHAR(36), this, "「parentId」- 待办支持父子集结构,父待办执行时候子待办同样执行");
    /**
     * The column DB_ETERNAL.W_TODO.SERIAL_FORK. 「serialFork」-
     * 生成序号的分支序号
     */
    public final TableField SERIAL_FORK = createField(DSL.name("SERIAL_FORK"), SQLDataType.VARCHAR(255), this, "「serialFork」- 生成序号的分支序号");
    /**
     * The column DB_ETERNAL.W_TODO.TRACE_ID. 「traceId」-
     * 同一个流程的待办执行分组
     */
    public final TableField TRACE_ID = createField(DSL.name("TRACE_ID"), SQLDataType.VARCHAR(36), this, "「traceId」- 同一个流程的待办执行分组");
    /**
     * The column DB_ETERNAL.W_TODO.TRACE_ORDER. 「traceOrder」-
     * 待办的处理顺序
     */
    public final TableField TRACE_ORDER = createField(DSL.name("TRACE_ORDER"), SQLDataType.INTEGER, this, "「traceOrder」- 待办的处理顺序");
    /**
     * The column DB_ETERNAL.W_TODO.TASK_ID. 「taskId」-
     * 和待办绑定的taskId(任务)
     */
    public final TableField TASK_ID = createField(DSL.name("TASK_ID"), SQLDataType.VARCHAR(36), this, "「taskId」- 和待办绑定的taskId(任务)");
    /**
     * The column DB_ETERNAL.W_TODO.TASK_KEY. 「taskKey」-
     * 和待办绑定的taskKey
     */
    public final TableField TASK_KEY = createField(DSL.name("TASK_KEY"), SQLDataType.VARCHAR(255), this, "「taskKey」- 和待办绑定的taskKey");
    /**
     * The column DB_ETERNAL.W_TODO.COMMENT. 「comment」- 待办描述
     */
    public final TableField COMMENT = createField(DSL.name("COMMENT"), SQLDataType.CLOB, this, "「comment」- 待办描述");
    /**
     * The column DB_ETERNAL.W_TODO.COMMENT_APPROVAL.
     * 「commentApproval」- 审批描述
     */
    public final TableField COMMENT_APPROVAL = createField(DSL.name("COMMENT_APPROVAL"), SQLDataType.CLOB, this, "「commentApproval」- 审批描述");
    /**
     * The column DB_ETERNAL.W_TODO.COMMENT_REJECT.
     * 「commentReject」- 拒绝理由
     */
    public final TableField COMMENT_REJECT = createField(DSL.name("COMMENT_REJECT"), SQLDataType.CLOB, this, "「commentReject」- 拒绝理由");
    /**
     * The column DB_ETERNAL.W_TODO.TO_LOCATION. 「toLocation」-
     * 指定地址区域
     */
    public final TableField TO_LOCATION = createField(DSL.name("TO_LOCATION"), SQLDataType.VARCHAR(36), this, "「toLocation」- 指定地址区域");
    /**
     * The column DB_ETERNAL.W_TODO.TO_GROUP. 「toGroup」- 指定用户组
     */
    public final TableField TO_GROUP = createField(DSL.name("TO_GROUP"), SQLDataType.VARCHAR(36), this, "「toGroup」- 指定用户组");
    /**
     * The column DB_ETERNAL.W_TODO.TO_TEAM. 「toTeam」- 指定业务组
     */
    public final TableField TO_TEAM = createField(DSL.name("TO_TEAM"), SQLDataType.VARCHAR(36), this, "「toTeam」- 指定业务组");
    /**
     * The column DB_ETERNAL.W_TODO.TO_ROLE. 「toRole」- 待办角色(集体)
     */
    public final TableField TO_ROLE = createField(DSL.name("TO_ROLE"), SQLDataType.VARCHAR(36), this, "「toRole」- 待办角色(集体)");
    /**
     * The column DB_ETERNAL.W_TODO.TO_USER. 「toUser」- 待办指定人
     */
    public final TableField TO_USER = createField(DSL.name("TO_USER"), SQLDataType.VARCHAR(36), this, "「toUser」- 待办指定人");
    /**
     * The column DB_ETERNAL.W_TODO.TO_DEPT. 「toDept」- 指定部门
     */
    public final TableField TO_DEPT = createField(DSL.name("TO_DEPT"), SQLDataType.VARCHAR(36), this, "「toDept」- 指定部门");
    /**
     * The column DB_ETERNAL.W_TODO.ESCALATE. 「escalate」- 是否升级
     */
    public final TableField ESCALATE = createField(DSL.name("ESCALATE"), SQLDataType.BIT, this, "「escalate」- 是否升级");
    /**
     * The column DB_ETERNAL.W_TODO.ESCALATE_DATA. 「escalateData」-
     * 升级单据数据
     */
    public final TableField ESCALATE_DATA = createField(DSL.name("ESCALATE_DATA"), SQLDataType.CLOB, this, "「escalateData」- 升级单据数据");
    /**
     * The column DB_ETERNAL.W_TODO.ASSIGNED_BY. 「assignedBy」-
     * 待办指派人
     */
    public final TableField ASSIGNED_BY = createField(DSL.name("ASSIGNED_BY"), SQLDataType.VARCHAR(36), this, "「assignedBy」- 待办指派人");
    /**
     * The column DB_ETERNAL.W_TODO.ASSIGNED_AT. 「assignedAt」- 指派时间
     */
    public final TableField ASSIGNED_AT = createField(DSL.name("ASSIGNED_AT"), SQLDataType.LOCALDATETIME(0), this, "「assignedAt」- 指派时间");
    /**
     * The column DB_ETERNAL.W_TODO.ACCEPTED_BY. 「acceptedBy」-
     * 待办接收人
     */
    public final TableField ACCEPTED_BY = createField(DSL.name("ACCEPTED_BY"), SQLDataType.VARCHAR(36), this, "「acceptedBy」- 待办接收人");
    /**
     * The column DB_ETERNAL.W_TODO.ACCEPTED_GROUP.
     * 「acceptedGroup」- 当前处理组
     */
    public final TableField ACCEPTED_GROUP = createField(DSL.name("ACCEPTED_GROUP"), SQLDataType.CLOB, this, "「acceptedGroup」- 当前处理组");
    /**
     * The column DB_ETERNAL.W_TODO.ACCEPTED_AT. 「acceptedAt」- 接收时间
     */
    public final TableField ACCEPTED_AT = createField(DSL.name("ACCEPTED_AT"), SQLDataType.LOCALDATETIME(0), this, "「acceptedAt」- 接收时间");
    /**
     * The column DB_ETERNAL.W_TODO.FINISHED_BY. 「finishedBy」-
     * 待办完成人
     */
    public final TableField FINISHED_BY = createField(DSL.name("FINISHED_BY"), SQLDataType.VARCHAR(36), this, "「finishedBy」- 待办完成人");
    /**
     * The column DB_ETERNAL.W_TODO.FINISHED_AT. 「finishedAt」- 完成时间
     */
    public final TableField FINISHED_AT = createField(DSL.name("FINISHED_AT"), SQLDataType.LOCALDATETIME(0), this, "「finishedAt」- 完成时间");
    /**
     * The column DB_ETERNAL.W_TODO.ACTIVE. 「active」- 是否启用
     */
    public final TableField ACTIVE = createField(DSL.name("ACTIVE"), SQLDataType.BIT, this, "「active」- 是否启用");
    /**
     * The column DB_ETERNAL.W_TODO.SIGMA. 「sigma」- 统一标识
     */
    public final TableField SIGMA = createField(DSL.name("SIGMA"), SQLDataType.VARCHAR(32), this, "「sigma」- 统一标识");
    /**
     * The column DB_ETERNAL.W_TODO.METADATA. 「metadata」- 附加配置
     */
    public final TableField METADATA = createField(DSL.name("METADATA"), SQLDataType.CLOB, this, "「metadata」- 附加配置");
    /**
     * The column DB_ETERNAL.W_TODO.LANGUAGE. 「language」- 使用的语言
     */
    public final TableField LANGUAGE = createField(DSL.name("LANGUAGE"), SQLDataType.VARCHAR(8), this, "「language」- 使用的语言");
    /**
     * The column DB_ETERNAL.W_TODO.CREATED_AT. 「createdAt」- 创建时间
     */
    public final TableField CREATED_AT = createField(DSL.name("CREATED_AT"), SQLDataType.LOCALDATETIME(0), this, "「createdAt」- 创建时间");
    /**
     * The column DB_ETERNAL.W_TODO.CREATED_BY. 「createdBy」- 创建人
     */
    public final TableField CREATED_BY = createField(DSL.name("CREATED_BY"), SQLDataType.VARCHAR(36), this, "「createdBy」- 创建人");
    /**
     * The column DB_ETERNAL.W_TODO.UPDATED_AT. 「updatedAt」- 更新时间
     */
    public final TableField UPDATED_AT = createField(DSL.name("UPDATED_AT"), SQLDataType.LOCALDATETIME(0), this, "「updatedAt」- 更新时间");
    /**
     * The column DB_ETERNAL.W_TODO.UPDATED_BY. 「updatedBy」- 更新人
     */
    public final TableField UPDATED_BY = createField(DSL.name("UPDATED_BY"), SQLDataType.VARCHAR(36), this, "「updatedBy」- 更新人");

    private WTodo(Name alias, Table aliased) {
        this(alias, aliased, null);
    }

    private WTodo(Name alias, Table aliased, Field[] parameters) {
        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table());
    }

    /**
     * Create an aliased DB_ETERNAL.W_TODO table reference
     */
    public WTodo(String alias) {
        this(DSL.name(alias), W_TODO);
    }

    /**
     * Create an aliased DB_ETERNAL.W_TODO table reference
     */
    public WTodo(Name alias) {
        this(alias, W_TODO);
    }

    /**
     * Create a DB_ETERNAL.W_TODO table reference
     */
    public WTodo() {
        this(DSL.name("W_TODO"), null);
    }

    public  WTodo(Table child, ForeignKey key) {
        super(child, key, W_TODO);
    }

    /**
     * The class holding records for this type
     */
    @Override
    public Class getRecordType() {
        return WTodoRecord.class;
    }

    @Override
    public Schema getSchema() {
        return aliased() ? null : Db.DB_ETERNAL;
    }

    @Override
    public List getIndexes() {
        return Arrays.asList(Indexes.W_TODO_IDXM_W_TODO_SIGMA_STATUS, Indexes.W_TODO_IDXM_W_TODO_SIGMA_TYPE_STATUS);
    }

    @Override
    public UniqueKey getPrimaryKey() {
        return Keys.KEY_W_TODO_PRIMARY;
    }

    @Override
    public List> getUniqueKeys() {
        return Arrays.asList(Keys.KEY_W_TODO_SIGMA_2, Keys.KEY_W_TODO_SIGMA);
    }

    @Override
    public WTodo as(String alias) {
        return new WTodo(DSL.name(alias), this);
    }

    @Override
    public WTodo as(Name alias) {
        return new WTodo(alias, this);
    }

    @Override
    public WTodo as(Table alias) {
        return new WTodo(alias.getQualifiedName(), this);
    }

    /**
     * Rename this table
     */
    @Override
    public WTodo rename(String name) {
        return new WTodo(DSL.name(name), null);
    }

    /**
     * Rename this table
     */
    @Override
    public WTodo rename(Name name) {
        return new WTodo(name, null);
    }

    /**
     * Rename this table
     */
    @Override
    public WTodo rename(Table name) {
        return new WTodo(name.getQualifiedName(), null);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy