agents

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
namelongtextYesNULL
system_prompttextYesNULL
tonevarchar(191)Yesramah
ai_enabledtinyint(1)No
auto_readtinyint(1)No0
ai_reply_delay_minbigint(20)No4
ai_reply_delay_maxbigint(20)No8
device_j_idlongtextYesNULL
numberlongtextYesNULL
greeting_enabledtinyint(1)No0
greeting_messagetextYesNULL
business_hours_enabledtinyint(1)No0
business_startvarchar(5)Yes08:00
business_endvarchar(5)Yes21:00
away_messagetextYesNULL
conversation_summarytextYesNULL
last_summary_atdatetime(3)YesNULL
spreadsheet_urltextYesNULL
spreadsheet_sheet_namevarchar(80)YesLeads
sheet_sync_enabledtinyint(1)No0
origin_city_idbigint(20)Yes0
origin_city_namevarchar(100)YesNULL
default_weight_grambigint(20)Yes1000
enabled_couriersvarchar(100)Yesjne,jnt,sicepat
api_keyvarchar(80)YesNULL
webhook_urltextYesNULL
webhook_secretvarchar(80)YesNULL
created_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_agents_tenant_idBTREENoNotenant_id0ANo
idx_agents_api_keyBTREENoNoapi_key0AYes

ai_form_sessions

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
agent_idbigint(20)No
sendervarchar(32)No
form_idbigint(20)No
step_indexbigint(20)No0
data_jsontextYesNULL
statusvarchar(24)Nocollecting
expires_atdatetime(3)YesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_ai_form_agent_senderBTREEYesNoagent_id0ANo
sender0ANo
idx_ai_form_sessions_tenant_idBTREENoNotenant_id0ANo
idx_ai_form_sessions_form_idBTREENoNoform_id0ANo
idx_ai_form_sessions_statusBTREENoNostatus0ANo
idx_ai_form_sessions_expires_atBTREENoNoexpires_at0AYes

ai_form_submissions

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
agent_idbigint(20)No
form_idbigint(20)No ai_forms -> id
sendervarchar(32)No
codevarchar(32)No
statusvarchar(24)Nosubmitted
data_jsontextYesNULL
summarytextYesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_ai_form_submissions_codeBTREEYesNocode0ANo
idx_ai_form_submissions_tenant_idBTREENoNotenant_id0ANo
idx_ai_form_submissions_agent_idBTREENoNoagent_id0ANo
idx_ai_form_submissions_form_idBTREENoNoform_id0ANo
idx_ai_form_submissions_senderBTREENoNosender0ANo
idx_ai_form_submissions_statusBTREENoNostatus0ANo

ai_forms

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
agent_idbigint(20)No
namevarchar(160)No
goaltextYesNULL
intent_hints_jsontextYesNULL
steps_jsontextYesNULL
enabledtinyint(1)No1
handofftinyint(1)No1
success_messagetextYesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_ai_forms_tenant_idBTREENoNotenant_id0ANo
idx_ai_forms_agent_idBTREENoNoagent_id0ANo

ai_turns

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
sendervarchar(32)YesNULL
user_messagetextYesNULL
ai_replytextYesNULL
modelvarchar(80)YesNULL
prompt_versionvarchar(40)Yeslegacy
knowledge_used_countbigint(20)YesNULL
knowledge_idsvarchar(255)YesNULL
top_similaritydoubleYesNULL
answer_overlapdoubleYesNULL
product_used_countbigint(20)YesNULL
product_idsvarchar(255)YesNULL
retrieval_modevarchar(24)YesNULL
retrieval_querytextYesNULL
grounding_retriedtinyint(1)No0
grounding_fallbacktinyint(1)No0
used_shipping_tooltinyint(1)No0
escalatedtinyint(1)No0
errortextYesNULL
latency_msbigint(20)YesNULL
created_atdatetime(3)YesNULL
response_policyvarchar(24)YesNULL
response_retriedtinyint(1)No0
response_charsbigint(20)No0

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_ai_turns_agent_idBTREENoNoagent_id0ANo
idx_ai_turns_senderBTREENoNosender0AYes
idx_ai_turns_prompt_versionBTREENoNoprompt_version0AYes
idx_ai_turns_retrieval_modeBTREENoNoretrieval_mode0AYes
idx_ai_turns_grounding_fallbackBTREENoNogrounding_fallback0ANo
idx_ai_turns_used_shipping_toolBTREENoNoused_shipping_tool0ANo
idx_ai_turns_escalatedBTREENoNoescalated0ANo
idx_ai_turns_created_atBTREENoNocreated_at0AYes
idx_ai_turns_response_policyBTREENoNoresponse_policy0AYes
idx_ai_turns_response_retriedBTREENoNoresponse_retried0ANo

