Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s

This commit is contained in:
Torsten Schulz (local)
2026-07-21 09:08:15 +02:00
parent 75b52de282
commit 1ab9407e79
1400 changed files with 22278 additions and 485 deletions

0
backend/models/community/blog.js Normal file → Executable file
View File

0
backend/models/community/blog_post.js Normal file → Executable file
View File

0
backend/models/community/calendar_event.js Normal file → Executable file
View File

0
backend/models/community/diary.js Normal file → Executable file
View File

0
backend/models/community/diary_history.js Normal file → Executable file
View File

0
backend/models/community/erotic_content_report.js Normal file → Executable file
View File

0
backend/models/community/erotic_video.js Normal file → Executable file
View File

View File

View File

0
backend/models/community/folder.js Normal file → Executable file
View File

0
backend/models/community/folder_image_visibility.js Normal file → Executable file
View File

0
backend/models/community/folder_visibility_user.js Normal file → Executable file
View File

0
backend/models/community/friendship.js Normal file → Executable file
View File

0
backend/models/community/guestbook.js Normal file → Executable file
View File

0
backend/models/community/image.js Normal file → Executable file
View File

0
backend/models/community/image_image_visibility.js Normal file → Executable file
View File

0
backend/models/community/image_visibility_user.js Normal file → Executable file
View File

0
backend/models/community/interest.js Normal file → Executable file
View File

0
backend/models/community/oauth_identity.js Normal file → Executable file
View File

View File

@@ -0,0 +1,14 @@
import { sequelize } from '../../utils/sequelize.js';
import { DataTypes } from 'sequelize';
export default sequelize.define('push_notification_device', {
userId: { type: DataTypes.INTEGER, allowNull: false },
token: { type: DataTypes.TEXT, allowNull: false, unique: true },
platform: { type: DataTypes.STRING(20), allowNull: false, defaultValue: 'android' },
enabled: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: true },
}, {
tableName: 'push_notification_device',
schema: 'community',
underscored: true,
timestamps: true,
});

View File

@@ -0,0 +1,16 @@
import { sequelize } from '../../utils/sequelize.js';
import { DataTypes } from 'sequelize';
export default sequelize.define('push_notification_setting', {
userId: { type: DataTypes.INTEGER, primaryKey: true, allowNull: false },
enabled: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: false },
chatEnabled: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: true },
friendLoginEnabled: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: true },
falukantEnabled: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: true },
vocabReminderEnabled: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: true },
}, {
tableName: 'push_notification_setting',
schema: 'community',
underscored: true,
timestamps: true,
});

0
backend/models/community/user.js Normal file → Executable file
View File

View File

@@ -0,0 +1,7 @@
import { sequelize } from '../../utils/sequelize.js';
import { DataTypes } from 'sequelize';
export default sequelize.define('user_block', {
blockerId: { type: DataTypes.INTEGER, allowNull: false },
blockedId: { type: DataTypes.INTEGER, allowNull: false },
}, { tableName: 'user_block', schema: 'community', underscored: true, timestamps: true });

0
backend/models/community/user_dashboard.js Normal file → Executable file
View File

0
backend/models/community/user_param.js Normal file → Executable file
View File

0
backend/models/community/user_param_visibility.js Normal file → Executable file
View File

0
backend/models/community/user_right.js Normal file → Executable file
View File

0
backend/models/community/vocab_course.js Normal file → Executable file
View File

0
backend/models/community/vocab_course_enrollment.js Normal file → Executable file
View File

0
backend/models/community/vocab_course_lesson.js Normal file → Executable file
View File

0
backend/models/community/vocab_course_progress.js Normal file → Executable file
View File

0
backend/models/community/vocab_grammar_exercise.js Normal file → Executable file
View File

View File

View File

0
backend/models/community/vocab_srs_item.js Normal file → Executable file
View File