Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

552 B
Raw Blame
CREATE TABLE subscription (
  id SERIAL PRIMARY KEY,
  subscription_id VARCHAR(128) NOT NULL,
  status VARCHAR(128) NOT NULL,
  billing_processor VARCHAR(128),
  payment_method_id VARCHAR(128),
  mca_id VARCHAR(128),
  client_secret VARCHAR(128),
  connector_subscription_id VARCHAR(128),
  merchant_id VARCHAR(64) NOT NULL,
  customer_id VARCHAR(64) NOT NULL,
  metadata JSONB,
  created_at TIMESTAMP NOT NULL,
  modified_at TIMESTAMP NOT NULL
);

CREATE UNIQUE INDEX merchant_subscription_unique_index ON subscription (merchant_id, subscription_id);