feat(DiaryDateActivity): enhance group activity management with duration and order features
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 43s

- Added `duration`, `durationText`, and `orderId` fields to the GroupActivity model to support detailed activity tracking.
- Updated `addGroupActivity` and `updateGroupActivity` methods in the DiaryDateActivityService to handle new fields, improving activity management capabilities.
- Enhanced the DiaryView component to allow users to input and display duration and duration text for group activities, improving user experience and data clarity.
This commit is contained in:
Torsten Schulz (local)
2026-05-08 11:28:22 +02:00
parent 25c3b90972
commit 940f77e29b
5 changed files with 106 additions and 12 deletions

View File

@@ -31,6 +31,19 @@ const GroupActivity = sequelize.define('GroupActivity', {
type: DataTypes.INTEGER,
allowNull: true,
},
duration: {
type: DataTypes.INTEGER,
allowNull: true
},
durationText: {
type: DataTypes.STRING,
allowNull: true
},
orderId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: 1
},
}, {
tableName: 'group_activity',
underscored: true,