import { Model, DataTypes } from 'sequelize'; import { sequelize } from '../../../utils/sequelize.js'; class ChurchOfficeRequirement extends Model {} ChurchOfficeRequirement.init({ id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true }, officeTypeId: { type: DataTypes.INTEGER, allowNull: false }, prerequisiteOfficeTypeId: { type: DataTypes.INTEGER, allowNull: true, comment: 'Erforderliche niedrigere Position in der Hierarchie' }, minTitleLevel: { type: DataTypes.INTEGER, allowNull: true, comment: 'Mindest-Titel-Level (optional)' } }, { sequelize, modelName: 'ChurchOfficeRequirement', tableName: 'church_office_requirement', schema: 'falukant_predefine', timestamps: false, underscored: true }); export default ChurchOfficeRequirement;