Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 4,751–4,775 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 4751 | credit_card | 400 | 2019-08-09 08:15:17 |
| 4752 | credit_card | 400 | 2019-08-09 08:17:27 |
| 4753 | cash | 800 | 2019-08-09 09:17:22 |
| 4754 | credit_card | 3400 | 2019-08-09 10:42:12 |
| 4755 | debit_card | 3000 | 2019-08-09 10:50:47 |
| 4756 | debit_card | 800 | 2019-08-09 10:57:53 |
| 4757 | debit_card | 400 | 2019-08-09 14:55:06 |
| 4758 | digital_wallet | 6800 | 2019-08-10 11:25:08 |
| 4759 | debit_card | 800 | 2019-08-10 11:49:26 |
| 4760 | credit_card | 800 | 2019-08-10 11:52:23 |
| 4761 | credit_card | 3400 | 2019-08-10 14:09:00 |
| 4762 | credit_card | 800 | 2019-08-10 14:41:50 |
| 4763 | digital_wallet | 8500 | 2019-08-11 11:48:59 |
| 4764 | debit_card | 3000 | 2019-08-12 08:37:24 |
| 4765 | credit_card | 4500 | 2019-08-12 14:55:54 |
| 4766 | cash | 1700 | 2019-08-13 09:28:53 |
| 4767 | credit_card | 1500 | 2019-08-13 21:41:12 |
| 4768 | credit_card | 1500 | 2019-08-13 22:13:30 |
| 4769 | digital_wallet | 1700 | 2019-08-14 12:59:04 |
| 4770 | debit_card | 400 | 2019-08-15 02:24:31 |
| 4771 | debit_card | 1500 | 2019-08-15 07:41:45 |
| 4772 | debit_card | 7500 | 2019-08-15 07:58:44 |
| 4773 | digital_wallet | 3000 | 2019-08-15 09:54:31 |
| 4774 | credit_card | 1700 | 2019-08-15 12:51:54 |
| 4775 | credit_card | 6000 | 2019-08-15 13:19:33 |
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;