app_settings

ColumnTypeNullDefault Links to Comments MIME
key (Primary)varchar(64)No
valuetextYesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNokey0ANo

auto_replies

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
keywordstextYesNULL
match_typevarchar(16)Yescontains
replytextYesNULL
enabledtinyint(1)No1
sort_orderbigint(20)No0
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_auto_replies_agent_idBTREENoNoagent_id0ANo

broadcast_recipients

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
broadcast_idbigint(20)No
numbervarchar(64)YesNULL
namelongtextYesNULL
agent_idbigint(20)YesNULL
statusvarchar(16)Yespending
errorlongtextYesNULL
sent_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_broadcast_recipients_broadcast_idBTREENoNobroadcast_id0ANo
idx_broadcast_recipients_agent_idBTREENoNoagent_id0AYes

broadcasts

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
agent_idbigint(20)No
agent_idstextYesNULL
quarantine_jsontextYesNULL
messagetextYesNULL
product_idbigint(20)YesNULL
product_buttons_jsontextYesNULL
target_typevarchar(16)Yesnumber
statusvarchar(16)Yespending
pause_reasonvarchar(48)YesNULL
pause_codebigint(20)YesNULL
paused_atdatetime(3)YesNULL
consent_categoryvarchar(32)YesNULL
consent_sourcevarchar(48)YesNULL
risk_levelvarchar(16)YesNULL
risk_reasonstextYesNULL
risk_acknowledgedtinyint(1)No0
override_reasontextYesNULL
override_bybigint(20)YesNULL
override_atdatetime(3)YesNULL
min_delaybigint(20)YesNULL
max_delaybigint(20)YesNULL
rest_everybigint(20)YesNULL
rest_durationbigint(20)YesNULL
media_typevarchar(16)YesNULL
media_pathlongtextYesNULL
file_namelongtextYesNULL
mimetypelongtextYesNULL
contact_namevarchar(120)YesNULL
contact_numbervarchar(32)YesNULL
totalbigint(20)YesNULL
sentbigint(20)YesNULL
failedbigint(20)YesNULL
skippedbigint(20)YesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_broadcasts_tenant_idBTREENoNotenant_id0ANo
idx_broadcasts_agent_idBTREENoNoagent_id0ANo
idx_broadcasts_product_idBTREENoNoproduct_id0AYes
idx_broadcasts_target_typeBTREENoNotarget_type0AYes
idx_broadcasts_statusBTREENoNostatus0AYes
idx_broadcasts_consent_categoryBTREENoNoconsent_category0AYes
idx_broadcasts_risk_levelBTREENoNorisk_level0AYes
idx_broadcasts_override_byBTREENoNooverride_by0AYes

