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
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
This commit is contained in:
0
backend/models/community/blog.js
Normal file → Executable file
0
backend/models/community/blog.js
Normal file → Executable file
0
backend/models/community/blog_post.js
Normal file → Executable file
0
backend/models/community/blog_post.js
Normal file → Executable file
0
backend/models/community/calendar_event.js
Normal file → Executable file
0
backend/models/community/calendar_event.js
Normal file → Executable file
0
backend/models/community/diary.js
Normal file → Executable file
0
backend/models/community/diary.js
Normal file → Executable file
0
backend/models/community/diary_history.js
Normal file → Executable file
0
backend/models/community/diary_history.js
Normal file → Executable file
0
backend/models/community/erotic_content_report.js
Normal file → Executable file
0
backend/models/community/erotic_content_report.js
Normal file → Executable file
0
backend/models/community/erotic_video.js
Normal file → Executable file
0
backend/models/community/erotic_video.js
Normal file → Executable file
0
backend/models/community/erotic_video_image_visibility.js
Normal file → Executable file
0
backend/models/community/erotic_video_image_visibility.js
Normal file → Executable file
0
backend/models/community/erotic_video_visibility_user.js
Normal file → Executable file
0
backend/models/community/erotic_video_visibility_user.js
Normal file → Executable file
0
backend/models/community/folder.js
Normal file → Executable file
0
backend/models/community/folder.js
Normal file → Executable file
0
backend/models/community/folder_image_visibility.js
Normal file → Executable file
0
backend/models/community/folder_image_visibility.js
Normal file → Executable file
0
backend/models/community/folder_visibility_user.js
Normal file → Executable file
0
backend/models/community/folder_visibility_user.js
Normal file → Executable file
0
backend/models/community/friendship.js
Normal file → Executable file
0
backend/models/community/friendship.js
Normal file → Executable file
0
backend/models/community/guestbook.js
Normal file → Executable file
0
backend/models/community/guestbook.js
Normal file → Executable file
0
backend/models/community/image.js
Normal file → Executable file
0
backend/models/community/image.js
Normal file → Executable file
0
backend/models/community/image_image_visibility.js
Normal file → Executable file
0
backend/models/community/image_image_visibility.js
Normal file → Executable file
0
backend/models/community/image_visibility_user.js
Normal file → Executable file
0
backend/models/community/image_visibility_user.js
Normal file → Executable file
0
backend/models/community/interest.js
Normal file → Executable file
0
backend/models/community/interest.js
Normal file → Executable file
0
backend/models/community/oauth_identity.js
Normal file → Executable file
0
backend/models/community/oauth_identity.js
Normal file → Executable file
14
backend/models/community/push_notification_device.js
Normal file
14
backend/models/community/push_notification_device.js
Normal 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,
|
||||
});
|
||||
16
backend/models/community/push_notification_setting.js
Normal file
16
backend/models/community/push_notification_setting.js
Normal 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
0
backend/models/community/user.js
Normal file → Executable file
7
backend/models/community/user_block.js
Normal file
7
backend/models/community/user_block.js
Normal 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
0
backend/models/community/user_dashboard.js
Normal file → Executable file
0
backend/models/community/user_param.js
Normal file → Executable file
0
backend/models/community/user_param.js
Normal file → Executable file
0
backend/models/community/user_param_visibility.js
Normal file → Executable file
0
backend/models/community/user_param_visibility.js
Normal file → Executable file
0
backend/models/community/user_right.js
Normal file → Executable file
0
backend/models/community/user_right.js
Normal file → Executable file
0
backend/models/community/vocab_course.js
Normal file → Executable file
0
backend/models/community/vocab_course.js
Normal file → Executable file
0
backend/models/community/vocab_course_enrollment.js
Normal file → Executable file
0
backend/models/community/vocab_course_enrollment.js
Normal file → Executable file
0
backend/models/community/vocab_course_lesson.js
Normal file → Executable file
0
backend/models/community/vocab_course_lesson.js
Normal file → Executable file
0
backend/models/community/vocab_course_progress.js
Normal file → Executable file
0
backend/models/community/vocab_course_progress.js
Normal file → Executable file
0
backend/models/community/vocab_grammar_exercise.js
Normal file → Executable file
0
backend/models/community/vocab_grammar_exercise.js
Normal file → Executable file
0
backend/models/community/vocab_grammar_exercise_progress.js
Normal file → Executable file
0
backend/models/community/vocab_grammar_exercise_progress.js
Normal file → Executable file
0
backend/models/community/vocab_grammar_exercise_type.js
Normal file → Executable file
0
backend/models/community/vocab_grammar_exercise_type.js
Normal file → Executable file
0
backend/models/community/vocab_srs_item.js
Normal file → Executable file
0
backend/models/community/vocab_srs_item.js
Normal file → Executable file
Reference in New Issue
Block a user