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

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,
});