diff --git a/reload/pncc/srce.cmd b/reload/pncc/srce.cmd new file mode 100644 index 0000000..caed4f2 --- /dev/null +++ b/reload/pncc/srce.cmd @@ -0,0 +1 @@ +curl -H "Content-Type: application/json" -X POST -d@./srce.json http://localhost:81/srce_set \ No newline at end of file diff --git a/reload/pncc/srce.json b/reload/pncc/srce.json new file mode 100644 index 0000000..6a4e78f --- /dev/null +++ b/reload/pncc/srce.json @@ -0,0 +1,67 @@ +{ + "name": "pncc", + "source": "client_file", + "loading_function": "csv", + "constraint": [ + "{AsOfDate}" + ], + "schemas": { + "default": [ + { + "path": "AsOfDate", + "type": "date", + "column_name": "AsOfDate" + }, + { + "path": "BankId", + "type": "text", + "column_name": "BankId" + }, + { + "path": "AccountNumber", + "type": "text", + "column_name": "AccountNumber" + }, + { + "path": "AccountName", + "type": "text", + "column_name": "AccountName" + }, + { + "path": "BaiControl", + "type": "text", + "column_name": "BaiControl" + }, + { + "path": "Currency", + "type": "text", + "column_name": "Currency" + }, + { + "path": "Transaction", + "type": "text", + "column_name": "Transaction" + }, + { + "path": "Reference", + "type": "text", + "column_name": "Reference" + }, + { + "path": "Amount", + "type": "text", + "column_name": "Amount" + }, + { + "path": "Description", + "type": "text", + "column_name": "Description" + }, + { + "path": "AdditionalRemittance", + "type": "text", + "column_name": "AdditionalRemittance" + } + ] + } +} \ No newline at end of file