[
  {
    "table": "role_permissions",
    "column": "permission_id",
    "target": "permissions",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "wallets",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "CASCADE"
  },
  {
    "table": "wallet_transactions",
    "column": "wallet_id",
    "target": "wallets",
    "targetColumn": "id",
    "onDelete": "CASCADE"
  },
  {
    "table": "payment_intents",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "payment_intents",
    "column": "wallet_id",
    "target": "wallets",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "inventory_log",
    "column": "product_id",
    "target": "products",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "orders",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "order_items",
    "column": "order_id",
    "target": "orders",
    "targetColumn": "id",
    "onDelete": "CASCADE"
  },
  {
    "table": "api_keys",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "CASCADE"
  },
  {
    "table": "sms_numbers",
    "column": "provider_id",
    "target": "sms_providers",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "sms_allocations",
    "column": "number_id",
    "target": "sms_numbers",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "sms_allocations",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "sms_messages",
    "column": "allocation_id",
    "target": "sms_allocations",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "admin_withdrawals",
    "column": "admin_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "notifications",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "CASCADE"
  },
  {
    "table": "social_accounts",
    "column": "type_id",
    "target": "social_account_types",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "social_accounts",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "social_account_events",
    "column": "account_id",
    "target": "social_accounts",
    "targetColumn": "id",
    "onDelete": "CASCADE"
  },
  {
    "table": "bank_accounts",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "CASCADE"
  },
  {
    "table": "platform_transactions",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "boost_orders",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "boost_orders",
    "column": "order_id",
    "target": "orders",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "boost_orders",
    "column": "service_id",
    "target": "boost_services",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "account_orders",
    "column": "user_id",
    "target": "users",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  },
  {
    "table": "account_orders",
    "column": "order_id",
    "target": "orders",
    "targetColumn": "id",
    "onDelete": "RESTRICT"
  }
]
