Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 2,976–3,000 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 2976 | debit_card | 3000 | 2018-03-06 21:13:38 |
| 2977 | debit_card | 400 | 2018-03-07 12:17:13 |
| 2978 | credit_card | 1500 | 2018-03-07 15:34:45 |
| 2979 | credit_card | 400 | 2018-03-07 21:34:47 |
| 2980 | debit_card | 3000 | 2018-03-08 11:02:31 |
| 2981 | digital_wallet | 1500 | 2018-03-09 11:55:41 |
| 2982 | cash | 6800 | 2018-03-09 12:22:29 |
| 2983 | debit_card | 1500 | 2018-03-09 17:34:44 |
| 2984 | credit_card | 1700 | 2018-03-10 10:12:18 |
| 2985 | debit_card | 1500 | 2018-03-10 17:26:06 |
| 2986 | debit_card | 3400 | 2018-03-11 09:18:07 |
| 2987 | credit_card | 1500 | 2018-03-11 10:52:42 |
| 2988 | credit_card | 3000 | 2018-03-12 10:48:33 |
| 2989 | credit_card | 400 | 2018-03-12 11:44:05 |
| 2990 | digital_wallet | 6000 | 2018-03-12 21:45:22 |
| 2991 | credit_card | 400 | 2018-03-13 09:32:56 |
| 2992 | credit_card | 3000 | 2018-03-13 23:11:38 |
| 2993 | debit_card | 3000 | 2018-03-14 13:28:41 |
| 2994 | credit_card | 400 | 2018-03-14 16:29:36 |
| 2995 | credit_card | 400 | 2018-03-15 05:50:51 |
| 2996 | debit_card | 3400 | 2018-03-15 11:38:28 |
| 2997 | digital_wallet | 3400 | 2018-03-15 13:39:26 |
| 2998 | debit_card | 800 | 2018-03-15 14:03:42 |
| 2999 | cash | 800 | 2018-03-15 15:35:14 |
| 3000 | digital_wallet | 75000 | 2018-03-15 16:28:16 |
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;