postgres schema

This commit is contained in:
spaced4ndy
2026-10-01 19:32:15 +04:00
parent a3609d731b
commit 172f70a0e6
@@ -299,12 +299,14 @@ ALTER TABLE test_chat_schema.badge_purchases ALTER COLUMN badge_purchase_id ADD
CREATE TABLE test_chat_schema.badge_store_receipts (
badge_store_receipt_id bigint NOT NULL,
user_id bigint NOT NULL,
provider text NOT NULL,
transaction_ref text NOT NULL,
invoice_id text,
provider text,
transaction_ref text,
purchase_key bytea NOT NULL,
purchase_priv_key bytea NOT NULL,
master_key bytea NOT NULL,
created_at timestamp with time zone NOT NULL
created_at timestamp with time zone NOT NULL,
closed_at timestamp with time zone
);
@@ -1818,6 +1820,11 @@ ALTER TABLE ONLY test_chat_schema.badge_purchases
ALTER TABLE ONLY test_chat_schema.badge_store_receipts
ADD CONSTRAINT badge_store_receipts_invoice_id_key UNIQUE (invoice_id);
ALTER TABLE ONLY test_chat_schema.badge_store_receipts
ADD CONSTRAINT badge_store_receipts_pkey PRIMARY KEY (badge_store_receipt_id);