Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 901–925 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 901 | credit_card | 3000 | 2015-12-22 11:45:12 |
| 902 | credit_card | 400 | 2015-12-22 12:17:48 |
| 903 | credit_card | 1700 | 2015-12-22 14:55:10 |
| 904 | cash | 800 | 2015-12-22 15:42:06 |
| 905 | credit_card | 400 | 2015-12-23 04:47:33 |
| 906 | debit_card | 8500 | 2015-12-23 08:32:41 |
| 907 | credit_card | 3000 | 2015-12-23 17:04:09 |
| 908 | credit_card | 1500 | 2015-12-23 20:53:56 |
| 909 | debit_card | 400 | 2015-12-23 23:12:51 |
| 910 | debit_card | 400 | 2015-12-24 16:23:49 |
| 911 | digital_wallet | 1500 | 2015-12-24 21:53:03 |
| 912 | credit_card | 400 | 2015-12-26 06:18:11 |
| 913 | debit_card | 1700 | 2015-12-26 08:58:00 |
| 914 | credit_card | 1500 | 2015-12-26 09:50:03 |
| 915 | debit_card | 6800 | 2015-12-26 12:17:58 |
| 916 | debit_card | 3400 | 2015-12-27 10:28:49 |
| 917 | credit_card | 1700 | 2015-12-27 10:59:36 |
| 918 | cash | 800 | 2015-12-27 11:40:29 |
| 919 | digital_wallet | 7500 | 2015-12-27 12:42:38 |
| 920 | cash | 3400 | 2015-12-28 12:17:07 |
| 921 | debit_card | 1500 | 2015-12-28 13:52:56 |
| 922 | debit_card | 1700 | 2015-12-29 10:31:32 |
| 923 | credit_card | 400 | 2015-12-29 23:25:23 |
| 924 | debit_card | 3400 | 2015-12-30 15:07:33 |
| 925 | credit_card | 3400 | 2015-12-30 16:19:21 |
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;