Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.

This commit is contained in:
Torsten Schulz (local)
2026-07-21 09:08:15 +02:00
parent 9557d36059
commit 7db084897a
1400 changed files with 22278 additions and 485 deletions

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

0
backend/models/chat/index.js Normal file → Executable file
View File

0
backend/models/chat/rights.js Normal file → Executable file
View File

0
backend/models/chat/room.js Normal file → Executable file
View File

0
backend/models/chat/room_type.js Normal file → Executable file
View File

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

0
backend/models/chat/user_rights.js Normal file → Executable file
View File

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

0
backend/models/falukant/data/branch.js Normal file → Executable file
View File

0
backend/models/falukant/data/buyable_house.js Normal file → Executable file
View File

0
backend/models/falukant/data/buyable_stock.js Normal file → Executable file
View File

0
backend/models/falukant/data/candidate.js Normal file → Executable file
View File

0
backend/models/falukant/data/character.js Normal file → Executable file
View File

0
backend/models/falukant/data/child_relation.js Normal file → Executable file
View File

0
backend/models/falukant/data/church_application.js Normal file → Executable file
View File

0
backend/models/falukant/data/church_office.js Normal file → Executable file
View File

0
backend/models/falukant/data/credit.js Normal file → Executable file
View File

0
backend/models/falukant/data/debtors_prism.js Normal file → Executable file
View File

0
backend/models/falukant/data/director.js Normal file → Executable file
View File

0
backend/models/falukant/data/director_proposal.js Normal file → Executable file
View File

0
backend/models/falukant/data/election.js Normal file → Executable file
View File

0
backend/models/falukant/data/election_result.js Normal file → Executable file
View File

View File

0
backend/models/falukant/data/inventory.js Normal file → Executable file
View File

0
backend/models/falukant/data/learning.js Normal file → Executable file
View File

0
backend/models/falukant/data/marriage_proposal.js Normal file → Executable file
View File

View File

0
backend/models/falukant/data/party.js Normal file → Executable file
View File

0
backend/models/falukant/data/partyInvitedNobility.js Normal file → Executable file
View File

0
backend/models/falukant/data/political_appointment.js Normal file → Executable file
View File

View File

0
backend/models/falukant/data/political_office.js Normal file → Executable file
View File

0
backend/models/falukant/data/product_knowledge.js Normal file → Executable file
View File

0
backend/models/falukant/data/production.js Normal file → Executable file
View File

0
backend/models/falukant/data/region.js Normal file → Executable file
View File

0
backend/models/falukant/data/region_distance.js Normal file → Executable file
View File

0
backend/models/falukant/data/region_tax_history.js Normal file → Executable file
View File

0
backend/models/falukant/data/relationship.js Normal file → Executable file
View File

0
backend/models/falukant/data/relationship_state.js Normal file → Executable file
View File

0
backend/models/falukant/data/stock.js Normal file → Executable file
View File

0
backend/models/falukant/data/town_product_worth.js Normal file → Executable file
View File

0
backend/models/falukant/data/transport.js Normal file → Executable file
View File

0
backend/models/falukant/data/underground.js Normal file → Executable file
View File

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

0
backend/models/falukant/data/user_house.js Normal file → Executable file
View File

0
backend/models/falukant/data/vehicle.js Normal file → Executable file
View File

0
backend/models/falukant/data/vote.js Normal file → Executable file
View File

0
backend/models/falukant/data/weather.js Normal file → Executable file
View File

0
backend/models/falukant/log/dayproduction.js Normal file → Executable file
View File

0
backend/models/falukant/log/daysell.js Normal file → Executable file
View File

0
backend/models/falukant/log/election_history.js Normal file → Executable file
View File

0
backend/models/falukant/log/health_activity.js Normal file → Executable file
View File

0
backend/models/falukant/log/moneyflow.js Normal file → Executable file
View File

0
backend/models/falukant/log/notification.js Normal file → Executable file
View File

View File

0
backend/models/falukant/log/product_price_history.js Normal file → Executable file
View File

0
backend/models/falukant/log/promotional_gift.js Normal file → Executable file
View File

0
backend/models/falukant/log/relationship_change_log.js Normal file → Executable file
View File

0
backend/models/falukant/log/reputation_action.js Normal file → Executable file
View File

View File

0
backend/models/falukant/predefine/firstname.js Normal file → Executable file
View File

0
backend/models/falukant/predefine/lastname.js Normal file → Executable file
View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More