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

class PartyType extends Model {}

PartyType.init(
  {
    tr: {
      type: DataTypes.STRING,
      allowNull: false},
    cost: {
      type: DataTypes.INTEGER,
      allowNull: false},
    forMarriage: {
      type: DataTypes.BOOLEAN,
      allowNull: false,
      defaultValue: false},
    reputationGrowth: {
      type: DataTypes.INTEGER,
      allowNull: false}
  },
  {
    sequelize,
    modelName: 'PartyType',
    tableName: 'party',
    schema: 'falukant_type',
    timestamps: false,
    underscored: true}
);

export default PartyType;
