Files
yourpart3/backend/models/falukant/log/promotional_gift.js
Torsten Schulz (local) 1ab9407e79
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s
Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.
2026-07-21 09:08:15 +02:00

26 lines
705 B
JavaScript
Executable File

import { Model, DataTypes } from 'sequelize';
import { sequelize } from '../../../utils/sequelize.js';
class PromotionalGiftLog extends Model { };
PromotionalGiftLog.init({
senderCharacterId: {
type: DataTypes.INTEGER,
allowNull: false},
recipientCharacterId: {
type: DataTypes.INTEGER,
allowNull: false},
giftId: {
type: DataTypes.INTEGER,
allowNull: false},
changeValue: {
type: DataTypes.INTEGER,
allowNull: false}}, {
sequelize,
modelName: 'PromotionalGiftLog',
tableName: 'promotional_gift',
schema: 'falukant_log',
timestamps: true,
underscored: true});
export default PromotionalGiftLog;