Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 5,301–5,325 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 5301 | credit_card | 3000 | 2020-01-21 21:45:42 |
| 5302 | debit_card | 3000 | 2020-01-21 22:29:03 |
| 5303 | digital_wallet | 1500 | 2020-01-22 07:58:08 |
| 5304 | debit_card | 3000 | 2020-01-22 09:42:47 |
| 5305 | credit_card | 800 | 2020-01-22 10:08:36 |
| 5306 | credit_card | 800 | 2020-01-22 10:56:07 |
| 5307 | credit_card | 3000 | 2020-01-22 12:19:30 |
| 5308 | credit_card | 800 | 2020-01-22 14:41:35 |
| 5309 | credit_card | 1500 | 2020-01-22 20:25:00 |
| 5310 | credit_card | 6000 | 2020-01-23 07:26:11 |
| 5311 | credit_card | 400 | 2020-01-23 09:51:49 |
| 5312 | credit_card | 800 | 2020-01-23 13:45:46 |
| 5313 | digital_wallet | 3400 | 2020-01-23 14:11:58 |
| 5314 | credit_card | 800 | 2020-01-23 14:47:43 |
| 5315 | credit_card | 4500 | 2020-01-23 15:09:09 |
| 5316 | digital_wallet | 7500 | 2020-01-24 20:08:55 |
| 5317 | credit_card | 1500 | 2020-01-24 20:23:36 |
| 5318 | cash | 3400 | 2020-01-25 08:43:29 |
| 5319 | debit_card | 3000 | 2020-01-25 14:38:50 |
| 5320 | digital_wallet | 1500 | 2020-01-25 17:33:54 |
| 5321 | debit_card | 400 | 2020-01-26 10:42:26 |
| 5322 | debit_card | 4500 | 2020-01-26 13:08:52 |
| 5323 | credit_card | 400 | 2020-01-27 00:03:04 |
| 5324 | debit_card | 400 | 2020-01-27 01:45:48 |
| 5325 | credit_card | 1700 | 2020-01-27 08:56:31 |
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;