Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 3,126–3,150 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 3126 | debit_card | 1500 | 2018-04-20 08:20:18 |
| 3127 | cash | 3400 | 2018-04-20 09:24:46 |
| 3128 | digital_wallet | 63000 | 2018-04-20 14:31:56 |
| 3129 | credit_card | 400 | 2018-04-20 21:30:10 |
| 3130 | debit_card | 400 | 2018-04-21 04:06:13 |
| 3131 | debit_card | 400 | 2018-04-21 10:07:46 |
| 3132 | debit_card | 400 | 2018-04-21 14:34:39 |
| 3133 | cash | 3400 | 2018-04-21 14:36:26 |
| 3134 | cash | 800 | 2018-04-21 15:04:32 |
| 3135 | credit_card | 3000 | 2018-04-22 07:18:27 |
| 3136 | debit_card | 3000 | 2018-04-22 08:53:12 |
| 3137 | debit_card | 3000 | 2018-04-22 09:37:19 |
| 3138 | credit_card | 800 | 2018-04-23 15:50:54 |
| 3139 | digital_wallet | 3000 | 2018-04-24 11:05:57 |
| 3140 | credit_card | 4500 | 2018-04-25 08:01:39 |
| 3141 | credit_card | 800 | 2018-04-25 11:32:52 |
| 3142 | debit_card | 3400 | 2018-04-25 12:43:37 |
| 3143 | digital_wallet | 8500 | 2018-04-25 14:32:36 |
| 3144 | cash | 800 | 2018-04-25 14:56:09 |
| 3145 | cash | 800 | 2018-04-25 14:57:15 |
| 3146 | credit_card | 1500 | 2018-04-26 08:41:22 |
| 3147 | debit_card | 3400 | 2018-04-26 09:25:17 |
| 3148 | credit_card | 3000 | 2018-04-26 14:49:14 |
| 3149 | credit_card | 3000 | 2018-04-26 15:04:29 |
| 3150 | digital_wallet | 3000 | 2018-04-26 15:33:52 |
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;