Files
tilbudgivern/api_data_formats_analysis.json
Alex 10473e8a32 feat: Add complete data import and incremental update scripts for Ordrestyring
- Implemented setup_ordrestyring_import.sh for initial database setup and data import from API.
- Created sync_ordrestyring_data.sh for incremental updates to the local database.
- Developed test_ordrestyring_import.js to validate API data import functionality.
- Added test_enhanced_quote_demo.js to demonstrate the enhanced quote system using hybrid data sources.
- Introduced test_ordrestyring_system.sh for comprehensive testing of the database system and API functionality.
- Enhanced logging and error handling across scripts for better traceability.
- Included analysis script creation for post-import data analysis.
2025-09-19 15:06:03 +02:00

1184 lines
38 KiB
JSON

{
"timestamp": "2025-09-19T11:35:37.736Z",
"endpoints": {
"/cases": {
"available": true,
"totalRecords": 1783,
"sampleRecord": {
"yourref": null,
"requestor": null,
"creation_date": 1758188763,
"description": "forsikringssag i kælder",
"main_technician": null,
"status": 99991,
"made_by": 34,
"offer_number": null,
"additional_technicians": null,
"remarks": null,
"work_done": null,
"delivery_address": null,
"contact": null,
"case_type": null,
"department": null,
"no_materials": null,
"case_number": "2593",
"sub_number": null,
"upper_case_number": null,
"updated_at": 1758188763,
"created_at": 1758188763,
"customer_number": "3334"
},
"structure": {
"yourref": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"requestor": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"creation_date": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758188763
},
"description": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 24,
"sampleValue": "forsikringssag i kælder"
},
"main_technician": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"status": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 99991
},
"made_by": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 34
},
"offer_number": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"additional_technicians": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"remarks": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"work_done": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"delivery_address": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"contact": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"case_type": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"department": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"no_materials": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"case_number": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "2593"
},
"sub_number": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"upper_case_number": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"updated_at": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758188763
},
"created_at": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758188763
},
"customer_number": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "3334"
}
},
"suggestedTableName": "cases",
"sqlSchema": "CREATE TABLE IF NOT EXISTS cases (\n id INT AUTO_INCREMENT PRIMARY KEY,\n yourref TEXT NULL,\n requestor TEXT NULL,\n creation_date INT NULL,\n description VARCHAR(255) NULL,\n main_technician TEXT NULL,\n status INT NULL,\n made_by INT NULL,\n offer_number TEXT NULL,\n additional_technicians TEXT NULL,\n remarks TEXT NULL,\n work_done TEXT NULL,\n delivery_address TEXT NULL,\n contact TEXT NULL,\n case_type TEXT NULL,\n department TEXT NULL,\n no_materials TEXT NULL,\n case_number VARCHAR(255) NULL,\n sub_number TEXT NULL,\n upper_case_number TEXT NULL,\n updated_at INT NULL,\n created_at INT NULL,\n customer_number VARCHAR(255) NULL\n);"
},
"/case-materials": {
"available": true,
"totalRecords": 36943,
"sampleRecord": {
"id": 136742,
"quantity": -20,
"ean": "",
"product_number": "292372",
"product_text": "PROFI TOPLÆGTEBESLAG 40MM JUSTERBAR 100 STK/KS",
"supplier": "Bygma Herlev",
"discount": ".000",
"cost_price": "2621.000",
"list_price": "2621.000",
"sales_price": "3014.000",
"created_by": 86,
"added_type": "1",
"edi_invoice_number": "072274875",
"updated_at": 1758274177,
"created_at": 1758274177,
"added_time": 1758146400,
"case_number": "2591"
},
"structure": {
"id": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 136742
},
"quantity": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": -20
},
"ean": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 0,
"sampleValue": ""
},
"product_number": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 6,
"sampleValue": "292372"
},
"product_text": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 47,
"sampleValue": "PROFI TOPLÆGTEBESLAG 40MM JUSTERBAR 100 STK/KS"
},
"supplier": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 12,
"sampleValue": "Bygma Herlev"
},
"discount": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": ".000"
},
"cost_price": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 8,
"sampleValue": "2621.000"
},
"list_price": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 8,
"sampleValue": "2621.000"
},
"sales_price": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 8,
"sampleValue": "3014.000"
},
"created_by": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 86
},
"added_type": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 1,
"sampleValue": "1"
},
"edi_invoice_number": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 9,
"sampleValue": "072274875"
},
"updated_at": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758274177
},
"created_at": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758274177
},
"added_time": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758146400
},
"case_number": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "2591"
}
},
"suggestedTableName": "case_materials",
"sqlSchema": "CREATE TABLE IF NOT EXISTS case_materials (\n id INT PRIMARY KEY,\n quantity INT NULL,\n ean VARCHAR(255) NULL,\n product_number VARCHAR(255) NULL,\n product_text VARCHAR(255) NULL,\n supplier VARCHAR(255) NULL,\n discount VARCHAR(255) NULL,\n cost_price VARCHAR(255) NULL,\n list_price VARCHAR(255) NULL,\n sales_price VARCHAR(255) NULL,\n created_by INT NULL,\n added_type VARCHAR(255) NULL,\n edi_invoice_number VARCHAR(255) NULL,\n updated_at INT NULL,\n created_at INT NULL,\n added_time INT NULL,\n case_number VARCHAR(255) NULL\n);"
},
"/hours": {
"available": true,
"totalRecords": 20911,
"sampleRecord": {
"id": 36656,
"emp_id": 51,
"start_time": 1758265200,
"stop_time": 1758276000,
"remark": "",
"hour_type": 1,
"updated_at": 1758274329,
"created_at": 1758274329,
"costprice": 100000,
"exported": false,
"approval_status": 1,
"new_case_number": "2572"
},
"structure": {
"id": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 36656
},
"emp_id": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 51
},
"start_time": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758265200
},
"stop_time": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758276000
},
"remark": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 0,
"sampleValue": ""
},
"hour_type": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1
},
"updated_at": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758274329
},
"created_at": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758274329
},
"costprice": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 100000
},
"exported": {
"type": "boolean",
"sqlType": "BOOLEAN",
"maxLength": null,
"sampleValue": false
},
"approval_status": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1
},
"new_case_number": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "2572"
}
},
"suggestedTableName": "hours",
"sqlSchema": "CREATE TABLE IF NOT EXISTS hours (\n id INT PRIMARY KEY,\n emp_id INT NULL,\n start_time INT NULL,\n stop_time INT NULL,\n remark VARCHAR(255) NULL,\n hour_type INT NULL,\n updated_at INT NULL,\n created_at INT NULL,\n costprice INT NULL,\n exported BOOLEAN NULL,\n approval_status INT NULL,\n new_case_number VARCHAR(255) NULL\n);"
},
"/debtors": {
"available": true,
"totalRecords": 1335,
"sampleRecord": {
"customer_name": "Lars - dør",
"customer_attention": null,
"customer_address": null,
"customer_postalcode": "",
"customer_city": "",
"customer_telephone": null,
"customer_email": "mortenboholm@gamil.com",
"customer_mobile": null,
"invoice_name": "Lars - dør",
"invoice_address": null,
"invoice_postalcode": null,
"invoice_city": null,
"invoice_telephone": null,
"invoice_email": "mortenboholm@gmail.com",
"invoice_mobile": null,
"due_dates": 16,
"cvr": null,
"ean": "",
"customer_remarks": null,
"customer_number": "2001",
"status": 15,
"invoice_attention": null,
"avance_type": 0,
"updated_at": 1741031531,
"is_blocked": true,
"created_at": null,
"pdf_layout_id": 1,
"currency_id": 21,
"invoice_social_security_number": null,
"invoice_property_designation": null,
"invoice_residence_association_organisation_number": null,
"invoice_vat_number": null
},
"structure": {
"customer_name": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 10,
"sampleValue": "Lars - dør"
},
"customer_attention": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"customer_address": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"customer_postalcode": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 0,
"sampleValue": ""
},
"customer_city": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 0,
"sampleValue": ""
},
"customer_telephone": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"customer_email": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 22,
"sampleValue": "mortenboholm@gamil.com"
},
"customer_mobile": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"invoice_name": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 10,
"sampleValue": "Lars - dør"
},
"invoice_address": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"invoice_postalcode": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"invoice_city": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"invoice_telephone": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"invoice_email": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 22,
"sampleValue": "mortenboholm@gmail.com"
},
"invoice_mobile": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"due_dates": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 16
},
"cvr": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"ean": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 0,
"sampleValue": ""
},
"customer_remarks": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"customer_number": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "2001"
},
"status": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 15
},
"invoice_attention": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"avance_type": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 0
},
"updated_at": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1741031531
},
"is_blocked": {
"type": "boolean",
"sqlType": "BOOLEAN",
"maxLength": null,
"sampleValue": true
},
"created_at": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"pdf_layout_id": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1
},
"currency_id": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 21
},
"invoice_social_security_number": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"invoice_property_designation": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"invoice_residence_association_organisation_number": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"invoice_vat_number": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
}
},
"suggestedTableName": "debtors",
"sqlSchema": "CREATE TABLE IF NOT EXISTS debtors (\n id INT AUTO_INCREMENT PRIMARY KEY,\n customer_name VARCHAR(255) NULL,\n customer_attention TEXT NULL,\n customer_address TEXT NULL,\n customer_postalcode VARCHAR(255) NULL,\n customer_city VARCHAR(255) NULL,\n customer_telephone TEXT NULL,\n customer_email VARCHAR(255) NULL,\n customer_mobile TEXT NULL,\n invoice_name VARCHAR(255) NULL,\n invoice_address TEXT NULL,\n invoice_postalcode TEXT NULL,\n invoice_city TEXT NULL,\n invoice_telephone TEXT NULL,\n invoice_email VARCHAR(255) NULL,\n invoice_mobile TEXT NULL,\n due_dates INT NULL,\n cvr TEXT NULL,\n ean VARCHAR(255) NULL,\n customer_remarks TEXT NULL,\n customer_number VARCHAR(255) NULL,\n status INT NULL,\n invoice_attention TEXT NULL,\n avance_type INT NULL,\n updated_at INT NULL,\n is_blocked BOOLEAN NULL,\n created_at TEXT NULL,\n pdf_layout_id INT NULL,\n currency_id INT NULL,\n invoice_social_security_number TEXT NULL,\n invoice_property_designation TEXT NULL,\n invoice_residence_association_organisation_number TEXT NULL,\n invoice_vat_number TEXT NULL\n);"
},
"/debtor-invoices": {
"available": true,
"totalRecords": 2441,
"sampleRecord": {
"invoice_name": "Dumitru",
"invoice_address": "Kragebøl Alle 14",
"invoice_postalcode": "2770",
"invoice_city": "Kastrup",
"cust_name": "Dumitru",
"cust_address": "Kragebøl Alle 14",
"cust_postalcode": "2770",
"cust_city": "Kastrup",
"del_name": null,
"del_address": null,
"del_city": null,
"del_postalcode": null,
"text": "<p>Eksisterende rygningstegl demonteres og opbevares på taget til senere genmontering<br>Tag og rygninger renses for Rufa-kit og Rufa-kit affalds håndteres<br>kipbeslag monteres pr. max 100 cm.<br>kipplanke monteres i beslag i korrekt højde<br>Nyt sort ventileret kip bånd monteres på planker og foldes pænt omkring tegl<br>eksisterende rygnings tegl monteres med nye sorte rygningsbeslag</p><p><br>Tilbud omfatter: Levering af materialer, udførsel af arbejde samt bortkørsel af affald.<br>Denne reparation er den mest økonomiske løsning for at forbedre tagets tilstand. Det er vigtigt at være<br>opmærksom på, at dette arbejde ikke kan garantere, at alle utætheder vil være helt udbedret, da arbejdet<br>primært har til formål at lukke synlige huller og forbedre tagets funktion. Der kan stadig være mindre<br>utætheder efter arbejdet. Vi gør selvfølgelig vores bedste for at opnå et godt resultat, men kan ikke<br>garantere, at taget er helt tæt efter reparationen.</p><p>&nbsp;</p><p>&nbsp;</p>",
"date": 1758232800,
"payment_date": 1758924000,
"type": 1,
"ref": null,
"rek": null,
"customer_number": "3325",
"made_by": 86,
"amount": "3850000.000",
"vat": "962500.000",
"amount_vat": "4812500.000",
"fi_number": null,
"header": "Reparation af tag",
"status": 99995,
"del_att": null,
"cust_att": null,
"invoice_att": null,
"payed_date": null,
"payed_amount": ".000",
"invoice_number": 3240,
"department": null,
"updated_at": 1758273973,
"created_at": 1758273969,
"cust_cvr": null,
"use_skattered": false,
"currency_code": "DKK",
"currency_multiplier": 1,
"case_number": "2591"
},
"structure": {
"invoice_name": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 7,
"sampleValue": "Dumitru"
},
"invoice_address": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 16,
"sampleValue": "Kragebøl Alle 14"
},
"invoice_postalcode": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "2770"
},
"invoice_city": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 7,
"sampleValue": "Kastrup"
},
"cust_name": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 7,
"sampleValue": "Dumitru"
},
"cust_address": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 16,
"sampleValue": "Kragebøl Alle 14"
},
"cust_postalcode": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "2770"
},
"cust_city": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 7,
"sampleValue": "Kastrup"
},
"del_name": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"del_address": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"del_city": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"del_postalcode": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"text": {
"type": "string",
"sqlType": "TEXT",
"maxLength": 997,
"sampleValue": "<p>Eksisterende rygningstegl demonteres og opbevares på taget til senere genmontering<br>Tag og rygninger renses for Rufa-kit og Rufa-kit affalds håndteres<br>kipbeslag monteres pr. max 100 cm.<br>kipplanke monteres i beslag i korrekt højde<br>Nyt sort ventileret kip bånd monteres på planker og foldes pænt omkring tegl<br>eksisterende rygnings tegl monteres med nye sorte rygningsbeslag</p><p><br>Tilbud omfatter: Levering af materialer, udførsel af arbejde samt bortkørsel af affald.<br>Denne reparation er den mest økonomiske løsning for at forbedre tagets tilstand. Det er vigtigt at være<br>opmærksom på, at dette arbejde ikke kan garantere, at alle utætheder vil være helt udbedret, da arbejdet<br>primært har til formål at lukke synlige huller og forbedre tagets funktion. Der kan stadig være mindre<br>utætheder efter arbejdet. Vi gør selvfølgelig vores bedste for at opnå et godt resultat, men kan ikke<br>garantere, at taget er helt tæt efter reparationen.</p><p>&nbsp;</p><p>&nbsp;</p>"
},
"date": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758232800
},
"payment_date": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758924000
},
"type": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1
},
"ref": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"rek": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"customer_number": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "3325"
},
"made_by": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 86
},
"amount": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 11,
"sampleValue": "3850000.000"
},
"vat": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 10,
"sampleValue": "962500.000"
},
"amount_vat": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 11,
"sampleValue": "4812500.000"
},
"fi_number": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"header": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 17,
"sampleValue": "Reparation af tag"
},
"status": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 99995
},
"del_att": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"cust_att": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"invoice_att": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"payed_date": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"payed_amount": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": ".000"
},
"invoice_number": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 3240
},
"department": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"updated_at": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758273973
},
"created_at": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1758273969
},
"cust_cvr": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"use_skattered": {
"type": "boolean",
"sqlType": "BOOLEAN",
"maxLength": null,
"sampleValue": false
},
"currency_code": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 3,
"sampleValue": "DKK"
},
"currency_multiplier": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1
},
"case_number": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "2591"
}
},
"suggestedTableName": "debtor_invoices",
"sqlSchema": "CREATE TABLE IF NOT EXISTS debtor_invoices (\n id INT AUTO_INCREMENT PRIMARY KEY,\n invoice_name VARCHAR(255) NULL,\n invoice_address VARCHAR(255) NULL,\n invoice_postalcode VARCHAR(255) NULL,\n invoice_city VARCHAR(255) NULL,\n cust_name VARCHAR(255) NULL,\n cust_address VARCHAR(255) NULL,\n cust_postalcode VARCHAR(255) NULL,\n cust_city VARCHAR(255) NULL,\n del_name TEXT NULL,\n del_address TEXT NULL,\n del_city TEXT NULL,\n del_postalcode TEXT NULL,\n text TEXT NULL,\n date INT NULL,\n payment_date INT NULL,\n type INT NULL,\n ref TEXT NULL,\n rek TEXT NULL,\n customer_number VARCHAR(255) NULL,\n made_by INT NULL,\n amount VARCHAR(255) NULL,\n vat VARCHAR(255) NULL,\n amount_vat VARCHAR(255) NULL,\n fi_number TEXT NULL,\n header VARCHAR(255) NULL,\n status INT NULL,\n del_att TEXT NULL,\n cust_att TEXT NULL,\n invoice_att TEXT NULL,\n payed_date TEXT NULL,\n payed_amount VARCHAR(255) NULL,\n invoice_number INT NULL,\n department TEXT NULL,\n updated_at INT NULL,\n created_at INT NULL,\n cust_cvr TEXT NULL,\n use_skattered BOOLEAN NULL,\n currency_code VARCHAR(255) NULL,\n currency_multiplier INT NULL,\n case_number VARCHAR(255) NULL\n);"
},
"/users": {
"available": true,
"totalRecords": 50,
"sampleRecord": {
"init": "Alex",
"last_name": "Nielsen (23)",
"tlf": "29885550",
"mobil_privat": "29885550",
"first_name": "Alex Tue",
"id": 56,
"status": 999913,
"email": "alex@mikaelholck.dk",
"department_id": null,
"employee_type_id": 1,
"fullName": "Alex Tue Nielsen (23)"
},
"structure": {
"init": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "Alex"
},
"last_name": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 12,
"sampleValue": "Nielsen (23)"
},
"tlf": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 8,
"sampleValue": "29885550"
},
"mobil_privat": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 8,
"sampleValue": "29885550"
},
"first_name": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 8,
"sampleValue": "Alex Tue"
},
"id": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 56
},
"status": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 999913
},
"email": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 19,
"sampleValue": "alex@mikaelholck.dk"
},
"department_id": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"employee_type_id": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1
},
"fullName": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 21,
"sampleValue": "Alex Tue Nielsen (23)"
}
},
"suggestedTableName": "users",
"sqlSchema": "CREATE TABLE IF NOT EXISTS users (\n id INT PRIMARY KEY,\n init VARCHAR(255) NULL,\n last_name VARCHAR(255) NULL,\n tlf VARCHAR(255) NULL,\n mobil_privat VARCHAR(255) NULL,\n first_name VARCHAR(255) NULL,\n status INT NULL,\n email VARCHAR(255) NULL,\n department_id TEXT NULL,\n employee_type_id INT NULL,\n fullName VARCHAR(255) NULL\n);"
},
"/departments": {
"available": false,
"error": "No records in response"
},
"/case-types": {
"available": true,
"totalRecords": 2,
"sampleRecord": {
"id": 999914,
"text": "Ny",
"site": "case_type",
"colorcode": null,
"show_in_app": false,
"show_in_app_status_change": false
},
"structure": {
"id": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 999914
},
"text": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 2,
"sampleValue": "Ny"
},
"site": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 9,
"sampleValue": "case_type"
},
"colorcode": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"show_in_app": {
"type": "boolean",
"sqlType": "BOOLEAN",
"maxLength": null,
"sampleValue": false
},
"show_in_app_status_change": {
"type": "boolean",
"sqlType": "BOOLEAN",
"maxLength": null,
"sampleValue": false
}
},
"suggestedTableName": "case_types",
"sqlSchema": "CREATE TABLE IF NOT EXISTS case_types (\n id INT PRIMARY KEY,\n text VARCHAR(255) NULL,\n site VARCHAR(255) NULL,\n colorcode TEXT NULL,\n show_in_app BOOLEAN NULL,\n show_in_app_status_change BOOLEAN NULL\n);"
},
"/case-statuses": {
"available": true,
"totalRecords": 6,
"sampleRecord": {
"id": 99991,
"text": "Åben",
"site": "order",
"colorcode": "71C932",
"show_in_app": true,
"show_in_app_status_change": false
},
"structure": {
"id": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 99991
},
"text": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "Åben"
},
"site": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 5,
"sampleValue": "order"
},
"colorcode": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 6,
"sampleValue": "71C932"
},
"show_in_app": {
"type": "boolean",
"sqlType": "BOOLEAN",
"maxLength": null,
"sampleValue": true
},
"show_in_app_status_change": {
"type": "boolean",
"sqlType": "BOOLEAN",
"maxLength": null,
"sampleValue": false
}
},
"suggestedTableName": "case_statuses",
"sqlSchema": "CREATE TABLE IF NOT EXISTS case_statuses (\n id INT PRIMARY KEY,\n text VARCHAR(255) NULL,\n site VARCHAR(255) NULL,\n colorcode VARCHAR(255) NULL,\n show_in_app BOOLEAN NULL,\n show_in_app_status_change BOOLEAN NULL\n);"
},
"/employee-types": {
"available": true,
"totalRecords": 24,
"sampleRecord": {
"id": 1,
"title": "Svend",
"internal_number": "1002",
"is_personal": false,
"color": "#d2d6d4",
"updated_at": 1642533484,
"created_at": null,
"salary_handle": null,
"sort_order": 6
},
"structure": {
"id": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1
},
"title": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 5,
"sampleValue": "Svend"
},
"internal_number": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 4,
"sampleValue": "1002"
},
"is_personal": {
"type": "boolean",
"sqlType": "BOOLEAN",
"maxLength": null,
"sampleValue": false
},
"color": {
"type": "string",
"sqlType": "VARCHAR(255)",
"maxLength": 7,
"sampleValue": "#d2d6d4"
},
"updated_at": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 1642533484
},
"created_at": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"salary_handle": {
"type": "null",
"sqlType": "TEXT NULL",
"maxLength": null,
"sampleValue": null
},
"sort_order": {
"type": "number",
"sqlType": "INT",
"maxLength": null,
"sampleValue": 6
}
},
"suggestedTableName": "employee_types",
"sqlSchema": "CREATE TABLE IF NOT EXISTS employee_types (\n id INT PRIMARY KEY,\n title VARCHAR(255) NULL,\n internal_number VARCHAR(255) NULL,\n is_personal BOOLEAN NULL,\n color VARCHAR(255) NULL,\n updated_at INT NULL,\n created_at TEXT NULL,\n salary_handle TEXT NULL,\n sort_order INT NULL\n);"
}
}
}