For specific API endpoints to manage accounts in the database, please refer to the Accounts API operations:
Database Overview
The database schema is organized by functional areas, providing clear separation of concerns and optimized data access patterns. Database Schema Overview Core Tables RelationshipDatabase Schema
Below is a detailed SQL representation of the main tables in the OnlyAutomator database.Core Tables
The core tables manage user accounts and basic information.users
Stores primary user information.accounts
Stores OnlyFans creator accounts linked to users.customers
Stores Stripe customer information for billing.Fan Management Tables
Tables that store information about creator fans and their interactions.fans
Stores basic information about OnlyFans subscribers.fans_service
Stores detailed service information about fans.fans_statistics_service
Stores financial statistics related to fans.fans_message_statistics_service
Stores messaging statistics related to fans.Subscription Management
Tables that manage user subscriptions to OnlyAutomator’s premium features.products
Stores information about available products.prices
Defines the pricing structure for products.subscriptions
Tracks user subscriptions.Content Management
Tables that organize user content such as message templates and automation scripts.folders
Organizes user content into folders.scripts
Stores user-created scripts.tags
Contains metadata tags for content organization.emojis
Stores emoji data for user communications.System Tables
Tables that support system operations.email_tracking
Tracks email delivery and engagement.Client Integration
Connect to the Supabase database in your application:Real-time Subscriptions
Supabase provides real-time data subscriptions:Row-Level Security
Supabase enforces Row-Level Security (RLS) to ensure data access control:- All tables have RLS enabled
- Policies restrict access to the user’s own data
- API calls automatically include the user’s token for authentication