From 43f9bb2d10f6ecc955e42dba143bfac5a7e35896 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Sun, 2 Dec 2018 01:10:34 -0500 Subject: [PATCH] update target source schema sample --- database/templates/srce.json | 138 ++++++++++++++++++----------------- 1 file changed, 72 insertions(+), 66 deletions(-) diff --git a/database/templates/srce.json b/database/templates/srce.json index bea9cbd..daaf1e4 100644 --- a/database/templates/srce.json +++ b/database/templates/srce.json @@ -7,70 +7,76 @@ "{Post Date}", "{Description}" ], - "schemas": { - "default": [ - { - "path": "{Trans. Date}", - "type": "date", - "column_name": "Trans. Date" - }, - { - "path": "{Post Date}", - "type": "date", - "column_name": "Post Date" - }, - { - "path": "{Description}", - "type": "text", - "column_name": "Description" - }, - { - "path": "{Amount}", - "type": "numeric", - "column_name": "Amount" - }, - { - "path": "{Category}", - "type": "text", - "column_name": "Category" - } - ], - "mapped": [ - { - "path": "{Trans. Date}", - "type": "date", - "column_name": "Trans. Date" - }, - { - "path": "{Post Date}", - "type": "date", - "column_name": "Post Date" - }, - { - "path": "{Description}", - "type": "text", - "column_name": "Description" - }, - { - "path": "{Amount}", - "type": "numeric", - "column_name": "Amount" - }, - { - "path": "{Category}", - "type": "text", - "column_name": "Category" - }, - { - "path": "{party}", - "type": "text", - "column_name": "Party" - }, - { - "path": "{reason}", - "type": "text", - "column_name": "Reason" - } - ] - } + "schemas": [ + { + "name": "default", + "columns": [ + { + "path": "{Trans. Date}", + "type": "date", + "column_name": "Trans. Date" + }, + { + "path": "{Post Date}", + "type": "date", + "column_name": "Post Date" + }, + { + "path": "{Description}", + "type": "text", + "column_name": "Description" + }, + { + "path": "{Amount}", + "type": "numeric", + "column_name": "Amount" + }, + { + "path": "{Category}", + "type": "text", + "column_name": "Category" + } + ] + }, + { + "name": "mapped", + "columns": [ + { + "path": "{Trans. Date}", + "type": "date", + "column_name": "Trans. Date" + }, + { + "path": "{Post Date}", + "type": "date", + "column_name": "Post Date" + }, + { + "path": "{Description}", + "type": "text", + "column_name": "Description" + }, + { + "path": "{Amount}", + "type": "numeric", + "column_name": "Amount" + }, + { + "path": "{Category}", + "type": "text", + "column_name": "Category" + }, + { + "path": "{party}", + "type": "text", + "column_name": "Party" + }, + { + "path": "{reason}", + "type": "text", + "column_name": "Reason" + } + ] + } + ] } \ No newline at end of file