Add RecordState handling for prospects and support soft deletion
Introduced the RecordState property to manage the state of prospects, enabling soft deletion and restoration. Updated related database migrations, UI interactions, and filtering logic to accommodate this addition. Also included automatic database migration at runtime to ensure schema compatibility.
This commit is contained in:
@@ -17,7 +17,7 @@ namespace FoodsharingSiegen.Contracts.Entity
|
||||
/// The save profile audit type
|
||||
/// </summary>
|
||||
SaveProfile = 10,
|
||||
|
||||
|
||||
|
||||
#region Usermanagement
|
||||
|
||||
@@ -93,11 +93,11 @@ namespace FoodsharingSiegen.Contracts.Entity
|
||||
public enum ProspectStateFilter
|
||||
{
|
||||
All = 0,
|
||||
|
||||
|
||||
OnBoarding = 10,
|
||||
|
||||
|
||||
Verification = 20,
|
||||
|
||||
|
||||
Completed = 30
|
||||
}
|
||||
|
||||
@@ -127,6 +127,16 @@ namespace FoodsharingSiegen.Contracts.Entity
|
||||
Ambassador = 400
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents the state of a record within the system.
|
||||
/// </summary>
|
||||
public enum RecordState
|
||||
{
|
||||
Default = 10,
|
||||
|
||||
Deleted = 20
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The fs network type enum
|
||||
/// </summary>
|
||||
@@ -202,12 +212,12 @@ namespace FoodsharingSiegen.Contracts.Entity
|
||||
/// The complete interaction type
|
||||
/// </summary>
|
||||
Complete = 70,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The StepInBriefing interaction type
|
||||
/// </summary>
|
||||
StepInBriefing = 80,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The StepInBriefing interaction type
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user