Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 4,026–4,050 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 4026 | debit_card | 1700 | 2019-01-04 14:15:27 |
| 4027 | credit_card | 3400 | 2019-01-05 08:57:32 |
| 4028 | credit_card | 3000 | 2019-01-05 11:36:44 |
| 4029 | digital_wallet | 6000 | 2019-01-06 11:26:18 |
| 4030 | debit_card | 1700 | 2019-01-06 12:23:07 |
| 4031 | debit_card | 1700 | 2019-01-06 13:39:21 |
| 4032 | credit_card | 1500 | 2019-01-06 21:18:19 |
| 4033 | digital_wallet | 800 | 2019-01-08 15:31:19 |
| 4034 | credit_card | 3400 | 2019-01-09 10:02:13 |
| 4035 | debit_card | 800 | 2019-01-09 10:14:13 |
| 4036 | cash | 800 | 2019-01-09 13:09:17 |
| 4037 | credit_card | 800 | 2019-01-09 13:15:52 |
| 4038 | debit_card | 400 | 2019-01-10 10:01:27 |
| 4039 | debit_card | 1500 | 2019-01-10 13:55:47 |
| 4040 | credit_card | 3000 | 2019-01-11 23:09:27 |
| 4041 | cash | 1700 | 2019-01-12 09:58:13 |
| 4042 | credit_card | 3400 | 2019-01-12 10:37:15 |
| 4043 | credit_card | 1500 | 2019-01-13 23:22:40 |
| 4044 | credit_card | 82500 | 2019-01-14 10:53:13 |
| 4045 | debit_card | 3400 | 2019-01-14 13:36:03 |
| 4046 | credit_card | 3000 | 2019-01-15 17:31:49 |
| 4047 | credit_card | 400 | 2019-01-16 01:47:17 |
| 4048 | digital_wallet | 1500 | 2019-01-16 11:41:08 |
| 4049 | debit_card | 400 | 2019-01-17 05:44:13 |
| 4050 | digital_wallet | 3000 | 2019-01-18 07:03:26 |
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;