- Added endpoints for church career functionalities including overview, available positions, application submission, and application decision-making. - Enhanced the FalukantController to handle church-related requests. - Updated associations and models to support church office types and requirements. - Integrated new routes in the falukantRouter for church career operations. - Implemented service methods for managing church applications and checking church career status. - Updated frontend components to display current positions, available positions, and manage applications with appropriate UI elements and loading states. - Localized new church-related strings in both English and German.
36 lines
833 B
JavaScript
36 lines
833 B
JavaScript
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;
|