Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 4,051–4,075 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 4051 | credit_card | 1500 | 2019-01-18 12:33:11 |
| 4052 | credit_card | 1500 | 2019-01-18 15:40:27 |
| 4053 | credit_card | 6800 | 2019-01-19 08:59:59 |
| 4054 | digital_wallet | 800 | 2019-01-19 09:21:55 |
| 4055 | credit_card | 1700 | 2019-01-19 10:14:37 |
| 4056 | debit_card | 3400 | 2019-01-19 11:58:46 |
| 4057 | debit_card | 400 | 2019-01-20 04:49:39 |
| 4058 | credit_card | 800 | 2019-01-20 09:50:47 |
| 4059 | credit_card | 6000 | 2019-01-20 16:57:56 |
| 4060 | debit_card | 3000 | 2019-01-21 11:46:58 |
| 4061 | credit_card | 3000 | 2019-01-23 07:03:59 |
| 4062 | credit_card | 3000 | 2019-01-23 08:32:33 |
| 4063 | debit_card | 400 | 2019-01-23 22:33:42 |
| 4064 | credit_card | 400 | 2019-01-24 04:04:55 |
| 4065 | debit_card | 3400 | 2019-01-24 14:51:18 |
| 4066 | credit_card | 800 | 2019-01-24 15:19:42 |
| 4067 | credit_card | 1500 | 2019-01-24 17:30:19 |
| 4068 | digital_wallet | 800 | 2019-01-25 17:02:14 |
| 4069 | debit_card | 400 | 2019-01-26 03:43:21 |
| 4070 | credit_card | 1500 | 2019-01-26 22:28:04 |
| 4071 | credit_card | 1500 | 2019-01-27 23:32:02 |
| 4072 | credit_card | 400 | 2019-01-28 06:59:11 |
| 4073 | debit_card | 3000 | 2019-01-29 09:25:33 |
| 4074 | credit_card | 73500 | 2019-01-29 13:45:00 |
| 4075 | digital_wallet | 1500 | 2019-01-29 23:14:06 |
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;