{
  "version": "8",
  "dialect": "postgres",
  "id": "42d815a7-aba9-40fe-bbe9-ee7a1d6f9295",
  "prevIds": [
    "00000000-0000-0000-0000-000000000000"
  ],
  "ddl": [
    {
      "isRlsEnabled": false,
      "name": "accounts",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "campaigns",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "payments",
      "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": "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": "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": 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": "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"
    },
    {
      "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": "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": 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": "payments_user_id_accounts_user_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "payments"
    },
    {
      "columns": [
        "user_id"
      ],
      "nameExplicit": false,
      "name": "accounts_pkey",
      "schema": "public",
      "table": "accounts",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "campaigns_pkey",
      "schema": "public",
      "table": "campaigns",
      "entityType": "pks"
    },
    {
      "columns": [
        "id"
      ],
      "nameExplicit": false,
      "name": "payments_pkey",
      "schema": "public",
      "table": "payments",
      "entityType": "pks"
    },
    {
      "nameExplicit": false,
      "columns": [
        "reference"
      ],
      "nullsNotDistinct": false,
      "name": "payments_reference_key",
      "schema": "public",
      "table": "payments",
      "entityType": "uniques"
    }
  ],
  "renames": []
}