This commit is contained in:
2024-01-23 15:41:59 +01:00
Unverified
parent 5d5a69ccf7
commit 3b2b4c9b7e
76 changed files with 4100 additions and 888 deletions

View File

@@ -23,6 +23,26 @@ namespace SecureBank.Database.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Address")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property<byte[]>("CardCVV")
.IsRequired()
.HasMaxLength(16)
.HasColumnType("BLOB");
b.Property<byte[]>("CardExpirationDate")
.IsRequired()
.HasMaxLength(16)
.HasColumnType("BLOB");
b.Property<byte[]>("CardNumber")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("BLOB");
b.Property<string>("Email")
.IsRequired()
.HasMaxLength(300)
@@ -33,6 +53,19 @@ namespace SecureBank.Database.Migrations
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property<string>("IBAN")
.IsRequired()
.HasMaxLength(26)
.HasColumnType("TEXT");
b.Property<byte[]>("IdCardNumber")
.IsRequired()
.HasMaxLength(16)
.HasColumnType("BLOB");
b.Property<bool>("IsAdmin")
.HasColumnType("INTEGER");
b.Property<string>("LastName")
.IsRequired()
.HasMaxLength(100)
@@ -45,6 +78,11 @@ namespace SecureBank.Database.Migrations
b.Property<byte>("LoginFailedCount")
.HasColumnType("INTEGER");
b.Property<byte[]>("PESEL")
.IsRequired()
.HasMaxLength(16)
.HasColumnType("BLOB");
b.Property<string>("PhoneNumber")
.IsRequired()
.HasMaxLength(20)
@@ -127,6 +165,55 @@ namespace SecureBank.Database.Migrations
b.ToTable("AccountPasswordIndexes");
});
modelBuilder.Entity("SecureBank.Database.Transfer", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property<decimal>("Amount")
.HasPrecision(14, 2)
.HasColumnType("TEXT");
b.Property<DateTime>("Date")
.HasColumnType("TEXT");
b.Property<string>("ReceiverAccountNumber")
.IsRequired()
.HasMaxLength(26)
.HasColumnType("TEXT");
b.Property<string>("ReceiverAddress")
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property<string>("ReceiverName")
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property<string>("SenderAccountNumber")
.IsRequired()
.HasMaxLength(26)
.HasColumnType("TEXT");
b.Property<string>("SenderAddress")
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property<string>("SenderName")
.HasMaxLength(100)
.HasColumnType("TEXT");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Transfers");
});
modelBuilder.Entity("SecureBank.Database.AccountLoginRequest", b =>
{
b.HasOne("SecureBank.Database.AccountPassword", "AccountPassword")