tps/srce_template.pgsql
2017-10-25 01:05:45 -04:00

39 lines
697 B
PL/PgSQL

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