Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 2,901–2,925 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 2901 | credit_card | 3000 | 2018-02-07 22:21:31 |
| 2902 | cash | 3400 | 2018-02-08 09:07:50 |
| 2903 | debit_card | 800 | 2018-02-08 11:26:43 |
| 2904 | cash | 3400 | 2018-02-08 13:18:21 |
| 2905 | digital_wallet | 3000 | 2018-02-08 16:43:53 |
| 2906 | digital_wallet | 1500 | 2018-02-09 07:15:23 |
| 2907 | debit_card | 400 | 2018-02-09 08:17:25 |
| 2908 | credit_card | 800 | 2018-02-09 12:16:46 |
| 2909 | credit_card | 6000 | 2018-02-10 07:38:51 |
| 2910 | credit_card | 1500 | 2018-02-10 19:33:02 |
| 2911 | credit_card | 1500 | 2018-02-10 20:37:56 |
| 2912 | credit_card | 3000 | 2018-02-10 21:07:27 |
| 2913 | credit_card | 4500 | 2018-02-11 09:25:36 |
| 2914 | credit_card | 400 | 2018-02-11 12:25:33 |
| 2915 | debit_card | 800 | 2018-02-11 13:09:22 |
| 2916 | credit_card | 3000 | 2018-02-11 13:48:09 |
| 2917 | debit_card | 1500 | 2018-02-11 14:23:17 |
| 2918 | digital_wallet | 800 | 2018-02-11 14:39:14 |
| 2919 | credit_card | 800 | 2018-02-11 14:43:19 |
| 2920 | debit_card | 400 | 2018-02-12 06:19:31 |
| 2921 | debit_card | 6000 | 2018-02-12 16:18:06 |
| 2922 | digital_wallet | 1500 | 2018-02-13 12:12:08 |
| 2923 | cash | 800 | 2018-02-13 13:03:34 |
| 2924 | debit_card | 3400 | 2018-02-14 09:42:17 |
| 2925 | debit_card | 6800 | 2018-02-15 13:06:37 |
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;