Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 3,351–3,375 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 3351 | credit_card | 3000 | 2018-06-20 18:38:57 |
| 3352 | digital_wallet | 1500 | 2018-06-21 08:50:14 |
| 3353 | debit_card | 1500 | 2018-06-21 10:48:05 |
| 3354 | debit_card | 1700 | 2018-06-22 14:06:51 |
| 3355 | credit_card | 400 | 2018-06-22 18:05:12 |
| 3356 | digital_wallet | 800 | 2018-06-23 14:13:58 |
| 3357 | digital_wallet | 3000 | 2018-06-23 17:59:30 |
| 3358 | digital_wallet | 4500 | 2018-06-24 08:32:01 |
| 3359 | credit_card | 5100 | 2018-06-24 10:03:30 |
| 3360 | debit_card | 800 | 2018-06-24 10:40:12 |
| 3361 | credit_card | 1500 | 2018-06-24 15:41:09 |
| 3362 | debit_card | 1500 | 2018-06-24 19:40:34 |
| 3363 | debit_card | 400 | 2018-06-25 07:26:56 |
| 3364 | debit_card | 400 | 2018-06-26 01:30:27 |
| 3365 | debit_card | 7500 | 2018-06-26 19:14:19 |
| 3366 | credit_card | 400 | 2018-06-27 07:48:32 |
| 3367 | credit_card | 3000 | 2018-06-27 17:17:00 |
| 3368 | debit_card | 4500 | 2018-06-27 18:34:04 |
| 3369 | debit_card | 6000 | 2018-06-27 19:53:16 |
| 3370 | credit_card | 3000 | 2018-06-27 20:46:25 |
| 3371 | debit_card | 1500 | 2018-06-27 21:32:38 |
| 3372 | credit_card | 400 | 2018-06-27 21:44:29 |
| 3373 | cash | 800 | 2018-06-28 12:58:15 |
| 3374 | credit_card | 1500 | 2018-06-28 17:23:50 |
| 3375 | debit_card | 400 | 2018-06-28 20:41:58 |
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;