mirror of
http://88.130.71.182:3000/BlitTech/contexta_be.git
synced 2026-06-13 08:30:07 +00:00
- Add new routers: admin, appointments, campaigns - Add storage service and logging config - Add migrations directory and test suite with pytest config - Add supabase_migration_features.sql - Update models, dependencies, config, and existing routers - Remove whatsapp_service (deleted) - Update pyproject.toml and uv.lock dependencies Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
469 B
SQL
14 lines
469 B
SQL
-- Migration 003: Stripe webhook event deduplication table
|
|
-- Run this in Supabase SQL editor
|
|
|
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
|
|
|
CREATE TABLE IF NOT EXISTS stripe_webhook_events (
|
|
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
|
stripe_event_id VARCHAR(255) UNIQUE NOT NULL,
|
|
event_type VARCHAR(100) NOT NULL,
|
|
processed_at TIMESTAMPTZ DEFAULT NOW()
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_stripe_events_id ON stripe_webhook_events(stripe_event_id);
|