SQL reference: 98_production_refinement
Production API: https://asi-database-node-api.arybit.co.ke
Source: Database/98_production_refinement.sql
Engine: MySQL legacy. Status: disabled; qualification pending.
Migration ID: 98_production_refinement. SHA-256 (LF): 61a2a597906b648b83855241b4c89aaa260091ccb4d74cd9eb496e8da98373d6.
Pending isolated MySQL/MariaDB compatibility, dependency and tenant-isolation validation.
Source overview
================================================================= Arybit Auth - Production Update Script (MySQL) MODULE: 98_production_refinement VERSION: 4.6.1 • March 2026 Safe for live database (idempotent) - can be re-run anytime
- Fix FKs on tier_platforms
- Critical index on transactions
- Negative balance guard trigger
Declared objects
add_tx_indexadd_user_queue_visibility_indexcheck_post_processedclaim_next_batch_postsclaim_next_best_postclaim_specific_user_pending_postenqueue_sentiment_recoveryenqueue_trace_eventfetch_pending_sentiment_recoveriesfetch_pending_social_postsfetch_research_backlog_for_publishingfix_arsik_queue_columnsfix_engagement_metrics_columnsfix_moderation_logs_bias_colfix_pricing_plans_currencyfix_security_alerts_meta_colfix_social_post_queue_fkfix_tier_platforms_fkget_global_bias_scoreget_post_by_external_idget_queue_pressureget_roi_analysisgrowth_feedbackidx_tx_user_type_status_createdidx_user_queue_visibilityingest_social_feedback_to_researchintelligence_job_queuelog_rejected_contentmark_post_as_sentmark_post_failedmark_research_as_publishedmarketing_campaignsmoderation_logsqueue_social_postrecord_revenue_eventrefine_social_post_queue_columnsreinforce_growth_modelresearch_feedbackrevenue_eventsrevenue_pipelinesecurity_alertssensitive_operation_logsentiment_recovery_queuesocial_post_auditsocial_post_dlqsocial_post_errorssocial_post_queuesocial_post_sent_hashessystem_trace_eventstrg_guard_negative_balanceupdate_growth_feedbackvw_ua_efficiency
This is a static source reference, not a runtime qualification. Object extraction does not interpret SQL semantics. Review the source and manifest before any schema change.