WIP
This commit is contained in:
1 parent
38067df8c3
commit
492d86db9e
30 files changed
+2473
-40
No files matched your search
@@ -127,6 +127,9 @@ namespace BudgetApp.Migrations
|
||||
.HasMaxLength(10)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsDefault")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
@@ -143,6 +146,47 @@ namespace BudgetApp.Migrations
|
||||
b.ToTable("Categories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BudgetApp.Data.Salary", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("AccountId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<decimal>("Amount")
|
||||
.HasColumnType("decimal(18,2)");
|
||||
|
||||
b.Property<int?>("CategoryId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("RecurrenceType")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<DateTime>("StartDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("UserId")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("AccountId");
|
||||
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("Salaries");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BudgetApp.Data.Transaction", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -166,6 +210,9 @@ namespace BudgetApp.Migrations
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsPaid")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("ParentTransactionId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
@@ -175,6 +222,9 @@ namespace BudgetApp.Migrations
|
||||
b.Property<int>("RecurrenceType")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("SalaryId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
@@ -186,6 +236,8 @@ namespace BudgetApp.Migrations
|
||||
|
||||
b.HasIndex("ParentTransactionId");
|
||||
|
||||
b.HasIndex("SalaryId");
|
||||
|
||||
b.ToTable("Transactions");
|
||||
});
|
||||
|
||||
@@ -339,6 +391,31 @@ namespace BudgetApp.Migrations
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BudgetApp.Data.Salary", b =>
|
||||
{
|
||||
b.HasOne("BudgetApp.Data.Account", "Account")
|
||||
.WithMany()
|
||||
.HasForeignKey("AccountId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("BudgetApp.Data.Category", "Category")
|
||||
.WithMany()
|
||||
.HasForeignKey("CategoryId");
|
||||
|
||||
b.HasOne("BudgetApp.Data.ApplicationUser", "User")
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Account");
|
||||
|
||||
b.Navigation("Category");
|
||||
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("BudgetApp.Data.Transaction", b =>
|
||||
{
|
||||
b.HasOne("BudgetApp.Data.Account", "Account")
|
||||
@@ -357,11 +434,18 @@ namespace BudgetApp.Migrations
|
||||
.HasForeignKey("ParentTransactionId")
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
b.HasOne("BudgetApp.Data.Salary", "Salary")
|
||||
.WithMany()
|
||||
.HasForeignKey("SalaryId")
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
b.Navigation("Account");
|
||||
|
||||
b.Navigation("Category");
|
||||
|
||||
b.Navigation("ParentTransaction");
|
||||
|
||||
b.Navigation("Salary");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
||||
|
||||
Reference in new issue
Block a user