我是Heroku的新手。我有一个帐户,并安装了Heroku Postgres。我想创建一个发票表,我可以使用以下JSON通过REST API将记录发送(PUT)记录到该表:
{
"customerId": "12345abcd",
"addressId": "1000AA25",
"invoiceId": "c000X000021KuMi",
"invoiceType": "MontlyPayment",
"invoiceTypeLocalized": "Pending",
"invoiceDate": "2016-08-14T00:00:00",
"DueDate": "2016-09-14T00:00:00",
"invoiceNumber": "123456",
"startDate": "2016-07-01T00:00:00",
"endDate": "2017-07-01T00:00:00",
"Description": "july 2016",
"amount": 100.10,
"vatAmount": 50.50,
"totalAmount": 150.60
}
我可以在Heroku中创建表还是通过命令行或应用程序执行此操作?