chat_histories

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)YesNULL
sendervarchar(32)YesNULL
messagelongtextYesNULL
replylongtextYesNULL
from_humantinyint(1)No0
media_typevarchar(16)YesNULL
media_pathlongtextYesNULL
file_namelongtextYesNULL
mimetypelongtextYesNULL
image_analysistextYesNULL
image_analysis_statusvarchar(24)YesNULL
image_analysis_modelvarchar(120)YesNULL
image_analysis_confidencedoubleYesNULL
image_analysis_answertextYesNULL
image_analysis_product_idbigint(20)YesNULL
image_analysis_needs_humantinyint(1)No0
wa_msg_idvarchar(64)YesNULL
reply_tolongtextYesNULL
reply_textvarchar(200)YesNULL
revokedtinyint(1)Yes0
delivery_statusvarchar(24)Yessent
send_errortextYesNULL
retry_countbigint(20)No0
next_retry_atdatetime(3)YesNULL
created_atdatetime(3)YesNULL
media_metadatablobYesNULL
media_fetch_statusvarchar(24)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_chat_histories_agent_idBTREENoNoagent_id0AYes
idx_chat_histories_senderBTREENoNosender0AYes
idx_chat_histories_image_analysis_statusBTREENoNoimage_analysis_status0AYes
idx_chat_histories_image_analysis_product_idBTREENoNoimage_analysis_product_id0AYes
idx_chat_histories_image_analysis_needs_humanBTREENoNoimage_analysis_needs_human0ANo
idx_chat_histories_delivery_statusBTREENoNodelivery_status0AYes
idx_chat_histories_next_retry_atBTREENoNonext_retry_at0AYes
idx_chat_agent_wa_msgBTREENoNoagent_id0AYes
wa_msg_id0AYes
idx_chat_agent_sender_timeBTREENoNoagent_id0AYes
sender0AYes
created_at0AYes

chat_labels

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
label_idvarchar(64)No
sendervarchar(32)No

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_chatlabelBTREEYesNoagent_id0ANo
label_id0ANo
sender0ANo

closing_forms

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
schema_jsontextYesNULL
enabledtinyint(1)No1
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_closing_forms_agent_idBTREEYesNoagent_id0ANo

closing_records

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
sendervarchar(32)YesNULL
statusvarchar(20)Yesdetected
confidencedoubleYesNULL
data_jsontextYesNULL
raw_summarytextYesNULL
sheet_errorlongtextYesNULL
idempotency_keyvarchar(128)YesNULL
sheet_rowbigint(20)Yes0
exported_atdatetime(3)YesNULL
created_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_closing_records_idempotency_keyBTREEYesNoidempotency_key0AYes
idx_closing_records_agent_idBTREENoNoagent_id0ANo
idx_closing_records_senderBTREENoNosender0AYes

contact_consents

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
numbervarchar(32)No
categoryvarchar(32)No
sourcevarchar(48)No
notetextYesNULL
granted_atdatetime(3)No
revoked_atdatetime(3)YesNULL
recorded_bybigint(20)YesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_contact_consentBTREEYesNoagent_id0ANo
number0ANo
category0ANo
idx_contact_consents_granted_atBTREENoNogranted_at0ANo
idx_contact_consents_revoked_atBTREENoNorevoked_at0AYes
idx_contact_consents_recorded_byBTREENoNorecorded_by0AYes

contacts

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
numbervarchar(32)No
namelongtextYesNULL
notestextYesNULL
tagstextYesNULL
lead_stagevarchar(24)Nonew
lead_stage_sourcevarchar(24)Nosystem
lead_stage_reasonvarchar(500)YesNULL
lead_stage_confidencedoubleNo0
lead_stage_lockedtinyint(1)No0
lead_stage_analyzed_chat_idbigint(20)No0
lead_stage_updated_atdatetime(3)YesNULL
manual_pause_untildatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_contact_agent_numberBTREEYesNoagent_id0ANo
number0ANo
idx_contacts_lead_stageBTREENoNolead_stage0ANo
idx_contacts_lead_stage_sourceBTREENoNolead_stage_source0ANo
idx_contacts_lead_stage_lockedBTREENoNolead_stage_locked0ANo
idx_contacts_lead_stage_analyzed_chat_idBTREENoNolead_stage_analyzed_chat_id0ANo
idx_contacts_manual_pause_untilBTREENoNomanual_pause_until0AYes

