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

class PoliticalOffice extends Model {}

PoliticalOffice.init({
  id: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    autoIncrement: true},
  officeTypeId: {
    type: DataTypes.INTEGER,
    allowNull: false},
  characterId: {
    type: DataTypes.INTEGER,
    allowNull: false},
  regionId: {
    type: DataTypes.INTEGER,
    allowNull: false}}, {
  sequelize,
  modelName: 'PoliticalOffice',
  tableName: 'political_office',
  schema: 'falukant_data',
  timestamps: true,
  underscored: true});

export default PoliticalOffice;
