Files
2024-01-23 15:41:59 +01:00

84 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SecureBank.Database
{
public partial class Account
{
#region PROPERTIES
[Key]
public int Id { get; set; }
[Required]
[MaxLength(100)]
public string FirstName { get; set; }
[Required]
[MaxLength(100)]
public string LastName { get; set; }
[Required]
[MaxLength(300)]
public string Email { get; set; }
[Required]
[MaxLength(20)]
public string PhoneNumber { get; set; }
[Required]
[MaxLength(500)]
public string Address { get; set; }
[Required]
[MaxLength(16)]
public byte[] PESEL { get; set; }
[Required]
[MaxLength(16)]
public byte[] IdCardNumber { get; set; }
[Required]
[MaxLength(26)]
public string IBAN { get; set; }
[Required]
[MaxLength(32)]
public byte[] CardNumber { get; set; }
[Required]
[MaxLength(16)]
public byte[] CardExpirationDate { get; set; }
[Required]
[MaxLength(16)]
public byte[] CardCVV { get; set; }
[Required]
public bool IsAdmin { get; set; } = false;
[Required]
public byte LoginFailedCount { get; set; } = 0;
[Required]
public bool TemporaryPassword { get; set; } = true;
[MaxLength(1000)]
public string? LockReason { get; set; } = null;
#endregion
#region NAVIGATION
public virtual ICollection<AccountPassword> AccountPasswords { get; set; }
#endregion
}
}