Major Features Added: - Complete Plugin Architecture System with financial plugin - Multi-currency support with exchange rates - Course type system (online, classroom, hybrid) - Attendance tracking and QR code scanning - Classroom sessions management - Course sections and content management - Professional video player with authentication - Secure media serving system - Shopping cart and checkout system - Financial dashboard and earnings tracking - Trainee progress tracking - User notes and assignments system Backend Infrastructure: - Plugin loader and registry system - Multi-currency database models - Secure media middleware - Course access middleware - Financial plugin with payment processing - Database migrations for new features - API endpoints for all new functionality Frontend Components: - Course management interface - Content creation and editing - Section management with drag-and-drop - Professional video player - QR scanner for attendance - Shopping cart and checkout flow - Financial dashboard - Plugin management interface - Trainee details and progress views This represents a major evolution of CourseWorx from a basic LMS to a comprehensive educational platform with plugin architecture.
25 lines
628 B
JavaScript
25 lines
628 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up: async (queryInterface, Sequelize) => {
|
|
// Extend shortDescription column length to accommodate longer Arabic text
|
|
await queryInterface.changeColumn('courses', 'shortDescription', {
|
|
type: Sequelize.STRING(1000),
|
|
allowNull: true,
|
|
validate: {
|
|
len: [0, 1000]
|
|
}
|
|
});
|
|
},
|
|
|
|
down: async (queryInterface, Sequelize) => {
|
|
// Revert back to original length
|
|
await queryInterface.changeColumn('courses', 'shortDescription', {
|
|
type: Sequelize.STRING(500),
|
|
allowNull: true,
|
|
validate: {
|
|
len: [0, 500]
|
|
}
|
|
});
|
|
}
|
|
};
|