Updated models

This commit is contained in:
2024-08-13 17:51:48 +03:00
parent 5db1d1b1c5
commit 5475e587be
7 changed files with 45 additions and 7 deletions

View File

@@ -38,6 +38,9 @@ namespace Domains.ApplicantDomain
/// Full name of the <see cref="Applicant"/>'s mother /// Full name of the <see cref="Applicant"/>'s mother
public Name MotherName { get; set; } = null!; public Name MotherName { get; set; } = null!;
/// Position of <see cref="Applicant"/>
public string JobTitle { get; set; }
/// Place of <see cref="Applicant"/>'s work /// Place of <see cref="Applicant"/>'s work
public PlaceOfWork PlaceOfWork { get; set; } = null!; public PlaceOfWork PlaceOfWork { get; set; } = null!;

View File

@@ -1,16 +1,14 @@
namespace Domains.ApplicantDomain namespace Domains.ApplicantDomain
{ {
/// Model of passport /// Model of passport
public class Passport : IEntity /// <remarks>Owned</remarks>
public class Passport
{ {
/// Unique identifier of <see cref="Passport"/>
public Guid Id { get; set; } = Guid.NewGuid();
/// Number of <see cref="Passport"/> /// Number of <see cref="Passport"/>
public string Number { get; set; } public string Number { get; set; } = null!;
/// Issuing authority of <see cref="Passport"/> /// Issuing authority of <see cref="Passport"/>
public string Issuer { get; set; } public string Issuer { get; set; } = null!;
/// Date of issue /// Date of issue
public DateOnly IssueDate { get; set; } public DateOnly IssueDate { get; set; }

View File

@@ -3,7 +3,7 @@
/// Model of a city /// Model of a city
public class City : IEntity public class City : IEntity
{ {
/// Unique identifier of the city /// Unique identifier of the <see cref="City"/>
public Guid Id { get; private set; } = Guid.NewGuid(); public Guid Id { get; private set; } = Guid.NewGuid();
/// Name of the city /// Name of the city

View File

@@ -3,6 +3,9 @@
/// Model of a country /// Model of a country
public class Country : IEntity public class Country : IEntity
{ {
/// Unique identifier of the <see cref="Country"/>
public Guid Id { get; private set; } = Guid.NewGuid();
/// Name of the country /// Name of the country
public string Name { get; set; } = null!; public string Name { get; set; } = null!;

View File

@@ -0,0 +1,10 @@
namespace Domains.VisaApplicationDomain
{
/// Requested number of entries
public enum RequestedNumberOfEntries
{
Many,
One,
Two
}
}

View File

@@ -29,5 +29,20 @@ namespace Domains.VisaApplicationDomain
public PermissionToDestCountry? PermissionToDestCountry { get; set; } public PermissionToDestCountry? PermissionToDestCountry { get; set; }
public List<PastVisit> PastVisits { get; set; } = null!; public List<PastVisit> PastVisits { get; set; } = null!;
/// <see cref="Domains.VisaApplicationDomain.VisaCategory"/>
public VisaCategory VisaCategory { get; set; }
/// Is for group
public bool ForGroup { get; set; }
/// <see cref="Domains.VisaApplicationDomain.RequestedNumberOfEntries"/>
public RequestedNumberOfEntries RequestedNumberOfEntries { get; set; }
/// When application was created
public DateOnly RequestDate { get; set; }
/// Valid days requested
public int ValidDaysRequested { get; set; }
} }
} }

View File

@@ -0,0 +1,9 @@
namespace Domains.VisaApplicationDomain
{
/// Category of visa
public enum VisaCategory
{
Transit,
ShortDated
}
}