Architecture
Data Layer
Arif AI stores all data in MariaDB using the Mjara ORM. The data model consists of DocTypes organized by function.
| DocType | Type | Purpose |
|---|
| Arif AI Settings | Single | Central configuration |
| Arif AI Conversation | Document | Chat sessions with metadata |
| Arif AI Message | Child | Individual messages with versioning |
| Arif Tool Log | Document | Tool execution audit trail |
| DocType | Type | Purpose |
|---|
| Arif Onboarding Session | Document | Onboarding state persistence |
| Arif Onboarding Answer | Child | Q&A responses |
| Arif Module Onboarding | Document | Module setup tracking |
| Arif Configuration Blueprint | Document | Setup blueprints |
| DocType | Type | Purpose |
|---|
| Arif Pending Action | Document | HITL confirmations queue |
| Arif Rollback Session | Document | Undo operation tracking |
| Arif Rollback Document | Child | Documents to revert |
| DocType | Type | Purpose |
|---|
| Arif Recommendation | Document | AI-generated suggestions |
| Arif Process Execution | Document | Workflow run instances |