Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jSylvestre
Copy link
Member

No description provided.

jSylvestre and others added 11 commits September 15, 2025 10:39
Introduces a type property to invoices, allowing differentiation between credit card and recharge invoices.
Adds an allowed invoice type setting to teams, controlling which types of invoices are permitted.
Sets default invoice type to CreditCard.
Renames InvoiceTypes class in the Team domain object to AllowedInvoiceTypes to more accurately reflect its usage.

Updates the Invoice class to reference the InvoiceTypes constants via the AllowedInvoiceTypes class.
Adds a "Type" column to the Invoices table and an "AllowedInvoiceType" column to the Teams table.

This allows for better tracking and filtering of invoices based on their type.
The default invoice type is set to 'CreditCard'.
Also adds an index on the Invoices table for the Type column.
Adds the '__EFMigrationsHistory' table to the database project.

This table is used by Entity Framework Core to track applied migrations.
Including it in the project allows EF Core to manage database schema updates.
Adds validation to invoice types to ensure data integrity.

Shortens the "CreditCard" invoice type to "CC" for consistency
and to adhere to the length constraint.
Ensures that newly created teams default to only allowing credit card invoice types. This improves consistency and simplifies onboarding.

Sets the default value for invoice types to CreditCard and configures max length.
Adds new fields to the Invoice and Team database tests to
include validation attributes. This ensures that the tests
accurately reflect the database schema and its constraints.
@jSylvestre jSylvestre marked this pull request as ready for review September 26, 2025 14:12
@jSylvestre jSylvestre merged commit 62d65ed into JCS/Recharge2025 Sep 26, 2025
3 checks passed
@jSylvestre jSylvestre deleted the JCS/RechargesDbChanges20250915 branch September 26, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants