Table
payment
One row per payment; the method is a single column.
Replaces in 2020: Payment Methods
Rows 4,626–4,650 of 5,412
| payment_idINTEGER | methodTEXT | amount_centsINTEGER | paid_atTEXT |
|---|---|---|---|
| 4626 | credit_card | 7500 | 2019-07-11 17:06:43 |
| 4627 | digital_wallet | 4500 | 2019-07-11 20:07:52 |
| 4628 | cash | 6800 | 2019-07-12 13:16:16 |
| 4629 | credit_card | 800 | 2019-07-12 13:44:02 |
| 4630 | digital_wallet | 4500 | 2019-07-12 14:11:46 |
| 4631 | digital_wallet | 1500 | 2019-07-12 15:40:37 |
| 4632 | credit_card | 400 | 2019-07-12 17:36:55 |
| 4633 | credit_card | 800 | 2019-07-13 09:53:26 |
| 4634 | debit_card | 3000 | 2019-07-13 10:24:10 |
| 4635 | credit_card | 800 | 2019-07-13 12:19:47 |
| 4636 | debit_card | 800 | 2019-07-13 14:27:17 |
| 4637 | debit_card | 3000 | 2019-07-14 09:43:08 |
| 4638 | cash | 3400 | 2019-07-14 09:51:44 |
| 4639 | credit_card | 800 | 2019-07-14 11:11:49 |
| 4640 | credit_card | 3400 | 2019-07-14 14:51:32 |
| 4641 | debit_card | 800 | 2019-07-14 15:21:51 |
| 4642 | debit_card | 400 | 2019-07-14 19:25:09 |
| 4643 | debit_card | 1500 | 2019-07-14 23:35:47 |
| 4644 | credit_card | 1700 | 2019-07-15 09:33:32 |
| 4645 | credit_card | 800 | 2019-07-16 09:54:31 |
| 4646 | cash | 800 | 2019-07-16 11:28:45 |
| 4647 | debit_card | 400 | 2019-07-16 18:51:10 |
| 4648 | credit_card | 1700 | 2019-07-18 11:49:04 |
| 4649 | debit_card | 400 | 2019-07-18 20:32:45 |
| 4650 | credit_card | 6000 | 2019-07-18 23:30: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;