{ "tooljet_database": [ { "id": "fb0a0fd7-685e-4578-a6eb-42da3b0dafe4", "table_name": "reimbursement_requests", "schema": { "columns": [ { "column_name": "id", "data_type": "integer", "column_default": "nextval(\"fb0a0fd7-685e-4578-a6eb-42da3b0dafe4_id_seq\"", "character_maximum_length": null, "numeric_precision": 32, "constraints_type": { "is_not_null": true, "is_primary_key": true, "is_unique": false }, "keytype": "PRIMARY KEY", "configurations": {} }, { "column_name": "name", "data_type": "character varying", "column_default": null, "character_maximum_length": null, "numeric_precision": null, "constraints_type": { "is_not_null": false, "is_primary_key": false, "is_unique": false }, "keytype": "", "configurations": {} }, { "column_name": "email", "data_type": "character varying", "column_default": null, "character_maximum_length": null, "numeric_precision": null, "constraints_type": { "is_not_null": false, "is_primary_key": false, "is_unique": false }, "keytype": "", "configurations": {} }, { "column_name": "amount", "data_type": "double precision", "column_default": null, "character_maximum_length": null, "numeric_precision": 53, "constraints_type": { "is_not_null": false, "is_primary_key": false, "is_unique": false }, "keytype": "", "configurations": {} }, { "column_name": "status", "data_type": "character varying", "column_default": null, "character_maximum_length": null, "numeric_precision": null, "constraints_type": { "is_not_null": false, "is_primary_key": false, "is_unique": false }, "keytype": "", "configurations": {} }, { "column_name": "receipt_date", "data_type": "character varying", "column_default": null, "character_maximum_length": null, "numeric_precision": null, "constraints_type": { "is_not_null": false, "is_primary_key": false, "is_unique": false }, "keytype": "", "configurations": {} }, { "column_name": "file_name", "data_type": "character varying", "column_default": null, "character_maximum_length": null, "numeric_precision": null, "constraints_type": { "is_not_null": false, "is_primary_key": false, "is_unique": false }, "keytype": "", "configurations": {} } ], "foreign_keys": [] } } ], "app": [ { "definition": { "appV2": { "type": "front-end", "id": "ff50e763-dec4-40c5-bb61-1c538fbb8d78", "name": "Reimbursement tracker", "slug": "ff50e763-dec4-40c5-bb61-1c538fbb8d78", "isPublic": false, "isMaintenanceOn": false, "icon": "menuhome", "organizationId": "f2a832bb-fc39-49c5-be7f-7037ebb79b84", "currentVersionId": null, "userId": "ccf51822-9d82-4d82-81dd-22df9f3cfcfc", "workflowApiToken": null, "workflowEnabled": false, "createdAt": "2024-06-14T19:57:11.902Z", "creationMode": "DEFAULT", "updatedAt": "2024-06-14T19:57:18.364Z", "editingVersion": { "id": "eb79d124-56b9-4160-a3f5-7b81d8d73af8", "name": "v1", "definition": null, "globalSettings": { "hideHeader": true, "appInMaintenance": false, "canvasMaxWidth": 100, "canvasMaxWidthType": "%", "canvasMaxHeight": 2400, "canvasBackgroundColor": "#edeff5", "backgroundFxQuery": "", "appMode": "auto" }, "pageSettings": { "properties": { "disableMenu": { "value": "{{true}}", "fxActive": false } } }, "showViewerNavigation": false, "homePageId": "78c7fb9e-26b7-4c76-8c4d-21b541416b25", "appId": "ff50e763-dec4-40c5-bb61-1c538fbb8d78", "currentEnvironmentId": "5b7f33b3-b9a9-43b0-a9b2-82bb37fca4d4", "promotedFrom": null, "createdAt": "2024-06-14T19:57:12.059Z", "updatedAt": "2024-06-26T13:23:08.183Z" }, "components": [ { "id": "018c8c4d-8e03-4600-ac26-99aeb44fac47", "name": "text1", "type": "Text", "pageId": "284af3e9-3b36-47d3-a519-36595cda0318", "parent": "c2e10c58-32b3-45e4-8fd2-aa1e7328b6ea", "properties": { "text": { "value": "Upload new receipt" } }, "general": {}, "styles": { "textSize": { "value": "24" }, "fontWeight": { "value": "bolder" }, "textColor": { "value": "#000", "fxActive": false }, "textAlign": { "value": "left" }, "isScrollRequired": { "value": "disabled" } }, "generalStyles": {}, "displayPreferences": { "showOnDesktop": { "value": "{{true}}" }, "showOnMobile": { "value": "{{false}}" } }, "validation": {}, "createdAt": "2024-06-14T19:57:12.148Z", "updatedAt": "2024-06-14T19:57:12.148Z", "layouts": [ { "id": "306a8ce9-8d11-4b3b-bf94-db17d3183cc0", "type": "mobile", "top": 80, "left": 4, "width": 13.953488372093023, "height": 40, "componentId": "018c8c4d-8e03-4600-ac26-99aeb44fac47", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" }, { "id": "c66f8072-f693-485e-ac8c-c3938e7814d9", "type": "desktop", "top": 20, "left": 1, "width": 27, "height": 40, "componentId": "018c8c4d-8e03-4600-ac26-99aeb44fac47", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" } ] }, { "id": "c2e10c58-32b3-45e4-8fd2-aa1e7328b6ea", "name": "container1", "type": "Container", "pageId": "284af3e9-3b36-47d3-a519-36595cda0318", "parent": null, "properties": {}, "general": {}, "styles": { "borderRadius": { "value": "10" }, "borderColor": { "value": "#ffffff00" } }, "generalStyles": { "boxShadow": { "value": "0px 0px 0px 0px #00000040" } }, "displayPreferences": { "showOnDesktop": { "value": "{{true}}" }, "showOnMobile": { "value": "{{false}}" } }, "validation": {}, "createdAt": "2024-06-14T19:57:12.148Z", "updatedAt": "2024-06-14T19:57:12.148Z", "layouts": [ { "id": "a38c79ab-bcce-463e-b2d0-b7a2bcb5a361", "type": "mobile", "top": 20, "left": 15, "width": 5, "height": 200, "componentId": "c2e10c58-32b3-45e4-8fd2-aa1e7328b6ea", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" }, { "id": "f8053bdf-cd6e-414d-9910-e36c1787266c", "type": "desktop", "top": 110, "left": 1, "width": 41, "height": 620, "componentId": "c2e10c58-32b3-45e4-8fd2-aa1e7328b6ea", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" } ] }, { "id": "ce0b2b6e-c309-4d82-b117-33026e35d55c", "name": "fileUploader", "type": "FilePicker", "pageId": "284af3e9-3b36-47d3-a519-36595cda0318", "parent": "c2e10c58-32b3-45e4-8fd2-aa1e7328b6ea", "properties": { "maxSize": { "value": "{{2048576}}" }, "instructionText": { "value": "Drag and drop a file here or click to select a file" }, "maxFileCount": { "value": "{{1}}" } }, "general": {}, "styles": { "borderRadius": { "value": "{{10}}" }, "disabledState": { "fxActive": true, "value": "{{queries.extractTextFromImage.isLoading || queries.generateFileName.isLoading || queries.uploadReceiptFile.isLoading || queries.addReimbursementRequest.isLoading}}" } }, "generalStyles": {}, "displayPreferences": { "showOnDesktop": { "value": "{{true}}" }, "showOnMobile": { "value": "{{false}}" } }, "validation": {}, "createdAt": "2024-06-14T19:57:12.148Z", "updatedAt": "2024-06-14T19:57:12.148Z", "layouts": [ { "id": "6167c901-4c1e-47d9-944d-e207c650c8eb", "type": "mobile", "top": 80, "left": 5, "width": 34.883720930232556, "height": 100, "componentId": "ce0b2b6e-c309-4d82-b117-33026e35d55c", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" }, { "id": "00633b68-ff26-46f2-b85b-2b3320859032", "type": "desktop", "top": 70, "left": 1, "width": 41, "height": 440, "componentId": "ce0b2b6e-c309-4d82-b117-33026e35d55c", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" } ] }, { "id": "f97b0cda-71e2-4bde-89ec-c7a76fa5d1ee", "name": "button1", "type": "Button", "pageId": "284af3e9-3b36-47d3-a519-36595cda0318", "parent": "c2e10c58-32b3-45e4-8fd2-aa1e7328b6ea", "properties": { "text": { "value": "Upload receipt file" }, "loadingState": { "fxActive": true, "value": "{{queries.extractTextFromImage.isLoading || queries.generateFileName.isLoading || queries.uploadReceiptFile.isLoading || queries.addReimbursementRequest.isLoading}}" } }, "general": {}, "styles": { "borderRadius": { "value": "{{5}}" }, "backgroundColor": { "value": "#3e63ddff" }, "borderColor": { "value": "#ffffff00" } }, "generalStyles": {}, "displayPreferences": { "showOnDesktop": { "value": "{{true}}" }, "showOnMobile": { "value": "{{false}}" } }, "validation": {}, "createdAt": "2024-06-14T19:57:12.148Z", "updatedAt": "2024-11-10T20:25:24.262Z", "layouts": [ { "id": "ec7035cc-b920-4aa8-9d41-5cc636db0dec", "type": "mobile", "top": 330, "left": 8, "width": 6.976744186046512, "height": 30, "componentId": "f97b0cda-71e2-4bde-89ec-c7a76fa5d1ee", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" }, { "id": "01351dc5-07df-4ac5-a7ef-ff6b2efd43e4", "type": "desktop", "top": 550, "left": 1, "width": 41, "height": 40, "componentId": "f97b0cda-71e2-4bde-89ec-c7a76fa5d1ee", "dimensionUnit": "count", "updatedAt": "2024-06-26T13:23:08.145Z" } ] }, { "id": "9298de54-a023-4fb5-ba3a-9756acf74266", "name": "text2", "type": "Text", "pageId": "284af3e9-3b36-47d3-a519-36595cda0318", "parent": "c2e10c58-32b3-45e4-8fd2-aa1e7328b6ea", "properties": { "text": { "value": "Upload your receipt or invoice and we'll help you track your reimbursement." } }, "general": {}, "styles": { "textAlign": { "value": "left" }, "fontWeight": { "value": "normal" }, "textColor": { "value": "#000", "fxActive": false }, "textSize": { "value": "14" }, "isScrollRequired": { "value": "disabled" } }, "generalStyles": {}, "displayPreferences": { "showOnDesktop": { "value": "{{true}}" }, "showOnMobile": { "value": "{{false}}" } }, "validation": {}, "createdAt": "2024-06-14T19:57:12.148Z", "updatedAt": "2024-06-14T19:57:12.148Z", "layouts": [ { "id": "e5930730-2f18-49a5-b248-f53d94a94ac3", "type": "mobile", "top": 380, "left": 5, "width": 13.953488372093023, "height": 40, "componentId": "9298de54-a023-4fb5-ba3a-9756acf74266", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" }, { "id": "6702376c-3f9f-45d9-b173-a3e76bc684c4", "type": "desktop", "top": 510, "left": 1, "width": 41, "height": 30, "componentId": "9298de54-a023-4fb5-ba3a-9756acf74266", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" } ] }, { "id": "980d8310-d2f8-40e0-b9fe-6984c52f141e", "name": "container1", "type": "Container", "pageId": "78c7fb9e-26b7-4c76-8c4d-21b541416b25", "parent": null, "properties": {}, "general": {}, "styles": { "borderRadius": { "value": "10" }, "borderColor": { "value": "#ffffff00" } }, "generalStyles": {}, "displayPreferences": { "showOnDesktop": { "value": "{{true}}" }, "showOnMobile": { "value": "{{false}}" } }, "validation": {}, "createdAt": "2024-06-14T19:57:12.148Z", "updatedAt": "2024-06-14T19:57:12.148Z", "layouts": [ { "id": "ad517271-4685-41a3-b02d-0efa5d57cd53", "type": "mobile", "top": 80, "left": 1, "width": 5, "height": 200, "componentId": "980d8310-d2f8-40e0-b9fe-6984c52f141e", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" }, { "id": "69e3ae08-beb6-4f8e-a93f-98883b4cb2be", "type": "desktop", "top": 110, "left": 1, "width": 41, "height": 620, "componentId": "980d8310-d2f8-40e0-b9fe-6984c52f141e", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" } ] }, { "id": "492117e3-b0f7-4e52-be0d-3ba56a55be23", "name": "text1", "type": "Text", "pageId": "78c7fb9e-26b7-4c76-8c4d-21b541416b25", "parent": "980d8310-d2f8-40e0-b9fe-6984c52f141e", "properties": { "text": { "value": "Reimbursement requests" } }, "general": {}, "styles": { "textSize": { "value": "24" }, "fontWeight": { "value": "bolder" }, "textAlign": { "value": "left" }, "isScrollRequired": { "value": "disabled" } }, "generalStyles": {}, "displayPreferences": { "showOnDesktop": { "value": "{{true}}" }, "showOnMobile": { "value": "{{false}}" } }, "validation": {}, "createdAt": "2024-06-14T19:57:12.148Z", "updatedAt": "2024-06-14T19:57:12.148Z", "layouts": [ { "id": "a24a53d7-3460-4e55-82bc-247c4221df2d", "type": "mobile", "top": 0, "left": 0, "width": 6, "height": 40, "componentId": "492117e3-b0f7-4e52-be0d-3ba56a55be23", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" }, { "id": "4a5a74ab-14de-45df-bef3-5273da963dc3", "type": "desktop", "top": 20, "left": 1, "width": 18, "height": 40, "componentId": "492117e3-b0f7-4e52-be0d-3ba56a55be23", "dimensionUnit": "count", "updatedAt": "2024-06-18T07:17:22.460Z" } ] }, { "id": "0ecc6658-3a52-4f79-ac2c-c040852834c8", "name": "table1", "type": "Table", "pageId": "78c7fb9e-26b7-4c76-8c4d-21b541416b25", "parent": "980d8310-d2f8-40e0-b9fe-6984c52f141e", "properties": { "allowSelection": { "value": "{{false}}" }, "highlightSelectedRow": { "value": "{{true}}" }, "data": { "value": "{{queries.getReimbursementRequests.data}}" }, "columns": { "value": [ { "id": "9b23fa15-2dfe-4c69-8e15-4a7b1b42b8b8", "name": "name", "key": "name", "columnType": "string", "autogenerated": true }, { "id": "a8bf5fca-02cb-4bd1-8046-5523e39ec8e6", "name": "status", "key": "status", "columnType": "string", "autogenerated": true }, { "id": "7d87f993-1bce-4515-be06-f0febd18017b", "name": "amount", "key": "amount", "columnType": "number", "autogenerated": true }, { "id": "3fac5288-d96c-49cd-aea8-1e3aa92b498d", "name": "receipt date", "key": "receipt_date", "columnType": "string", "autogenerated": true }, { "name": "email", "id": "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f", "autogenerated": true, "fxActiveFields": [], "columnSize": 230, "columnType": "string" } ] }, "columnDeletionHistory": { "value": [ "receipt_url", "id", "file_name" ] }, "actions": { "value": [ { "name": "Action0", "buttonText": "Approve", "events": [], "position": "right", "backgroundColor": "#37a6381a", "textColor": "#37a638ff", "fxActiveFields": [ "disableActionButton" ], "disableActionButton": "{{queries.rejectRequest.isLoading || queries.approveRequest.isLoading}}" }, { "name": "Action1", "buttonText": "Reject", "events": [], "position": "right", "textColor": "#df3a21ff", "backgroundColor": "#df3a211a", "fxActiveFields": [ "disableActionButton" ], "disableActionButton": "{{queries.rejectRequest.isLoading || queries.approveRequest.isLoading}}" }, { "name": "Action2", "buttonText": "View Receipt", "events": [], "position": "right" } ] }, "columnSizes": { "value": { "afc9a5091750a1bd4760e38760de3b4be11a43452ae8ae07ce2eebc569fe9a7f": 107, "9b23fa15-2dfe-4c69-8e15-4a7b1b42b8b8": 119, "84cf3a07-f50a-43e3-80cd-4d76a266b57c": 163, "a8bf5fca-02cb-4bd1-8046-5523e39ec8e6": 115, "3fac5288-d96c-49cd-aea8-1e3aa92b498d": 163, "7d87f993-1bce-4515-be06-f0febd18017b": 112 } }, "loadingState": { "fxActive": true, "value": "{{queries.getReimbursementRequests.isLoading}}" }, "title": { "value": "Table" }, "visible": { "value": "{{true}}" }, "useDynamicColumn": { "value": "{{false}}" }, "columnData": { "value": "{{[{name: 'email', key: 'email', id: '1'}, {name: 'Full name', key: 'name', id: '2', isEditable: true}]}}" }, "rowsPerPage": { "value": "{{10}}" }, "serverSidePagination": { "value": "{{false}}" }, "enableNextButton": { "value": "{{true}}" }, "enablePrevButton": { "value": "{{true}}" }, "totalRecords": { "value": "{{10}}" }, "enablePagination": { "value": "{{true}}" }, "serverSideSort": { "value": "{{false}}" }, "serverSideFilter": { "value": "{{false}}" }, "displaySearchBox": { "value": "{{true}}" }, "showDownloadButton": { "value": "{{true}}" }, "showFilterButton": { "value": "{{true}}" }, "autogenerateColumns": { "value": true, "generateNestedColumns": true }, "isAllColumnsEditable": { "value": "{{false}}" }, "showBulkUpdateActions": { "value": "{{true}}" }, "showBulkSelector": { "value": "{{false}}" }, "enabledSort": { "value": "{{true}}" }, "hideColumnSelectorButton": { "value": "{{false}}" }, "defaultSelectedRow": { "value": "{{{\"id\":1}}}" }, "showAddNewRowButton": { "value": "{{true}}" }, "visibility": { "value": "{{true}}" }, "disabledState": { "value": "{{false}}" } }, "general": {}, "styles": { "actionButtonRadius": { "value": "5" }, "borderRadius": { "value": "10" }, "textColor": { "value": "#000" }, "columnHeaderWrap": { "value": "fixed" }, "cellSize": { "value": "regular" }, "tableType": { "value": "table-classic" }, "maxRowHeight": { "value": "auto" }, "maxRowHeightValue": { "value": "{{0}}" }, "contentWrap": { "value": "{{true}}" }, "boxShadow": { "value": "0px 0px 0px 0px #00000090" }, "padding": { "value": "default" } }, "generalStyles": { "boxShadow": { "value": "0px 0px 0px 0px #00000040" } }, "displayPreferences": { "showOnDesktop": { "value": "{{true}}" }, "showOnMobile": { "value": "{{false}}" } }, "validation": {}, "createdAt": "2024-06-14T19:57:12.148Z", "updatedAt": "2024-12-03T00:45:40.702Z", "layouts": [ { "id": "e320672a-00aa-43ba-ae8b-ca345f18634d", "type": "mobile", "top": 90, "left": 0, "width": 81.3953488372093, "height": 456, "componentId": "0ecc6658-3a52-4f79-ac2c-c040852834c8", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" }, { "id": "95dc6e41-7d2a-4ab4-aa57-f3021f8b0436", "type": "desktop", "top": 74, "left": 1, "width": 41, "height": 520, "componentId": "0ecc6658-3a52-4f79-ac2c-c040852834c8", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" } ] }, { "id": "436979f3-a776-4e91-b4a4-12c001c793cc", "name": "text3", "type": "Text", "pageId": "78c7fb9e-26b7-4c76-8c4d-21b541416b25", "parent": "715dcbf2-1807-4313-8d24-b5cd2708afa6", "properties": { "text": { "value": "B R A N D" } }, "general": {}, "styles": { "textColor": { "value": "#000", "fxActive": false }, "textSize": { "value": "{{24}}" }, "fontWeight": { "value": "bold" }, "letterSpacing": { "value": "{{0}}" }, "boxShadow": { "value": "0px 0px 0px 0px #00000040" }, "isScrollRequired": { "value": "disabled" } }, "generalStyles": {}, "displayPreferences": { "showOnDesktop": { "value": "{{true}}" }, "showOnMobile": { "value": "{{false}}" } }, "validation": {}, "createdAt": "2024-06-14T19:57:12.148Z", "updatedAt": "2024-06-14T19:57:12.148Z", "layouts": [ { "id": "c5568ebc-362f-46e5-bb66-f3c4fedd0b53", "type": "desktop", "top": 10, "left": 1, "width": 6, "height": 40, "componentId": "436979f3-a776-4e91-b4a4-12c001c793cc", "dimensionUnit": "count", "updatedAt": "2024-06-18T06:49:19.719Z" } ] }, { "id": "88540d4b-2305-478a-b813-139846995089", "name": "text2", "type": "Text", "pageId": "78c7fb9e-26b7-4c76-8c4d-21b541416b25", "parent": "715dcbf2-1807-4313-8d24-b5cd2708afa6", "properties": { "text": { "value": "