Browse Source

refactor(nocodb): rollup model in swagger.json

pull/5222/head
Wing-Kam Wong 2 years ago
parent
commit
b783905994
  1. 92
      packages/nocodb/src/schema/swagger.json

92
packages/nocodb/src/schema/swagger.json

@ -11288,68 +11288,74 @@
"description": "Model for Rollup", "description": "Model for Rollup",
"examples": [ "examples": [
{ {
"deleted": "string", "id": "rl_kc19pbdkij8wly",
"fk_column_id": "string", "fk_column_id": "cl_588b63mneri2yi",
"fk_relation_column_id": "string", "fk_relation_column_id": "cl_c09q6eu6hsvn4s",
"fk_rollup_column_id": "string", "fk_rollup_column_id": "cl_m62i1vyl23n8co",
"id": "string", "rollup_function": "count"
"order": "string",
"rollup_function": "string",
"type": "string",
"virtual": true
} }
], ],
"title": "Rollup Model",
"type": "object",
"properties": { "properties": {
"deleted": { "id": {
"type": "string" "$ref": "#/components/schemas/Id",
"description": "Unique ID"
}, },
"fk_column_id": { "fk_column_id": {
"$ref": "#/components/schemas/Id", "$ref": "#/components/schemas/Id",
"description": "Foreign Key to Column" "description": "Foreign Key to Column"
}, },
"fk_relation_column_id": { "fk_relation_column_id": {
"type": "string" "$ref": "#/components/schemas/Id",
"description": "Foreign to Relation Column"
}, },
"fk_rollup_column_id": { "fk_rollup_column_id": {
"type": "string"
},
"id": {
"$ref": "#/components/schemas/Id", "$ref": "#/components/schemas/Id",
"description": "Unique ID" "description": "Foreign to Rollup Column"
},
"order": {
"type": "string"
}, },
"rollup_function": { "rollup_function": {
"type": "string" "type": "string",
}, "description": "Rollup Function",
"type": { "example": "count",
"type": "string" "enum": [
}, "count",
"virtual": { "min",
"$ref": "#/components/schemas/Bool" "max",
"avg",
"countDistinct",
"sumDistinct",
"avgDistinct"
]
} }
}, }
"title": "Rollup Model",
"type": "object"
}, },
"RollupColumnReq": { "RollupColumnReq": {
"description": "Model for Rollup Column Request", "description": "Model for Rollup Column Request",
"examples": [ "examples": [
{ {
"fk_relation_column_id": "string", "fk_relation_column_id": "cl_c09q6eu6hsvn4s",
"fk_rollup_column_id": "string", "fk_rollup_column_id": "cl_m62i1vyl23n8co",
"rollup_function": "count", "title": "Rollup Column",
"title": "string", "rollup_function": "avg",
"uidt": "Rollup" "uidt": "Rollup"
} }
], ],
"title": "Rollup Column Request Model",
"type": "object",
"properties": { "properties": {
"fk_relation_column_id": { "fk_relation_column_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id",
"description": "Foreign Key to Relation Column"
}, },
"fk_rollup_column_id": { "fk_rollup_column_id": {
"$ref": "#/components/schemas/Id" "$ref": "#/components/schemas/Id",
"description": "Foreign Key to Rollup Column"
},
"title": {
"maxLength": 255,
"type": "string",
"description": "Rollup Column Title"
}, },
"rollup_function": { "rollup_function": {
"enum": [ "enum": [
@ -11362,26 +11368,22 @@
"sum", "sum",
"sumDistinct" "sumDistinct"
], ],
"type": "string" "type": "string",
}, "description": "Rollup Function"
"title": {
"maxLength": 255,
"type": "string"
}, },
"uidt": { "uidt": {
"enum": ["Rollup"], "enum": ["Rollup"],
"type": "string" "type": "string",
"description": "UI DataType"
} }
}, },
"required": [ "required": [
"fk_relation_column_id", "fk_relation_column_id",
"fk_rollup_column_id", "fk_rollup_column_id",
"rollup_function",
"title", "title",
"rollup_function",
"uidt" "uidt"
], ]
"title": "Rollup Column Request Model",
"type": "object"
}, },
"SelectOption": { "SelectOption": {
"description": "Model for SelectOption", "description": "Model for SelectOption",

Loading…
Cancel
Save