Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 3,851–3,875 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 3851 | credit_card | 3000 | 2018-11-09 13:08:25 |
| 3852 | debit_card | 1500 | 2018-11-10 07:34:05 |
| 3853 | debit_card | 1700 | 2018-11-10 10:20:53 |
| 3854 | credit_card | 3400 | 2018-11-11 08:45:23 |
| 3855 | debit_card | 3000 | 2018-11-11 08:52:12 |
| 3856 | cash | 1700 | 2018-11-11 12:11:26 |
| 3857 | credit_card | 800 | 2018-11-11 12:25:14 |
| 3858 | credit_card | 6000 | 2018-11-12 10:11:40 |
| 3859 | credit_card | 400 | 2018-11-12 15:56:53 |
| 3860 | debit_card | 1500 | 2018-11-12 16:35:57 |
| 3861 | credit_card | 6000 | 2018-11-13 10:54:49 |
| 3862 | debit_card | 1700 | 2018-11-13 11:21:13 |
| 3863 | digital_wallet | 8500 | 2018-11-13 13:56:51 |
| 3864 | cash | 800 | 2018-11-13 14:29:25 |
| 3865 | debit_card | 6000 | 2018-11-13 16:18:25 |
| 3866 | digital_wallet | 1500 | 2018-11-13 18:24:33 |
| 3867 | debit_card | 1500 | 2018-11-14 12:30:21 |
| 3868 | credit_card | 3400 | 2018-11-15 11:16:48 |
| 3869 | credit_card | 1700 | 2018-11-15 11:16:58 |
| 3870 | credit_card | 1500 | 2018-11-15 14:06:23 |
| 3871 | credit_card | 5100 | 2018-11-16 10:27:41 |
| 3872 | debit_card | 800 | 2018-11-16 11:21:21 |
| 3873 | debit_card | 1500 | 2018-11-16 16:31:10 |
| 3874 | credit_card | 1700 | 2018-11-17 10:42:29 |
| 3875 | credit_card | 800 | 2018-11-18 09:45:58 |
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;