Made ReentryPermit an owned type

This commit is contained in:
2024-08-13 21:59:48 +03:00
parent 4f0d5bfaaa
commit 987cf26f7b

View File

@@ -1,10 +1,11 @@
namespace Domains.VisaApplicationDomain namespace Domains.VisaApplicationDomain
{ {
/// Permission to enter a country the issuer wants to come from /// Permission to enter a country the issuer wants to come from
public class ReentryPermit : IEntity /// <remarks>Owned</remarks>
public class ReentryPermit
{ {
/// Unique identifier of <see cref="PastVisa"/> /// Number of <see cref="ReentryPermit"/>
public Guid Id { get; private set; } = Guid.NewGuid(); public string Number { get; set; } = null!;
/// Date when <see cref="ReentryPermit"/> expires /// Date when <see cref="ReentryPermit"/> expires
public DateOnly ExpirationDate { get; set; } public DateOnly ExpirationDate { get; set; }