conversation_memories

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
sendervarchar(32)No
summarytextYesNULL
last_chat_idbigint(20)No0
last_summary_atdatetime(3)YesNULL
brief_jsontextYesNULL
brief_chat_idbigint(20)No0
brief_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_convmem_agent_senderBTREEYesNoagent_id0ANo
sender0ANo
idx_conversation_memories_last_chat_idBTREENoNolast_chat_id0ANo

crawl_jobs

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
root_urltextYesNULL
domainvarchar(255)YesNULL
statusvarchar(16)Yespending
pages_foundbigint(20)No0
errortextYesNULL
persona_updatedtinyint(1)No0
persona_errortextYesNULL
created_atdatetime(3)YesNULL
finished_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_crawl_jobs_agent_idBTREENoNoagent_id0ANo
idx_crawl_jobs_statusBTREENoNostatus0AYes

crawl_pages

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
job_idbigint(20)No
agent_idbigint(20)No
urltextYesNULL
titletextYesNULL
statusvarchar(16)Yesfound
char_countbigint(20)No0
contentlongtextYesNULL
errortextYesNULL
recommendedtinyint(1)No0
recommend_scorebigint(20)No0
recommend_tiervarchar(16)Yes
recommend_reasonvarchar(400)YesNULL
trained_atdatetime(3)YesNULL
created_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_crawl_pages_job_idBTREENoNojob_id0ANo
idx_crawl_pages_agent_idBTREENoNoagent_id0ANo
idx_crawl_pages_statusBTREENoNostatus0AYes

cs_activity_logs

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
user_idbigint(20)No
agent_idbigint(20)No
sendervarchar(32)YesNULL
actionvarchar(32)No
detailvarchar(500)YesNULL
created_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_cs_activity_logs_tenant_idBTREENoNotenant_id0ANo
idx_cs_activity_logs_user_idBTREENoNouser_id0ANo
idx_cs_activity_logs_agent_idBTREENoNoagent_id0ANo
idx_cs_activity_logs_senderBTREENoNosender0AYes
idx_cs_activity_logs_actionBTREENoNoaction0ANo
idx_cs_activity_logs_created_atBTREENoNocreated_at0AYes

flow_sessions

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
sendervarchar(32)No
node_idvarchar(64)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_flow_session_acBTREEYesNoagent_id0ANo
sender0ANo

flows

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
enabledtinyint(1)No0
triggervarchar(64)YesNULL
match_typevarchar(16)Yesexact
display_modevarchar(16)Noauto
structurelongtextYesNULL
delay_minbigint(20)No2
delay_maxbigint(20)No4
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_flows_agent_idBTREEYesNoagent_id0ANo

follow_up_enrollments

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
follow_up_idbigint(20)No
numbervarchar(32)No
tenant_idbigint(20)No
agent_idbigint(20)No
namelongtextYesNULL
enrolled_atdatetime(3)YesNULL
next_stepbigint(20)No0
statusvarchar(16)Yesactive
stopped_reasonvarchar(32)YesNULL
last_sent_atdatetime(3)YesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_enrollBTREEYesNofollow_up_id0ANo
number0ANo
idx_follow_up_enrollments_tenant_idBTREENoNotenant_id0ANo
idx_follow_up_enrollments_agent_idBTREENoNoagent_id0ANo
idx_follow_up_enrollments_statusBTREENoNostatus0AYes

follow_up_steps

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
follow_up_idbigint(20)No
step_orderbigint(20)No0
delay_hoursbigint(20)No0
messagetextYesNULL
ai_generatedtinyint(1)No0
ai_instructiontextYesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_follow_up_steps_follow_up_idBTREENoNofollow_up_id0ANo

follow_ups

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
agent_idbigint(20)No
namevarchar(160)No
enabledtinyint(1)No1
stop_on_replytinyint(1)No1
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_follow_ups_tenant_idBTREENoNotenant_id0ANo
idx_follow_ups_agent_idBTREENoNoagent_id0ANo

