Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 2,026–2,050 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 2026 | debit_card | 8500 | 2017-03-28 10:38:13 |
| 2027 | credit_card | 1700 | 2017-03-31 12:26:38 |
| 2028 | credit_card | 8500 | 2017-03-31 12:41:37 |
| 2029 | debit_card | 400 | 2017-03-31 13:29:23 |
| 2030 | cash | 800 | 2017-03-31 13:29:42 |
| 2031 | debit_card | 800 | 2017-03-31 13:32:15 |
| 2032 | debit_card | 4500 | 2017-03-31 14:32:45 |
| 2033 | credit_card | 1700 | 2017-03-31 15:47:30 |
| 2034 | credit_card | 3400 | 2017-04-01 12:57:38 |
| 2035 | credit_card | 6000 | 2017-04-01 18:38:59 |
| 2036 | credit_card | 3000 | 2017-04-01 21:31:44 |
| 2037 | credit_card | 1500 | 2017-04-02 11:27:16 |
| 2038 | credit_card | 3000 | 2017-04-02 14:28:18 |
| 2039 | credit_card | 400 | 2017-04-02 17:32:24 |
| 2040 | digital_wallet | 3000 | 2017-04-02 18:17:17 |
| 2041 | debit_card | 400 | 2017-04-03 15:07:25 |
| 2042 | credit_card | 800 | 2017-04-05 14:04:11 |
| 2043 | debit_card | 3400 | 2017-04-06 12:50:01 |
| 2044 | digital_wallet | 1500 | 2017-04-06 16:20:37 |
| 2045 | credit_card | 3400 | 2017-04-07 14:34:36 |
| 2046 | credit_card | 1500 | 2017-04-07 16:46:59 |
| 2047 | debit_card | 400 | 2017-04-08 01:45:50 |
| 2048 | credit_card | 3400 | 2017-04-08 10:17:23 |
| 2049 | debit_card | 3000 | 2017-04-09 20:08:01 |
| 2050 | credit_card | 400 | 2017-04-10 01:08:53 |
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;