Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 2,726–2,750 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 2726 | debit_card | 6000 | 2017-11-29 18:13:05 |
| 2727 | debit_card | 1500 | 2017-11-29 18:31:48 |
| 2728 | debit_card | 400 | 2017-11-30 21:58:39 |
| 2729 | credit_card | 6800 | 2017-12-01 11:54:53 |
| 2730 | credit_card | 800 | 2017-12-01 12:03:04 |
| 2731 | debit_card | 800 | 2017-12-01 12:26:21 |
| 2732 | debit_card | 1500 | 2017-12-01 23:50:44 |
| 2733 | digital_wallet | 3000 | 2017-12-01 23:58:30 |
| 2734 | digital_wallet | 3000 | 2017-12-02 10:14:46 |
| 2735 | debit_card | 400 | 2017-12-03 11:00:24 |
| 2736 | credit_card | 4500 | 2017-12-04 12:21:14 |
| 2737 | debit_card | 400 | 2017-12-05 02:15:56 |
| 2738 | debit_card | 3000 | 2017-12-05 16:31:18 |
| 2739 | debit_card | 400 | 2017-12-06 12:13:02 |
| 2740 | credit_card | 400 | 2017-12-08 09:16:13 |
| 2741 | digital_wallet | 5100 | 2017-12-08 11:39:57 |
| 2742 | credit_card | 1500 | 2017-12-08 18:30:09 |
| 2743 | debit_card | 800 | 2017-12-09 12:08:01 |
| 2744 | cash | 800 | 2017-12-09 12:13:40 |
| 2745 | credit_card | 400 | 2017-12-09 22:36:54 |
| 2746 | credit_card | 400 | 2017-12-10 03:27:41 |
| 2747 | credit_card | 4500 | 2017-12-10 09:44:39 |
| 2748 | cash | 800 | 2017-12-10 11:07:16 |
| 2749 | debit_card | 1500 | 2017-12-10 13:24:01 |
| 2750 | credit_card | 6800 | 2017-12-10 15:57:38 |
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;