Füge Unterstützung für liturgische Tage im Worship Management hinzu: Implementiere Multiselect für die Auswahl von Tag-Namen und lade die verfügbaren liturgischen Tage. Aktualisiere das Formular zur Anzeige und Auswahl des liturgischen Tages basierend auf dem Datum.
This commit is contained in:
24
models/LiturgicalDay.js
Normal file
24
models/LiturgicalDay.js
Normal file
@@ -0,0 +1,24 @@
|
||||
module.exports = (sequelize, DataTypes) => {
|
||||
const LiturgicalDay = sequelize.define('LiturgicalDay', {
|
||||
id: {
|
||||
type: DataTypes.INTEGER,
|
||||
primaryKey: true,
|
||||
autoIncrement: true
|
||||
},
|
||||
date: {
|
||||
type: DataTypes.DATEONLY,
|
||||
allowNull: false,
|
||||
unique: true
|
||||
},
|
||||
dayName: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false
|
||||
}
|
||||
}, {
|
||||
tableName: 'liturgical_days',
|
||||
timestamps: false
|
||||
});
|
||||
|
||||
return LiturgicalDay;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user