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:
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,
|
||||
});
|
||||
Reference in New Issue
Block a user