Files
yourpart3/backend/models/falukant/log/political_office_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

31 lines
791 B
JavaScript
Executable File

import { Model, DataTypes } from 'sequelize';
import { sequelize } from '../../../utils/sequelize.js';
class PoliticalOfficeHistory extends Model { }
PoliticalOfficeHistory.init(
{
characterId: {
type: DataTypes.INTEGER,
allowNull: false},
officeTypeId: {
type: DataTypes.INTEGER,
allowNull: false},
startDate: {
type: DataTypes.DATE,
allowNull: false},
endDate: {
type: DataTypes.DATE,
allowNull: false}
},
{
sequelize,
modelName: 'PoliticalOfficeHistory',
tableName: 'political_office_history',
schema: 'falukant_log',
timestamps: true,
underscored: true}
);
export default PoliticalOfficeHistory;