Add worship leaders functionality: Introduce worship leaders management by adding routes, controllers, and CSV import capabilities. Update worship management UI to support .csv file uploads for worship services, enhancing data handling and user experience.
All checks were successful
Deploy miriamgemeinde / deploy (push) Successful in 7s

This commit is contained in:
Torsten Schulz (local)
2026-04-29 18:04:05 +02:00
parent a2b1ebdb97
commit 7f01c004c8
11 changed files with 635 additions and 8 deletions

32
models/WorshipLeader.js Normal file
View File

@@ -0,0 +1,32 @@
const { DataTypes } = require('sequelize');
module.exports = (sequelize) => {
const WorshipLeader = sequelize.define('WorshipLeader', {
code: {
type: DataTypes.STRING(32),
allowNull: false,
unique: true,
},
name: {
type: DataTypes.STRING(255),
allowNull: false,
},
aliases: {
// Comma-separated list of alternative codes (kept simple to avoid join tables).
type: DataTypes.STRING(512),
allowNull: true,
defaultValue: '',
},
active: {
type: DataTypes.BOOLEAN,
allowNull: false,
defaultValue: true,
},
}, {
tableName: 'worship_leaders',
timestamps: true,
});
return WorshipLeader;
};