Add store credit and KYC data model
This commit is contained in:
@@ -2,6 +2,8 @@ namespace Distribution.Models
|
||||
{
|
||||
public enum LocationType { Warehouse, Vehicle }
|
||||
|
||||
public enum KycStatus { Pending, Verified, Rejected }
|
||||
|
||||
public enum MovementType
|
||||
{
|
||||
Sale,
|
||||
|
||||
@@ -11,6 +11,10 @@ namespace Distribution.Models
|
||||
public decimal Longitude { get; set; } = 0;
|
||||
public decimal OneTimeAmount { get; set; } = 0;
|
||||
public decimal CreditAmount { get; set; } = 0;
|
||||
public decimal CreditLimit { get; set; } = 0;
|
||||
public decimal OutstandingBalance { get; set; } = 0;
|
||||
public String? Segment { get; set; } //Gold ,silver,key Account,high risk
|
||||
public KycStatus KycStatus { get; set; } = KycStatus.Pending;
|
||||
|
||||
public Guid FK_RouteId { get; set; }
|
||||
[ForeignKey("FK_RouteId")]
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Distribution.Models
|
||||
{
|
||||
public class StoreKycDocument : Template
|
||||
{
|
||||
public Guid FK_StoreId { get; set; }
|
||||
[ForeignKey("FK_StoreId")]
|
||||
public Store Store { get; set; }
|
||||
public String DocumentType { get; set; }
|
||||
public String FileReference { get; set; }
|
||||
public DateTime UploadedAt { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user