Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 4,476–4,500 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 4476 | credit_card | 3000 | 2019-05-31 19:25:19 |
| 4477 | debit_card | 3000 | 2019-05-31 23:31:50 |
| 4478 | credit_card | 3000 | 2019-06-01 17:01:44 |
| 4479 | credit_card | 400 | 2019-06-01 23:59:08 |
| 4480 | digital_wallet | 3000 | 2019-06-02 08:51:02 |
| 4481 | credit_card | 1500 | 2019-06-03 11:06:13 |
| 4482 | debit_card | 3000 | 2019-06-03 13:58:04 |
| 4483 | credit_card | 3000 | 2019-06-03 21:28:38 |
| 4484 | credit_card | 3000 | 2019-06-04 09:18:27 |
| 4485 | debit_card | 1700 | 2019-06-04 11:09:37 |
| 4486 | debit_card | 800 | 2019-06-04 11:41:51 |
| 4487 | credit_card | 400 | 2019-06-04 13:00:24 |
| 4488 | digital_wallet | 3000 | 2019-06-05 10:11:48 |
| 4489 | credit_card | 3000 | 2019-06-06 10:19:03 |
| 4490 | credit_card | 800 | 2019-06-06 11:22:00 |
| 4491 | credit_card | 400 | 2019-06-07 04:24:35 |
| 4492 | credit_card | 1500 | 2019-06-07 07:01:12 |
| 4493 | credit_card | 3000 | 2019-06-07 09:27:24 |
| 4494 | digital_wallet | 3000 | 2019-06-07 12:42:05 |
| 4495 | credit_card | 1700 | 2019-06-08 10:12:42 |
| 4496 | credit_card | 3400 | 2019-06-08 10:48:17 |
| 4497 | credit_card | 1700 | 2019-06-08 14:12:30 |
| 4498 | debit_card | 800 | 2019-06-08 16:00:48 |
| 4499 | credit_card | 800 | 2019-06-08 16:23:28 |
| 4500 | credit_card | 400 | 2019-06-09 06:09:03 |
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;