group_guard_configs

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)YesNULL
agent_idbigint(20)No
group_jidvarchar(64)No
group_namevarchar(128)YesNULL
enabledtinyint(1)No0
delete_spamtinyint(1)No1
flag_for_kicktinyint(1)No1
auto_kicktinyint(1)No0
block_linkstinyint(1)No1
block_phonestinyint(1)No0
block_wordstextYesNULL
flood_countbigint(20)No0
flood_window_secbigint(20)No10
allow_numberstextYesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_groupguard_agent_groupBTREEYesNoagent_id0ANo
group_jid0ANo
idx_group_guard_configs_tenant_idBTREENoNotenant_id0AYes
idx_group_guard_configs_agent_idBTREENoNoagent_id0ANo

group_moderation_logs

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
group_jidvarchar(64)YesNULL
group_namevarchar(128)YesNULL
sendervarchar(32)YesNULL
sender_jidvarchar(64)YesNULL
sender_namevarchar(128)YesNULL
wa_msg_idvarchar(64)YesNULL
actionvarchar(16)YesNULL
reasonvarchar(128)YesNULL
excerptvarchar(280)YesNULL
statusvarchar(16)Yesdone
acted_byvarchar(32)YesNULL
created_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_group_moderation_logs_agent_idBTREENoNoagent_id0ANo
idx_group_moderation_logs_group_j_idBTREENoNogroup_jid0AYes
idx_group_moderation_logs_actionBTREENoNoaction0AYes
idx_group_moderation_logs_statusBTREENoNostatus0AYes

handoffs

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)YesNULL
sendervarchar(32)YesNULL
last_msgtextYesNULL
created_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_handoffs_agent_idBTREENoNoagent_id0AYes
idx_handoffs_senderBTREENoNosender0AYes

inbox_read_states

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
sendervarchar(32)No
last_read_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL
whats_app_unread_countbigint(20)No0
whats_app_syncedtinyint(1)No0
whats_app_state_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_inbox_read_agent_senderBTREEYesNoagent_id0ANo
sender0ANo

knowledges

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)YesNULL
questiontextYesNULL
answertextYesNULL
tagslongtextYesNULL
embeddinglongtextYesNULL
embedding_modelvarchar(80)YesNULL
sourcevarchar(16)Yesmanual
source_urltextYesNULL
char_countbigint(20)No0
created_atdatetime(3)YesNULL
activetinyint(1)No1
prioritybigint(20)No0
verified_atdatetime(3)YesNULL
effective_fromdatetime(3)YesNULL
effective_untildatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_knowledges_agent_idBTREENoNoagent_id0AYes
idx_knowledges_sourceBTREENoNosource0AYes
idx_knowledges_activeBTREENoNoactive0ANo
idx_knowledges_priorityBTREENoNopriority0ANo
idx_knowledges_verified_atBTREENoNoverified_at0AYes
idx_knowledges_effective_fromBTREENoNoeffective_from0AYes
idx_knowledges_effective_untilBTREENoNoeffective_until0AYes

labels

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
label_idvarchar(64)No
namelongtextYesNULL
colorbigint(20)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_label_agentBTREEYesNoagent_id0ANo
label_id0ANo

login_throttles

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
keyvarchar(255)No
failuresbigint(20)No0
first_seendatetime(3)YesNULL
locked_untildatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_login_throttles_keyBTREEYesNokey0ANo
idx_login_throttles_first_seenBTREENoNofirst_seen0AYes
idx_login_throttles_locked_untilBTREENoNolocked_until0AYes

