Updated models
This commit is contained in:
		| @@ -38,6 +38,9 @@ namespace Domains.ApplicantDomain | ||||
|         /// Full name of the <see cref="Applicant"/>'s mother | ||||
|         public Name MotherName { get; set; } = null!; | ||||
|  | ||||
|         /// Position of <see cref="Applicant"/> | ||||
|         public string JobTitle { get; set; } | ||||
|  | ||||
|         /// Place of <see cref="Applicant"/>'s work | ||||
|         public PlaceOfWork PlaceOfWork { get; set; } = null!; | ||||
|  | ||||
|   | ||||
| @@ -1,16 +1,14 @@ | ||||
| namespace Domains.ApplicantDomain | ||||
| { | ||||
|     /// 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"/> | ||||
|         public string Number { get; set; } | ||||
|         public string Number { get; set; } = null!; | ||||
|  | ||||
|         /// Issuing authority of <see cref="Passport"/> | ||||
|         public string Issuer { get; set; } | ||||
|         public string Issuer { get; set; } = null!; | ||||
|  | ||||
|         /// Date of issue | ||||
|         public DateOnly IssueDate { get; set; } | ||||
|   | ||||
| @@ -3,7 +3,7 @@ | ||||
|     /// Model of a city | ||||
|     public class City : IEntity | ||||
|     { | ||||
|         /// Unique identifier of the city | ||||
|         /// Unique identifier of the <see cref="City"/> | ||||
|         public Guid Id { get; private set; } = Guid.NewGuid(); | ||||
|  | ||||
|         /// Name of the city | ||||
|   | ||||
| @@ -3,6 +3,9 @@ | ||||
|     /// Model of a country | ||||
|     public class Country : IEntity | ||||
|     { | ||||
|         /// Unique identifier of the <see cref="Country"/> | ||||
|         public Guid Id { get; private set; } = Guid.NewGuid(); | ||||
|  | ||||
|         /// Name of the country | ||||
|         public string Name { get; set; } = null!; | ||||
|  | ||||
|   | ||||
| @@ -0,0 +1,10 @@ | ||||
| namespace Domains.VisaApplicationDomain | ||||
| { | ||||
|     /// Requested number of entries | ||||
|     public enum RequestedNumberOfEntries | ||||
|     { | ||||
|         Many, | ||||
|         One, | ||||
|         Two | ||||
|     } | ||||
| } | ||||
| @@ -29,5 +29,20 @@ namespace Domains.VisaApplicationDomain | ||||
|         public PermissionToDestCountry? PermissionToDestCountry { get; set; } | ||||
|  | ||||
|         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; } | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -0,0 +1,9 @@ | ||||
| namespace Domains.VisaApplicationDomain | ||||
| { | ||||
|     /// Category of visa | ||||
|     public enum VisaCategory | ||||
|     { | ||||
|         Transit, | ||||
|         ShortDated | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user