refactor: rename UserWalletChangeLog→UserWalletHistory, add History interceptor & migration
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 9m11s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 9m11s
- Rename UserWalletChangeLog to UserWalletHistory across 54+ files (entities, configs, DTOs, commands, queries, protos, services) - Rename 34 files and 11 directories accordingly - Rename proto file userwalletchangelog.proto → userwallethistory.proto - Add IHasHistory<T> generic interface for history auto-tracking - Implement IHasHistory<PackageHistory> on Package entity - Add HistoryTrackingSaveChangesInterceptor (reflection-based, auto-fills Old* values from OriginalValues) - Wire interceptor in DI and ApplicationDbContext - Add EF migration Q27_HistoryTables_And_RenameWalletHistory: * RenameTable UserWalletChangeLogs → UserWalletHistories (preserves data) * Rename PK, FK constraints and indexes via sp_rename * CreateTable ClubMembershipCycleHistories + PackageHistories
This commit is contained in:
-8
@@ -1,8 +0,0 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewUserWalletChangeLogEvent : BaseEvent
|
||||
{
|
||||
public CreateNewUserWalletChangeLogEvent(UserWalletChangeLog item)
|
||||
{
|
||||
}
|
||||
public UserWalletChangeLog Item { get; }
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteUserWalletChangeLogEvent : BaseEvent
|
||||
{
|
||||
public DeleteUserWalletChangeLogEvent(UserWalletChangeLog item)
|
||||
{
|
||||
}
|
||||
public UserWalletChangeLog Item { get; }
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateUserWalletChangeLogEvent : BaseEvent
|
||||
{
|
||||
public UpdateUserWalletChangeLogEvent(UserWalletChangeLog item)
|
||||
{
|
||||
}
|
||||
public UserWalletChangeLog Item { get; }
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class CreateNewUserWalletHistoryEvent : BaseEvent
|
||||
{
|
||||
public CreateNewUserWalletHistoryEvent(UserWalletHistory item)
|
||||
{
|
||||
}
|
||||
public UserWalletHistory Item { get; }
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class DeleteUserWalletHistoryEvent : BaseEvent
|
||||
{
|
||||
public DeleteUserWalletHistoryEvent(UserWalletHistory item)
|
||||
{
|
||||
}
|
||||
public UserWalletHistory Item { get; }
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
namespace CMSMicroservice.Domain.Events;
|
||||
public class UpdateUserWalletHistoryEvent : BaseEvent
|
||||
{
|
||||
public UpdateUserWalletHistoryEvent(UserWalletHistory item)
|
||||
{
|
||||
}
|
||||
public UserWalletHistory Item { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user