{
  "version": "8",
  "dialect": "postgres",
  "id": "4ce6db7a-5b3a-470f-b473-c98907fe447d",
  "prevIds": [
    "0761ef4e-1625-495e-b975-ff4a4d93149d"
  ],
  "ddl": [
    {
      "isRlsEnabled": false,
      "name": "accounts",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "api_keys",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "app_settings",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "auto_messages",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "campaigns",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "chat_messages",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "credit_adjustments",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "email_messages",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "login_codes",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "notifications",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "payments",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "sender_ids",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "voice_calls",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "accounts"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "email",
      "entityType": "columns",
      "schema": "public",
      "table": "accounts"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "0",
      "generated": null,
      "identity": null,
      "name": "credits",
      "entityType": "columns",
      "schema": "public",
      "table": "accounts"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "default_sender_id",
      "entityType": "columns",
      "schema": "public",
      "table": "accounts"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "name",
      "entityType": "columns",
      "schema": "public",
      "table": "accounts"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "phone",
      "entityType": "columns",
      "schema": "public",
      "table": "accounts"
    },
    {
      "type": "boolean",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "true",
      "generated": null,
      "identity": null,
      "name": "sms_alerts",
      "entityType": "columns",
      "schema": "public",
      "table": "accounts"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "accounts"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "api_keys"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "api_keys"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "name",
      "entityType": "columns",
      "schema": "public",
      "table": "api_keys"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "prefix",
      "entityType": "columns",
      "schema": "public",
      "table": "api_keys"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "key_hash",
      "entityType": "columns",
      "schema": "public",
      "table": "api_keys"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "api_keys"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "last_used_at",
      "entityType": "columns",
      "schema": "public",
      "table": "api_keys"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "revoked_at",
      "entityType": "columns",
      "schema": "public",
      "table": "api_keys"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "key",
      "entityType": "columns",
      "schema": "public",
      "table": "app_settings"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "value",
      "entityType": "columns",
      "schema": "public",
      "table": "app_settings"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "updated_by",
      "entityType": "columns",
      "schema": "public",
      "table": "app_settings"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "updated_at",
      "entityType": "columns",
      "schema": "public",
      "table": "app_settings"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "auto_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "auto_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "event",
      "entityType": "columns",
      "schema": "public",
      "table": "auto_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "phone",
      "entityType": "columns",
      "schema": "public",
      "table": "auto_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "message",
      "entityType": "columns",
      "schema": "public",
      "table": "auto_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "status",
      "entityType": "columns",
      "schema": "public",
      "table": "auto_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "error",
      "entityType": "columns",
      "schema": "public",
      "table": "auto_messages"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "auto_messages"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "sender_id",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "message",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "jsonb",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "recipients",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "recipient_count",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "segments",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "credits_used",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "'sending'",
      "generated": null,
      "identity": null,
      "name": "status",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "'dashboard'",
      "generated": null,
      "identity": null,
      "name": "source",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "'sms'",
      "generated": null,
      "identity": null,
      "name": "channel",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "voice",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "provider_response",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "scheduled_for",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "0",
      "generated": null,
      "identity": null,
      "name": "send_progress",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "0",
      "generated": null,
      "identity": null,
      "name": "sent_count",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "locked_until",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "jsonb",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "delivery",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "delivery_checked_at",
      "entityType": "columns",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "chat_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "chat_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "sender",
      "entityType": "columns",
      "schema": "public",
      "table": "chat_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "body",
      "entityType": "columns",
      "schema": "public",
      "table": "chat_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "admin_email",
      "entityType": "columns",
      "schema": "public",
      "table": "chat_messages"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "read_at",
      "entityType": "columns",
      "schema": "public",
      "table": "chat_messages"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "chat_messages"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "credit_adjustments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "credit_adjustments"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "amount",
      "entityType": "columns",
      "schema": "public",
      "table": "credit_adjustments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "reason",
      "entityType": "columns",
      "schema": "public",
      "table": "credit_adjustments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "admin_email",
      "entityType": "columns",
      "schema": "public",
      "table": "credit_adjustments"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "credit_adjustments"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "kind",
      "entityType": "columns",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "to_email",
      "entityType": "columns",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "subject",
      "entityType": "columns",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "reference",
      "entityType": "columns",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "status",
      "entityType": "columns",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "error",
      "entityType": "columns",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "phone",
      "entityType": "columns",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "code_hash",
      "entityType": "columns",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "0",
      "generated": null,
      "identity": null,
      "name": "attempts",
      "entityType": "columns",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "ip",
      "entityType": "columns",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "expires_at",
      "entityType": "columns",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "used_at",
      "entityType": "columns",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "notifications"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "notifications"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "type",
      "entityType": "columns",
      "schema": "public",
      "table": "notifications"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "title",
      "entityType": "columns",
      "schema": "public",
      "table": "notifications"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "body",
      "entityType": "columns",
      "schema": "public",
      "table": "notifications"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "read_at",
      "entityType": "columns",
      "schema": "public",
      "table": "notifications"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "notifications"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "reference",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "package_id",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "credits",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "numeric(10,2)",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "amount",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "'GHS'",
      "generated": null,
      "identity": null,
      "name": "currency",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "payer_phone",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "'pending'",
      "generated": null,
      "identity": null,
      "name": "status",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "provider_reference",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "checkout_url",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "completed_at",
      "entityType": "columns",
      "schema": "public",
      "table": "payments"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "sender_id",
      "entityType": "columns",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "purpose",
      "entityType": "columns",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "'pending'",
      "generated": null,
      "identity": null,
      "name": "status",
      "entityType": "columns",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "review_note",
      "entityType": "columns",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "reviewed_by",
      "entityType": "columns",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "reviewed_at",
      "entityType": "columns",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "campaign_id",
      "entityType": "columns",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "phone_number",
      "entityType": "columns",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "session_id",
      "entityType": "columns",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "'queued'",
      "generated": null,
      "identity": null,
      "name": "status",
      "entityType": "columns",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "duration_seconds",
      "entityType": "columns",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": false,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "hangup_cause",
      "entityType": "columns",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "updated_at",
      "entityType": "columns",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "user_id",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "api_keys_user_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "api_keys"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "created_at",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "auto_messages_created_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "auto_messages"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "user_id",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "campaigns_user_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "status",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        },
        {
          "value": "scheduled_for",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "campaigns_status_scheduled_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "user_id",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        },
        {
          "value": "created_at",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "chat_messages_user_created_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "chat_messages"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "user_id",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "credit_adjustments_user_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "credit_adjustments"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "created_at",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "email_messages_created_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "phone",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        },
        {
          "value": "created_at",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "login_codes_phone_created_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "ip",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        },
        {
          "value": "created_at",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "login_codes_ip_created_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "user_id",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        },
        {
          "value": "created_at",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "notifications_user_created_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "notifications"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "user_id",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "payments_user_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "payments"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "user_id",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        },
        {
          "value": "sender_id",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": true,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "sender_ids_user_sender_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "status",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "sender_ids_status_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "nameExplicit": true,
      "columns": [
        {
          "value": "campaign_id",
          "isExpression": false,
          "asc": true,
          "nullsFirst": false,
          "opclass": null
        }
      ],
      "isUnique": false,
      "where": null,
      "with": "",
      "method": "btree",
      "concurrently": false,
      "name": "voice_calls_campaign_idx",
      "entityType": "indexes",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "api_keys_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "api_keys"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "auto_messages_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "auto_messages"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "campaigns_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "campaigns"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "chat_messages_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "chat_messages"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "credit_adjustments_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "credit_adjustments"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "email_messages_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "email_messages"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "login_codes_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "login_codes"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "notifications_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "notifications"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "payments_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "payments"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "sender_ids_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "sender_ids"
    },
    {
      "nameExplicit": false,
      "columns": [
        "campaign_id"
      ],
      "schemaTo": "public",
      "tableTo": "campaigns",
      "columnsTo": [
        "id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "voice_calls_campaign_id_campaigns_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "nameExplicit": false,
      "columns": [
        "user_id"
      ],
      "schemaTo": "public",
      "tableTo": "accounts",
      "columnsTo": [
        "user_id"
      ],
      "onUpdate": "NO ACTION",
      "onDelete": "NO ACTION",
      "name": "voice_calls_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "voice_calls"
    },
    {
      "columns": [
        "user_id"
      ],
      "nameExplicit": false,
      "name": "accounts_pkey",
      "schema": "public",
      "table": "accounts",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "api_keys_pkey",
      "schema": "public",
      "table": "api_keys",
      "entityType": "pks"
    },
    {
      "columns": [
        "key"
      ],
      "nameExplicit": false,
      "name": "app_settings_pkey",
      "schema": "public",
      "table": "app_settings",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "auto_messages_pkey",
      "schema": "public",
      "table": "auto_messages",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "campaigns_pkey",
      "schema": "public",
      "table": "campaigns",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "chat_messages_pkey",
      "schema": "public",
      "table": "chat_messages",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "credit_adjustments_pkey",
      "schema": "public",
      "table": "credit_adjustments",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "email_messages_pkey",
      "schema": "public",
      "table": "email_messages",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "login_codes_pkey",
      "schema": "public",
      "table": "login_codes",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "notifications_pkey",
      "schema": "public",
      "table": "notifications",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "payments_pkey",
      "schema": "public",
      "table": "payments",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "sender_ids_pkey",
      "schema": "public",
      "table": "sender_ids",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "voice_calls_pkey",
      "schema": "public",
      "table": "voice_calls",
      "entityType": "pks"
    },
    {
      "nameExplicit": false,
      "columns": [
        "key_hash"
      ],
      "nullsNotDistinct": false,
      "name": "api_keys_key_hash_key",
      "schema": "public",
      "table": "api_keys",
      "entityType": "uniques"
    },
    {
      "nameExplicit": false,
      "columns": [
        "reference"
      ],
      "nullsNotDistinct": false,
      "name": "payments_reference_key",
      "schema": "public",
      "table": "payments",
      "entityType": "uniques"
    },
    {
      "nameExplicit": false,
      "columns": [
        "session_id"
      ],
      "nullsNotDistinct": false,
      "name": "voice_calls_session_id_key",
      "schema": "public",
      "table": "voice_calls",
      "entityType": "uniques"
    }
  ],
  "renames": []
}