Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 2,401–2,425 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 2401 | debit_card | 3000 | 2017-07-30 18:04:26 |
| 2402 | digital_wallet | 3400 | 2017-07-31 08:55:05 |
| 2403 | credit_card | 3000 | 2017-07-31 10:35:19 |
| 2404 | credit_card | 1700 | 2017-07-31 10:51:09 |
| 2405 | debit_card | 800 | 2017-07-31 14:09:50 |
| 2406 | digital_wallet | 800 | 2017-07-31 14:23:18 |
| 2407 | credit_card | 1500 | 2017-08-01 09:08:10 |
| 2408 | debit_card | 4500 | 2017-08-02 08:55:06 |
| 2409 | cash | 8500 | 2017-08-02 15:37:58 |
| 2410 | credit_card | 1500 | 2017-08-02 16:05:13 |
| 2411 | credit_card | 800 | 2017-08-02 16:06:07 |
| 2412 | credit_card | 400 | 2017-08-03 12:45:42 |
| 2413 | credit_card | 6000 | 2017-08-03 14:25:19 |
| 2414 | debit_card | 4500 | 2017-08-03 15:20:14 |
| 2415 | credit_card | 400 | 2017-08-03 22:16:36 |
| 2416 | credit_card | 3000 | 2017-08-04 12:17:02 |
| 2417 | digital_wallet | 1500 | 2017-08-04 18:18:14 |
| 2418 | credit_card | 3000 | 2017-08-05 09:39:46 |
| 2419 | debit_card | 3000 | 2017-08-05 10:48:37 |
| 2420 | cash | 3400 | 2017-08-05 14:46:32 |
| 2421 | credit_card | 400 | 2017-08-05 21:45:57 |
| 2422 | credit_card | 1500 | 2017-08-05 22:06:59 |
| 2423 | debit_card | 3400 | 2017-08-06 11:00:26 |
| 2424 | debit_card | 400 | 2017-08-07 02:18:07 |
| 2425 | credit_card | 3000 | 2017-08-07 09:15: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;