// falukant/data/occupied_political_office.js
import { Model, DataTypes } from 'sequelize';
import { sequelize } from '../../../utils/sequelize.js';

class OccupiedPoliticalOffice extends Model {}

OccupiedPoliticalOffice.init({
  id: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    autoIncrement: true},
  politicalOfficeId: {
    type: DataTypes.INTEGER,
    allowNull: false},
  characterId: {
    type: DataTypes.INTEGER,
    allowNull: false}}, {
  sequelize,
  modelName: 'OccupiedPoliticalOffice',
  tableName: 'occupied_political_office',
  schema: 'falukant_data',
  timestamps: true,
  underscored: true});

export default OccupiedPoliticalOffice;
