Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 4,126–4,150 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 4126 | credit_card | 400 | 2019-02-16 10:02:21 |
| 4127 | credit_card | 1700 | 2019-02-16 10:11:23 |
| 4128 | credit_card | 3400 | 2019-02-16 11:39:04 |
| 4129 | credit_card | 3400 | 2019-02-16 15:19:40 |
| 4130 | debit_card | 1500 | 2019-02-16 20:43:33 |
| 4131 | debit_card | 400 | 2019-02-16 21:14:10 |
| 4132 | credit_card | 400 | 2019-02-18 03:12:00 |
| 4133 | credit_card | 3000 | 2019-02-18 08:46:38 |
| 4134 | credit_card | 1500 | 2019-02-18 09:00:55 |
| 4135 | digital_wallet | 78000 | 2019-02-18 10:23:36 |
| 4136 | debit_card | 400 | 2019-02-19 02:42:37 |
| 4137 | credit_card | 400 | 2019-02-19 14:45:03 |
| 4138 | debit_card | 1500 | 2019-02-19 21:25:08 |
| 4139 | digital_wallet | 4500 | 2019-02-20 11:08:58 |
| 4140 | debit_card | 3000 | 2019-02-20 11:25:36 |
| 4141 | debit_card | 400 | 2019-02-21 02:56:55 |
| 4142 | debit_card | 1500 | 2019-02-21 17:11:40 |
| 4143 | credit_card | 1500 | 2019-02-21 23:47:11 |
| 4144 | digital_wallet | 800 | 2019-02-22 11:40:29 |
| 4145 | debit_card | 400 | 2019-02-22 17:00:36 |
| 4146 | credit_card | 3400 | 2019-02-23 09:18:22 |
| 4147 | debit_card | 3000 | 2019-02-23 14:51:40 |
| 4148 | credit_card | 400 | 2019-02-24 01:59:31 |
| 4149 | credit_card | 400 | 2019-02-24 05:45:48 |
| 4150 | digital_wallet | 3400 | 2019-02-24 11:17:46 |
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;