Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Mercaline2024/Ecomdrop-ia-connector-2/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Ecomdrop IA Connector uses MySQL 8.0 as its database engine, hosted on a VPS. The schema is managed through Prisma ORM, providing type-safe database access and automatic migrations.Database connection is configured via the
DATABASE_URL environment variable pointing to MySQL 8.0 on VPS (31.97.135.241:3306).Entity Relationship Diagram
Database Tables
Session
Stores Shopify OAuth session data for authenticated store connections.Primary key - Unique session identifier
Shop domain (max 255 chars) - Indexed for fast lookups
OAuth state parameter (max 255 chars)
Whether this is an online (user) or offline (app) session
OAuth scopes granted to the app
Session expiration timestamp (for online sessions)
Shopify access token for API calls
Shopify user ID (for online sessions)
User’s first name (max 255 chars)
User’s last name (max 255 chars)
User’s email address (max 255 chars)
Whether the user is the shop owner
User’s locale preference (max 10 chars)
Whether the user is a collaborator
Whether the user’s email is verified
Session_shop_idxonshop- For efficient shop-based queries
ShopConfiguration
Stores platform configuration and API credentials for each connected shop.Primary key - UUID generated automatically
Shop domain (max 255 chars) - Unique constraint
Ecomdrop API key for flow automation
Ecomdrop flow ID for new orders (max 255 chars)
Ecomdrop flow ID for abandoned carts (max 255 chars)
Dropi store identifier (max 255 chars)
Dropi country code (max 10 chars)
Dropi authentication token
Record creation timestamp
Record last update timestamp (auto-updated)
ShopConfiguration_shop_keyonshop- Unique constraintShopConfiguration_shop_idxonshop- For efficient lookups
ProductAssociation
Tracks product mappings between Dropi and Shopify catalogs.Primary key - UUID generated automatically
Shop domain (max 255 chars)
Dropi product identifier (max 255 chars)
Shopify product ID (max 255 chars)
Product name from Dropi (max 500 chars)
Product title in Shopify (max 500 chars)
Type of import performed (max 50 chars)
JSON data storing variant mappings
Whether to save Dropi product name to Shopify
Whether to save Dropi description to Shopify
Custom pricing rule or value (max 50 chars)
Whether to use Dropi’s suggested barcode
Whether to import product images from Dropi
Record creation timestamp
Record last update timestamp (auto-updated)
ProductAssociation_shop_dropiProductId_shopifyProductId_key- Composite unique constraintProductAssociation_shop_idxonshopProductAssociation_dropiProductId_idxondropiProductIdProductAssociation_shopifyProductId_idxonshopifyProductId
The composite unique constraint ensures each Dropi product can only be associated with a specific Shopify product once per shop.
AIConfiguration
Stores AI agent configuration and knowledge base for each shop.Primary key - UUID generated automatically
Shop domain (max 255 chars) - Unique constraint
Custom name for the AI agent (max 255 chars)
Store/company name (max 255 chars)
Business description for AI context
Accepted payment methods information
Store policies (returns, shipping, etc.)
Frequently asked questions for pre-sale
Post-sale support questions and answers
Custom rules and guidelines for AI behavior
Notification preferences and settings
Record creation timestamp
Record last update timestamp (auto-updated)
AIConfiguration_shop_keyonshop- Unique constraintAIConfiguration_shop_idxonshop- For efficient lookups
Database Configuration
Character Sets and Collation
All tables use:- Character Set:
utf8mb4 - Collation:
utf8mb4_unicode_ci
Migration History
20250105000000_init_mysql - Initial Schema
20250105000000_init_mysql - Initial Schema
Initial database schema creation including all four core tables:
- Session table with OAuth data
- ShopConfiguration for platform settings
- ProductAssociation for product mappings
- AIConfiguration for AI agent setup
Best Practices
Always use Prisma Client for database operations to ensure type safety and proper connection pooling.
Indexing Strategy: The schema includes indexes on frequently queried fields (shop domain) and foreign key relationships for optimal query performance.
Related Documentation
- Prisma Models - Detailed model documentation