1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
Files
mxpv-podsync/pkg/model/pg.sql

16 lines
374 B
MySQL
Raw Normal View History

2017-10-26 14:36:52 -07:00
BEGIN;
CREATE TABLE IF NOT EXISTS pledges (
pledge_id BIGSERIAL PRIMARY KEY,
2017-11-02 17:13:01 -07:00
patron_id BIGINT NOT NULL UNIQUE,
2017-10-26 14:36:52 -07:00
created_at TIMESTAMPTZ NOT NULL,
declined_since TIMESTAMPTZ NULL,
amount_cents INT NOT NULL,
total_historical_amount_cents INT,
outstanding_payment_amount_cents INT,
is_paused BOOLEAN
);
CREATE INDEX patron_id_idx ON pledges(patron_id);
COMMIT;