Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 3,251–3,275 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 3251 | digital_wallet | 1700 | 2018-05-23 12:00:02 |
| 3252 | credit_card | 3400 | 2018-05-23 14:29:27 |
| 3253 | debit_card | 3000 | 2018-05-24 08:26:38 |
| 3254 | cash | 3400 | 2018-05-24 13:59:09 |
| 3255 | credit_card | 800 | 2018-05-25 13:35:21 |
| 3256 | debit_card | 1500 | 2018-05-25 14:24:37 |
| 3257 | digital_wallet | 1700 | 2018-05-25 14:33:27 |
| 3258 | debit_card | 400 | 2018-05-26 08:30:07 |
| 3259 | debit_card | 3400 | 2018-05-26 10:32:35 |
| 3260 | credit_card | 1500 | 2018-05-26 10:34:17 |
| 3261 | credit_card | 1500 | 2018-05-26 21:19:39 |
| 3262 | debit_card | 400 | 2018-05-27 04:03:20 |
| 3263 | credit_card | 400 | 2018-05-27 10:23:09 |
| 3264 | digital_wallet | 3400 | 2018-05-27 10:42:04 |
| 3265 | digital_wallet | 800 | 2018-05-27 11:32:51 |
| 3266 | credit_card | 6000 | 2018-05-27 15:03:48 |
| 3267 | debit_card | 3400 | 2018-05-28 10:09:39 |
| 3268 | cash | 1700 | 2018-05-28 11:36:04 |
| 3269 | debit_card | 400 | 2018-05-28 21:44:22 |
| 3270 | debit_card | 3000 | 2018-05-28 22:08:45 |
| 3271 | credit_card | 46500 | 2018-05-29 09:18:48 |
| 3272 | credit_card | 4500 | 2018-05-29 21:31:31 |
| 3273 | debit_card | 400 | 2018-05-30 04:03:13 |
| 3274 | digital_wallet | 3400 | 2018-05-30 09:07:42 |
| 3275 | cash | 800 | 2018-05-30 09:56:55 |
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;