meta_conversion_events

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)YesNULL
event_idvarchar(100)No
event_namevarchar(48)No
event_timedatetime(3)No
source_urltextYesNULL
user_data_jsontextYesNULL
custom_data_jsontextYesNULL
statusvarchar(16)Yespending
attemptsbigint(20)No0
next_attempt_atdatetime(3)YesNULL
last_errortextYesNULL
meta_responsetextYesNULL
sent_atdatetime(3)YesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_meta_conversion_events_event_idBTREEYesNoevent_id0ANo
idx_meta_conversion_events_tenant_idBTREENoNotenant_id0AYes
idx_meta_conversion_events_event_nameBTREENoNoevent_name0ANo
idx_meta_conversion_events_event_timeBTREENoNoevent_time0ANo
idx_meta_conversion_events_statusBTREENoNostatus0AYes
idx_meta_conversion_events_next_attempt_atBTREENoNonext_attempt_at0AYes

opt_outs

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
sendervarchar(32)No
created_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_optout_agent_senderBTREEYesNoagent_id0ANo
sender0ANo

otp_codes

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
numbervarchar(32)No
code_hashvarchar(64)No
expires_atdatetime(3)YesNULL
attemptsbigint(20)No0
usedtinyint(1)No0
created_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_otp_codes_agent_idBTREENoNoagent_id0ANo
idx_otp_codes_numberBTREENoNonumber0ANo
idx_otp_codes_expires_atBTREENoNoexpires_at0AYes

product_checkout_sessions

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
agent_idbigint(20)No
sendervarchar(32)No
product_idbigint(20)No
step_indexbigint(20)No0
data_jsontextYesNULL
statusvarchar(24)Nocollecting
expires_atdatetime(3)YesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_checkout_agent_senderBTREEYesNoagent_id0ANo
sender0ANo
idx_product_checkout_sessions_tenant_idBTREENoNotenant_id0ANo
idx_product_checkout_sessions_product_idBTREENoNoproduct_id0ANo
idx_product_checkout_sessions_statusBTREENoNostatus0ANo
idx_product_checkout_sessions_expires_atBTREENoNoexpires_at0AYes

product_orders

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
agent_idbigint(20)No
product_idbigint(20)No products -> id
sendervarchar(32)No
order_codevarchar(32)No
statusvarchar(24)Nopending_cs
data_jsontextYesNULL
summarytextYesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_product_orders_order_codeBTREEYesNoorder_code0ANo
idx_product_orders_tenant_idBTREENoNotenant_id0ANo
idx_product_orders_agent_idBTREENoNoagent_id0ANo
idx_product_orders_product_idBTREENoNoproduct_id0ANo
idx_product_orders_senderBTREENoNosender0ANo
idx_product_orders_statusBTREENoNostatus0ANo

products

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
agent_idbigint(20)No
namevarchar(255)No
product_typevarchar(32)Nophysical
pricevarchar(64)YesNULL
descriptiontextYesNULL
details_jsontextYesNULL
knowledgetextYesNULL
ai_sales_guidancetextYesNULL
image_pathvarchar(512)YesNULL
image_mimevarchar(64)YesNULL
buttons_jsontextYesNULL
checkout_steps_jsontextYesNULL
checkout_handofftinyint(1)No1
checkout_success_messagetextYesNULL
embeddinglongtextYesNULL
embedding_modelvarchar(80)YesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_products_tenant_idBTREENoNotenant_id0ANo
idx_products_agent_idBTREENoNoagent_id0ANo

