Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 4,976–5,000 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 4976 | debit_card | 1500 | 2019-10-20 10:22:33 |
| 4977 | debit_card | 1500 | 2019-10-20 14:26:18 |
| 4978 | credit_card | 3000 | 2019-10-21 09:06:10 |
| 4979 | debit_card | 1500 | 2019-10-21 16:03:26 |
| 4980 | credit_card | 400 | 2019-10-21 19:06:33 |
| 4981 | credit_card | 800 | 2019-10-22 11:51:37 |
| 4982 | debit_card | 3000 | 2019-10-22 18:13:30 |
| 4983 | digital_wallet | 3000 | 2019-10-22 20:45:00 |
| 4984 | debit_card | 400 | 2019-10-23 03:10:59 |
| 4985 | credit_card | 3000 | 2019-10-23 08:22:18 |
| 4986 | credit_card | 400 | 2019-10-23 11:44:57 |
| 4987 | cash | 1700 | 2019-10-23 13:39:19 |
| 4988 | credit_card | 1500 | 2019-10-23 20:28:27 |
| 4989 | credit_card | 400 | 2019-10-24 08:23:44 |
| 4990 | debit_card | 3000 | 2019-10-24 15:23:34 |
| 4991 | credit_card | 400 | 2019-10-24 20:51:58 |
| 4992 | credit_card | 800 | 2019-10-25 09:54:46 |
| 4993 | digital_wallet | 1500 | 2019-10-25 13:13:59 |
| 4994 | digital_wallet | 3000 | 2019-10-25 15:03:45 |
| 4995 | credit_card | 800 | 2019-10-26 10:45:01 |
| 4996 | cash | 800 | 2019-10-26 11:49:26 |
| 4997 | debit_card | 800 | 2019-10-26 15:07:17 |
| 4998 | credit_card | 400 | 2019-10-27 01:36:15 |
| 4999 | cash | 3400 | 2019-10-27 14:38:44 |
| 5000 | debit_card | 3000 | 2019-10-27 17:02:33 |
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;