import { Model, DataTypes } from 'sequelize'
import { sequelize } from '../../../utils/sequelize.js'

class PartyInvitedNobility extends Model {}

PartyInvitedNobility.init({
  partyId: {
    type: DataTypes.INTEGER,
    allowNull: false,
    field: 'party_id'
  },
  titleOfNobilityId: {
    type: DataTypes.INTEGER,
    allowNull: false,
    field: 'title_of_nobility_id'
  }
}, {
  sequelize,
  modelName: 'PartyInvitedNobility',
  tableName: 'party_invited_nobility',
  schema: 'falukant_data',
  timestamps: false,
  underscored: true
})

export default PartyInvitedNobility
