Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 4,301–4,325 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 4301 | credit_card | 800 | 2019-04-12 13:37:52 |
| 4302 | credit_card | 7500 | 2019-04-12 15:04:10 |
| 4303 | digital_wallet | 1500 | 2019-04-12 20:39:20 |
| 4304 | debit_card | 6000 | 2019-04-13 09:33:49 |
| 4305 | credit_card | 800 | 2019-04-13 10:35:50 |
| 4306 | credit_card | 3000 | 2019-04-13 12:00:13 |
| 4307 | digital_wallet | 6000 | 2019-04-13 12:51:32 |
| 4308 | digital_wallet | 6000 | 2019-04-14 08:39:03 |
| 4309 | credit_card | 3400 | 2019-04-14 09:37:12 |
| 4310 | credit_card | 800 | 2019-04-14 10:47:46 |
| 4311 | debit_card | 6800 | 2019-04-14 13:12:10 |
| 4312 | digital_wallet | 1700 | 2019-04-15 09:39:12 |
| 4313 | debit_card | 4500 | 2019-04-15 11:16:55 |
| 4314 | debit_card | 400 | 2019-04-15 11:51:50 |
| 4315 | credit_card | 400 | 2019-04-15 13:15:51 |
| 4316 | debit_card | 1500 | 2019-04-15 15:15:57 |
| 4317 | debit_card | 1500 | 2019-04-15 15:37:54 |
| 4318 | credit_card | 400 | 2019-04-16 00:29:31 |
| 4319 | credit_card | 3400 | 2019-04-16 08:53:02 |
| 4320 | cash | 800 | 2019-04-16 09:33:55 |
| 4321 | credit_card | 1500 | 2019-04-16 23:06:19 |
| 4322 | credit_card | 1700 | 2019-04-17 10:30:28 |
| 4323 | credit_card | 1700 | 2019-04-17 14:59:23 |
| 4324 | credit_card | 3000 | 2019-04-17 20:00:35 |
| 4325 | debit_card | 4500 | 2019-04-18 09:35:53 |
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;