init
This commit is contained in:
35
SecureBank.Database/AccountLoginRequest.cs
Normal file
35
SecureBank.Database/AccountLoginRequest.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SecureBank.Database
|
||||
{
|
||||
public class AccountLoginRequest
|
||||
{
|
||||
#region PROPERTIES
|
||||
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[ForeignKey(nameof(AccountPassword))]
|
||||
public long AccountPasswordId { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime ValidTo { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region NAVIGATION
|
||||
|
||||
public AccountPassword AccountPassword { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user