scheduled_messages

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
agent_idbigint(20)No
run_atdatetime(3)YesNULL
messagetextYesNULL
product_idbigint(20)YesNULL
product_buttons_jsontextYesNULL
recipientslongtextYesNULL
recipient_countbigint(20)YesNULL
target_typevarchar(16)Yesnumber
media_typevarchar(16)YesNULL
media_pathlongtextYesNULL
file_namelongtextYesNULL
mimetypelongtextYesNULL
min_delaybigint(20)YesNULL
max_delaybigint(20)YesNULL
rest_everybigint(20)YesNULL
rest_durationbigint(20)YesNULL
statusvarchar(16)Yesscheduled
consent_categoryvarchar(32)YesNULL
consent_sourcevarchar(48)YesNULL
risk_levelvarchar(16)YesNULL
risk_reasonstextYesNULL
risk_acknowledgedtinyint(1)No0
override_reasontextYesNULL
override_bybigint(20)YesNULL
override_atdatetime(3)YesNULL
broadcast_idbigint(20)YesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_scheduled_messages_tenant_idBTREENoNotenant_id0ANo
idx_scheduled_messages_agent_idBTREENoNoagent_id0ANo
idx_scheduled_messages_run_atBTREENoNorun_at0AYes
idx_scheduled_messages_product_idBTREENoNoproduct_id0AYes
idx_scheduled_messages_target_typeBTREENoNotarget_type0AYes
idx_scheduled_messages_statusBTREENoNostatus0AYes
idx_scheduled_messages_consent_categoryBTREENoNoconsent_category0AYes
idx_scheduled_messages_risk_levelBTREENoNorisk_level0AYes
idx_scheduled_messages_override_byBTREENoNooverride_by0AYes

scheduled_statuses

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
agent_idbigint(20)No
run_atdatetime(3)YesNULL
texttextYesNULL
media_typevarchar(16)YesNULL
media_pathlongtextYesNULL
mimetypelongtextYesNULL
statusvarchar(16)Yesscheduled
errortextYesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_scheduled_statuses_tenant_idBTREENoNotenant_id0ANo
idx_scheduled_statuses_agent_idBTREENoNoagent_id0ANo
idx_scheduled_statuses_run_atBTREENoNorun_at0AYes
idx_scheduled_statuses_statusBTREENoNostatus0AYes

settings

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
system_prompttextYesNULL
ai_modelvarchar(191)Yesdeepseek-v4-pro
tonevarchar(191)Yesramah

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo

shipping_cities

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
raja_ongkir_idbigint(20)YesNULL
provincevarchar(100)YesNULL
typevarchar(20)YesNULL
city_namevarchar(100)YesNULL
full_namevarchar(200)YesNULL
search_texttextYesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_shipping_cities_raja_ongkir_idBTREEYesNoraja_ongkir_id0AYes

templates

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
agent_idbigint(20)No
titlevarchar(120)No
bodytextYesNULL
sort_orderbigint(20)No0
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL
media_typevarchar(24)YesNULL
media_pathlongtextYesNULL
file_namevarchar(255)YesNULL
mimetypevarchar(120)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_templates_agent_idBTREENoNoagent_id0ANo

tenants

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
namelongtextYesNULL
created_atdatetime(3)YesNULL
updated_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo

user_agent_assignments

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
tenant_idbigint(20)No
user_idbigint(20)No
agent_idbigint(20)No
created_atdatetime(3)YesNULL

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid0ANo
idx_user_agent_assignmentBTREEYesNotenant_id0ANo
user_id0ANo
agent_id0ANo
idx_user_agent_assignments_tenant_idBTREENoNotenant_id0ANo
idx_user_agent_assignments_user_idBTREENoNouser_id0ANo
idx_user_agent_assignments_agent_idBTREENoNoagent_id0ANo

users

ColumnTypeNullDefault Links to Comments MIME
id (Primary)bigint(20)No
usernamevarchar(64)No
passwordlongtextYesNULL
rolevarchar(24)Yesowner
namelongtextYesNULL
emailvarchar(255)YesNULL
email_verifiedtinyint(1)Yes0
email_verify_tokenvarchar(128)YesNULL
phonevarchar(32)YesNULL
tenant_idbigint(20)YesNULL
is_super_admintinyint(1)Yes0
password_reset_tokenvarchar(128)YesNULL
password_reset_expirydatetime(3)YesNULL
activetinyint(1)No1

Indexes

No index defined!
KeynameTypeUniquePackedColumnCardinalityCollationNullComment
PRIMARYBTREEYesNoid1ANo
idx_users_usernameBTREEYesNousername1ANo
idx_users_phoneBTREENoNophone1AYes
idx_users_tenant_idBTREENoNotenant_id1AYes