UNPKG

cloud-ide-model-schema

Version:

Pachage for schema management of Cloud IDEsys LMS

52 lines (35 loc) 1.55 kB
# Schema Directory This directory contains the compiled JavaScript files and TypeScript declaration files for all MongoDB schema definitions used in the Cloud IDE LMS system. ## Navigation - [Back to Compiled Output](../README.md) - [Back to Main README](../../README.md) - [Common Types Documentation](../common-types/README.md) - [Model Interfaces Documentation](../model/README.md) ## Directory Structure ### Authentication Schemas (`/auth`) Contains compiled schemas for user authentication, profiles, and sessions: - User management - Login sessions - Mobile PIN authentication ### Core System Schemas (`/core`) Contains compiled schemas for core system functionality: - System logging with custom ID generation - System pages and themes - Menu management - Entity management - General master data - File management ### Email Service Schemas (`/email`) Contains compiled schemas for email management: - Email lists - Templates - Logging - Vendor management ## Usage These compiled schema files are the actual Mongoose models used in MongoDB operations. They implement the interfaces defined in the model directory. ## Advanced Features ### Custom ID Generation Some schemas like `core_system_logs` implement custom ID generation using the `customUUID()` utility from the configuration module. This provides: - Application-specific ID prefixes via the `UUID_PREFIX` environment variable - Combination with MongoDB ObjectId for uniqueness - Consistent ID format across the application