Files
yourpart3/backend/models/forum/title_history.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

29 lines
611 B
JavaScript
Executable File

import { sequelize } from '../../utils/sequelize.js';
import { DataTypes } from 'sequelize';
const TitleHistory = sequelize.define('title_history', {
titleId: {
type: DataTypes.INTEGER,
allowNull: false
},
oldTitle: {
type: DataTypes.STRING,
allowNull: false
},
changedBy: {
type: DataTypes.INTEGER,
allowNull: false
},
oldUpdatedAt: {
type: DataTypes.DATE,
allowNull: false
}
}, {
tableName: 'title_history',
schema: 'forum',
underscored: true,
timestamps: false
});
export default TitleHistory;