110 lines
3.8 KiB
C#
110 lines
3.8 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using BudgetApp.Storage;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace BudgetApp.Storage.Migrations
|
|
{
|
|
[DbContext(typeof(BudgetContext))]
|
|
partial class BudgetContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.10")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("BudgetApp.Storage.Transaction", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<decimal>("Amount")
|
|
.HasColumnType("decimal(65,30)");
|
|
|
|
b.Property<decimal>("Balance")
|
|
.HasColumnType("decimal(65,30)");
|
|
|
|
b.Property<string>("Category")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<DateOnly>("Date")
|
|
.HasColumnType("date");
|
|
|
|
b.Property<DateTime?>("Deleted")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Note")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("OperationDescription")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("TransactionId")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<DateTime>("Updated")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Transactions");
|
|
});
|
|
|
|
modelBuilder.Entity("BudgetApp.Storage.UpdateStatus", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("Created")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<DateTime?>("Deleted")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("Updated")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("UpdateStatus", t =>
|
|
{
|
|
t.HasCheckConstraint("CK_UpdateStatus_SingletonId", "`Id` = 1");
|
|
});
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = 1,
|
|
Created = new DateTime(2026, 1, 1, 0, 0, 0, DateTimeKind.Utc),
|
|
Deleted = (DateTime?)null,
|
|
State = 1,
|
|
Updated = new DateTime(2026, 1, 1, 0, 0, 0, DateTimeKind.Utc)
|
|
});
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|