CREATE TABLE "actions_ref" (
    "id" BIGSERIAL PRIMARY KEY,
    "appCode" TEXT,
    "actionCode" TEXT,
    "actionName" TEXT,
    "validFrom" DATE,
    "validTo" DATE,
    "createdAt" DATE,
    "updatedAt" DATE,
    "createdBy" TEXT,
    "modifiedBy" TEXT,
    "deletedAt" DATE,
    "version" NUMERIC
);
CREATE TABLE "crud_config_info" (
    "id" BIGSERIAL PRIMARY KEY,
    "endPtNum" NUMERIC,
    "opsTypeName" TEXT,
    "sqlQueryText" TEXT,
    "validFrom" DATE,
    "validTill" DATE,
    "createdBy" TEXT,
    "modifiedBy" TEXT,
    "status" TEXT,
    "version" NUMERIC,
    "deletedAt" DATE,
    "createdAt" DATE,
    "updatedAt" DATE
);
CREATE TABLE "policies_ref" (
    "id" BIGSERIAL PRIMARY KEY,
    "appCode" TEXT,
    "roleCode" TEXT,
    "resourceCode" TEXT,
    "actionCode" TEXT,
    "canAllow" BOOLEAN,
    "priority" NUMERIC,
    "validFrom" DATE,
    "validTo" DATE,
    "createdAt" DATE,
    "updatedAt" DATE,
    "createdBy" TEXT,
    "modifiedBy" TEXT,
    "deletedAt" DATE,
    "version" NUMERIC
);
CREATE TABLE "resources_ref" (
    "id" BIGSERIAL PRIMARY KEY,
    "appCode" TEXT,
    "resourceCode" TEXT,
    "resourceName" TEXT,
    "validFrom" DATE,
    "validTo" DATE,
    "createdAt" DATE,
    "updatedAt" DATE,
    "createdBy" TEXT,
    "modifiedBy" TEXT,
    "deletedAt" DATE,
    "version" NUMERIC
);
CREATE TABLE "rules_ref" (
    "id" BIGSERIAL PRIMARY KEY,
    "ruleCode" TEXT,
    "ruleName" TEXT,
    "ruleType" TEXT,
    "ruleDesc" TEXT,
    "ruleText" TEXT,
    "validFrom" DATE,
    "validTo" DATE,
    "createdAt" DATE,
    "updatedAt" DATE,
    "createdBy" TEXT,
    "modifiedBy" TEXT,
    "deletedAt" DATE,
    "version" NUMERIC
);
CREATE TABLE "rules_details_ref" (
    "id" BIGSERIAL PRIMARY KEY,
    "ruleCode" TEXT,
    "ruleAttrName" TEXT,
    "ruleAttrText" TEXT,
    "validFrom" DATE,
    "validTo" DATE,
    "createdAt" DATE,
    "updatedAt" DATE,
    "createdBy" TEXT,
    "modifiedBy" TEXT,
    "deletedAt" DATE,
    "version" NUMERIC
);
