| 1 | CREATE TABLE merchants ( |
| 2 | id text PRIMARY KEY, |
| 3 | email text NOT NULL, |
| 4 | -- Stripe flips these on account.updated once hosted onboarding is done. |
| 5 | details_submitted integer NOT NULL DEFAULT 0, |
| 6 | charges_enabled integer NOT NULL DEFAULT 0, |
| 7 | payouts_enabled integer NOT NULL DEFAULT 0, |
| 8 | created_at integer NOT NULL DEFAULT (unixepoch()), |
| 9 | updated_at integer NOT NULL DEFAULT (unixepoch()) |
| 10 | ); |