From bd39c3fd1297ef502af109b4a6254684d3ad5ad4 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 25 Oct 2017 01:05:45 -0400 Subject: [PATCH] add source template --- srce_template.pgsql | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 srce_template.pgsql diff --git a/srce_template.pgsql b/srce_template.pgsql new file mode 100644 index 0000000..c32ace4 --- /dev/null +++ b/srce_template.pgsql @@ -0,0 +1,39 @@ +insert into tps.srce +SELECT +'CAMZ', +$$ +{ + "name": "CAMZ", + "description":"Chase Amazon Credit Card", + "type": "csv", + "schema": [ + { + "key": "Type", + "type": "text" + }, + { + "key": "Trans Date", + "type": "date" + }, + { + "key": "Post Date", + "type": "date" + }, + { + "key": "Description", + "type": "text" + }, + { + "key": "Amount", + "type": "numeric" + } + ], + "unique_constraint": { + "type": "key", + "fields": [ + "{Trans Date}" + ,"{Post Date}" + ] + } +} +$$::JSONB \ No newline at end of file