34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
namespace Gremlin_BlazorServer.Data.EntityClasses;
|
|
|
|
public class SalesRep : IMetadata {
|
|
//primary key:
|
|
public uint SalesRepId { get; set; }
|
|
|
|
//foreign keys:
|
|
public uint AccountId { get; set; }
|
|
// public uint QuoteId { get; set; }
|
|
|
|
//navigation properties:
|
|
public Account Account { get; set; } = new();
|
|
public IList<Quote> ListOfQuotes { get; set; } = new List<Quote>();
|
|
|
|
//class properties:
|
|
public string? TerritoryId { get; set; }
|
|
public string? AcademicTitle { get; set; }
|
|
public string FirstName { get; set; } = string.Empty;
|
|
public string LastName { get; set; } = string.Empty;
|
|
public byte Gender { get; set; }
|
|
public string? PhoneNumber { get; set; }
|
|
public string? MobileNumber { get; set; }
|
|
public string? EMail { get; set; }
|
|
|
|
//metadata:
|
|
public DateTime DataCreationDate { get; set; } = DateTime.Now;
|
|
public DateTime DataModificationDate { get; set; } = DateTime.Now;
|
|
public DateTime DataValidFrom { get; set; } = DateTime.Now;
|
|
public DateTime DataValidUntil { get; set; } = DateTime.MaxValue;
|
|
public string DataModificationByUser { get; set; } = "Gremlin_BlazorServer";
|
|
public uint DataVersionNumber { get; set; } = 1;
|
|
public string? DataVersionComment { get; set; }
|
|
public string DataStatus { get; set; } = "Active";
|
|
} |