Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 1,376–1,400 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 1376 | credit_card | 1500 | 2016-07-08 16:50:31 |
| 1377 | credit_card | 3400 | 2016-07-09 08:52:26 |
| 1378 | digital_wallet | 4500 | 2016-07-09 12:19:04 |
| 1379 | credit_card | 400 | 2016-07-11 09:24:08 |
| 1380 | debit_card | 3400 | 2016-07-11 10:35:58 |
| 1381 | digital_wallet | 6800 | 2016-07-11 10:54:39 |
| 1382 | cash | 3400 | 2016-07-11 11:04:49 |
| 1383 | credit_card | 800 | 2016-07-11 11:29:37 |
| 1384 | cash | 3400 | 2016-07-11 14:14:50 |
| 1385 | digital_wallet | 1500 | 2016-07-11 23:22:32 |
| 1386 | credit_card | 400 | 2016-07-12 08:24:05 |
| 1387 | credit_card | 3400 | 2016-07-12 11:43:35 |
| 1388 | credit_card | 6000 | 2016-07-12 19:25:59 |
| 1389 | debit_card | 3000 | 2016-07-13 07:31:51 |
| 1390 | credit_card | 3000 | 2016-07-13 10:54:37 |
| 1391 | debit_card | 3400 | 2016-07-14 10:00:16 |
| 1392 | credit_card | 5100 | 2016-07-14 16:00:56 |
| 1393 | debit_card | 1500 | 2016-07-15 07:24:13 |
| 1394 | credit_card | 4500 | 2016-07-15 07:32:58 |
| 1395 | debit_card | 3000 | 2016-07-15 08:16:53 |
| 1396 | cash | 3400 | 2016-07-15 09:36:54 |
| 1397 | cash | 800 | 2016-07-15 10:26:14 |
| 1398 | credit_card | 800 | 2016-07-15 15:00:38 |
| 1399 | debit_card | 400 | 2016-07-15 21:33:59 |
| 1400 | debit_card | 8500 | 2016-07-16 08:57:07 |
Table definition
CREATE TABLE payment (
payment_id INTEGER PRIMARY KEY,
method TEXT NOT NULL
CHECK (method IN ('credit_card', 'debit_card', 'digital_wallet', 'cash')),
amount_cents INTEGER NOT NULL CHECK (amount_cents >= 0),
paid_at TEXT NOT NULL CHECK (paid_at GLOB '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]')
) STRICT;