Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 2,776–2,800 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 2776 | credit_card | 3000 | 2017-12-20 16:14:34 |
| 2777 | debit_card | 400 | 2017-12-20 22:29:00 |
| 2778 | debit_card | 7500 | 2017-12-21 17:39:56 |
| 2779 | credit_card | 3000 | 2017-12-23 09:34:21 |
| 2780 | cash | 8500 | 2017-12-23 10:29:41 |
| 2781 | debit_card | 3000 | 2017-12-23 15:07:24 |
| 2782 | credit_card | 3400 | 2017-12-24 09:52:08 |
| 2783 | debit_card | 800 | 2017-12-24 14:04:11 |
| 2784 | debit_card | 3000 | 2017-12-25 12:03:53 |
| 2785 | debit_card | 1500 | 2017-12-26 08:56:30 |
| 2786 | debit_card | 58500 | 2017-12-27 08:01:09 |
| 2787 | credit_card | 3400 | 2017-12-27 09:38:13 |
| 2788 | debit_card | 400 | 2017-12-27 12:47:51 |
| 2789 | credit_card | 400 | 2017-12-27 23:19:25 |
| 2790 | credit_card | 1700 | 2017-12-28 13:43:10 |
| 2791 | cash | 800 | 2017-12-30 12:09:29 |
| 2792 | digital_wallet | 800 | 2017-12-30 12:12:21 |
| 2793 | debit_card | 3000 | 2017-12-30 21:29:29 |
| 2794 | credit_card | 1500 | 2017-12-31 12:16:25 |
| 2795 | debit_card | 400 | 2017-12-31 13:23:28 |
| 2796 | credit_card | 1500 | 2017-12-31 16:17:33 |
| 2797 | digital_wallet | 1700 | 2018-01-01 11:54:42 |
| 2798 | debit_card | 3000 | 2018-01-01 13:36:53 |
| 2799 | credit_card | 400 | 2018-01-02 10:02:20 |
| 2800 | digital_wallet | 3400 | 2018-01-02 10:12:08 |
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;