3 Commits

Author SHA1 Message Date
18fc3fb3f2 Add default value for PaymentType in Walk entity
This commit introduces a default value of `1` for the `PaymentType` property in the `Walk` entity. The `SqlDbContextModelSnapshot.cs` is updated to reflect this change, and the `SqlDbContext.cs` is configured to set the default value to `WalkPaymentType.MangoPay`. A new migration class `Walk_PaymentType_DefaultSet` is created to apply these changes to the database schema, ensuring that new records in the `Walks` table will have a default `PaymentType` of `1`.
2025-09-15 15:35:37 +02:00
ada8b7a200 Add payment types for walks and update related models
This commit introduces new payment types, including "MangoPay" and "Cash", to the localization resource files for both German and English. A new enum `WalkPaymentType` is created to represent these payment types, and the `Walk` class is updated to include a required `PaymentType` property of this enum type.

The database context is modified to add a `PaymentType` column to the `Walks` table, accompanied by a migration to implement this change and set a default value. The `WalkController` is updated to support filtering by the new `PaymentType` field, and the mapping profile is enhanced to include mappings for `WalkPaymentType` and its view model counterpart.

View models are also updated to incorporate the new `PaymentType` and its display name. Front-end TypeScript files are adjusted to utilize the new `WalkPaymentType` enum and related properties, while the UI is enhanced to display the payment type in the details view of walks. Version numbers in various configuration files are incremented to reflect these changes.
2025-06-30 11:06:30 +02:00
4eee8ebdf9 Projektdateien hinzufügen. 2025-04-28 09:18:17 +02:00