Pachage for schema management of Cloud IDEsys LMS
cloud-ide-model-schema package provides Mongoose schema definitions for the Cloud IDE LMS system. It includes schema models for authentication, core functionality, email management, and more.
bash
npm install cloud-ide-model-schema
`
Usage
`javascript
const { CUser, CCoreSytm, CEmailTemplete } = require('cloud-ide-model-schema');
// Use the models to interact with MongoDB
const user = await CUser.findOne({ user_username: 'username' });
`
Project Structure
The project is organized into the following main directories:
$3
- Schema Components (/src/schema/)
- Authentication Schemas (/src/schema/auth/)
- User management
- Login sessions
- Mobile PIN authentication
- Core Schemas (/src/schema/core/)
- System pages and themes
- Menu management
- Entity management
- General master data
- File management
- Email Schemas (/src/schema/email/)
- Email lists
- Templates
- Logging
- Vendor management
- Configuration (/src/config/)
- Database connection utilities
- Environment configuration
$3
- Schema Files (/lib/schema/)
- Compiled JavaScript files of all schema definitions
- TypeScript declaration files (.d.ts)
- Common Types (/lib/common-types/)
- Type definitions for API responses
- JWT payload interfaces
- General utility types
- Configuration (/lib/config/)
- Compiled database utilities
- Model Interfaces (/lib/model/)
- Type definitions for authentication
- Core system model types
- Email service interfaces
Dependencies
- cloud-ide-lms-model - Data model type definitions
- mongoose - MongoDB ORM
- dotenv - Environment variable management
Development
$3
- npm run build - Build TypeScript code
- npm run prepare - Run build automatically before publishing
$3
1. Clone the repository
2. Install dependencies: npm install
3. Make your changes
4. Build the project: npm run build`