Spaces:
Sleeping
Sleeping
Download ApplicationDbContextModelSnapshot.cs from Ahmedtiger7/quick: direct link, hf CLI and curl.
- Browser
- Download file 14 kB
-
https://huggingface.co/spaces/Ahmedtiger7/quick/resolve/refs%2Fpr%2F2/ApplicationDbContextModelSnapshot.cs
- Command line
-
hf download hf://spaces/Ahmedtiger7/quick@refs/pr/2/ApplicationDbContextModelSnapshot.cs
-
curl -L -o ApplicationDbContextModelSnapshot.cs https://huggingface.co/spaces/Ahmedtiger7/quick/resolve/refs%2Fpr%2F2/ApplicationDbContextModelSnapshot.cs
14 kB
| // <auto-generated /> | |
| using System; | |
| using Microsoft.EntityFrameworkCore; | |
| using Microsoft.EntityFrameworkCore.Infrastructure; | |
| using Microsoft.EntityFrameworkCore.Metadata; | |
| using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | |
| using QuickInvoiceSaaS.Data; | |
| namespace quickInvoiceSaaS.Migrations | |
| { | |
| [] | |
| partial class ApplicationDbContextModelSnapshot : ModelSnapshot | |
| { | |
| protected override void BuildModel(ModelBuilder modelBuilder) | |
| { | |
| modelBuilder | |
| .HasAnnotation("ProductVersion", "9.0.0") | |
| .HasAnnotation("Relational:MaxIdentifierLength", 128); | |
| SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => | |
| { | |
| b.Property<string>("Id") | |
| .HasColumnType("nvarchar(450)"); | |
| b.Property<string>("ConcurrencyStamp") | |
| .IsConcurrencyToken() | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("Name") | |
| .HasMaxLength(256) | |
| .HasColumnType("nvarchar(256)"); | |
| b.Property<string>("NormalizedName") | |
| .HasMaxLength(256) | |
| .HasColumnType("nvarchar(256)"); | |
| b.HasKey("Id"); | |
| b.HasIndex("NormalizedName") | |
| .IsUnique() | |
| .HasDatabaseName("RoleNameIndex") | |
| .HasFilter("[NormalizedName] IS NOT NULL"); | |
| b.ToTable("AspNetRoles", (string)null); | |
| }); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => | |
| { | |
| b.Property<int>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("int"); | |
| SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); | |
| b.Property<string>("ClaimType") | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("ClaimValue") | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("RoleId") | |
| .IsRequired() | |
| .HasColumnType("nvarchar(450)"); | |
| b.HasKey("Id"); | |
| b.HasIndex("RoleId"); | |
| b.ToTable("AspNetRoleClaims", (string)null); | |
| }); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b => | |
| { | |
| b.Property<int>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("int"); | |
| SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); | |
| b.Property<string>("ClaimType") | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("ClaimValue") | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("UserId") | |
| .IsRequired() | |
| .HasColumnType("nvarchar(450)"); | |
| b.HasKey("Id"); | |
| b.HasIndex("UserId"); | |
| b.ToTable("AspNetUserClaims", (string)null); | |
| }); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => | |
| { | |
| b.Property<string>("LoginProvider") | |
| .HasColumnType("nvarchar(450)"); | |
| b.Property<string>("ProviderKey") | |
| .HasColumnType("nvarchar(450)"); | |
| b.Property<string>("ProviderDisplayName") | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("UserId") | |
| .IsRequired() | |
| .HasColumnType("nvarchar(450)"); | |
| b.HasKey("LoginProvider", "ProviderKey"); | |
| b.HasIndex("UserId"); | |
| b.ToTable("AspNetUserLogins", (string)null); | |
| }); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b => | |
| { | |
| b.Property<string>("UserId") | |
| .HasColumnType("nvarchar(450)"); | |
| b.Property<string>("RoleId") | |
| .HasColumnType("nvarchar(450)"); | |
| b.HasKey("UserId", "RoleId"); | |
| b.HasIndex("RoleId"); | |
| b.ToTable("AspNetUserRoles", (string)null); | |
| }); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b => | |
| { | |
| b.Property<string>("UserId") | |
| .HasColumnType("nvarchar(450)"); | |
| b.Property<string>("LoginProvider") | |
| .HasColumnType("nvarchar(450)"); | |
| b.Property<string>("Name") | |
| .HasColumnType("nvarchar(450)"); | |
| b.Property<string>("Value") | |
| .HasColumnType("nvarchar(max)"); | |
| b.HasKey("UserId", "LoginProvider", "Name"); | |
| b.ToTable("AspNetUserTokens", (string)null); | |
| }); | |
| modelBuilder.Entity("QuickInvoiceSaaS.Models.ApplicationUser", b => | |
| { | |
| b.Property<string>("Id") | |
| .HasColumnType("nvarchar(450)"); | |
| b.Property<int>("AccessFailedCount") | |
| .HasColumnType("int"); | |
| b.Property<string>("ConcurrencyStamp") | |
| .IsConcurrencyToken() | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("Email") | |
| .HasMaxLength(256) | |
| .HasColumnType("nvarchar(256)"); | |
| b.Property<bool>("EmailConfirmed") | |
| .HasColumnType("bit"); | |
| b.Property<bool>("LockoutEnabled") | |
| .HasColumnType("bit"); | |
| b.Property<DateTimeOffset?>("LockoutEnd") | |
| .HasColumnType("datetimeoffset"); | |
| b.Property<string>("NormalizedEmail") | |
| .HasMaxLength(256) | |
| .HasColumnType("nvarchar(256)"); | |
| b.Property<string>("NormalizedUserName") | |
| .HasMaxLength(256) | |
| .HasColumnType("nvarchar(256)"); | |
| b.Property<string>("PasswordHash") | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("PhoneNumber") | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<bool>("PhoneNumberConfirmed") | |
| .HasColumnType("bit"); | |
| b.Property<string>("SecurityStamp") | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("SubscriptionPlan") | |
| .IsRequired() | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("TenantId") | |
| .HasColumnType("nvarchar(max)") | |
| .HasColumnName("TenantId"); | |
| b.Property<bool>("TwoFactorEnabled") | |
| .HasColumnType("bit"); | |
| b.Property<string>("UserName") | |
| .HasMaxLength(256) | |
| .HasColumnType("nvarchar(256)"); | |
| b.HasKey("Id"); | |
| b.HasIndex("NormalizedEmail") | |
| .HasDatabaseName("EmailIndex"); | |
| b.HasIndex("NormalizedUserName") | |
| .IsUnique() | |
| .HasDatabaseName("UserNameIndex") | |
| .HasFilter("[NormalizedUserName] IS NOT NULL"); | |
| b.ToTable("AspNetUsers", (string)null); | |
| }); | |
| modelBuilder.Entity("QuickInvoiceSaaS.Models.Invoice", b => | |
| { | |
| b.Property<int>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("int"); | |
| SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); | |
| b.Property<string>("ClientEmail") | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("ClientName") | |
| .IsRequired() | |
| .HasMaxLength(150) | |
| .HasColumnType("nvarchar(150)"); | |
| b.Property<string>("InvoiceNumber") | |
| .IsRequired() | |
| .HasMaxLength(50) | |
| .HasColumnType("nvarchar(50)"); | |
| b.Property<DateTime>("IssueDate") | |
| .HasColumnType("datetime2"); | |
| b.Property<string>("Status") | |
| .IsRequired() | |
| .HasColumnType("nvarchar(max)"); | |
| b.Property<string>("TenantId") | |
| .IsRequired() | |
| .HasColumnType("nvarchar(max)") | |
| .HasColumnName("TenantId"); | |
| b.Property<decimal>("TotalAmount") | |
| .HasColumnType("decimal(18,2)"); | |
| b.HasKey("Id"); | |
| b.ToTable("Invoices", (string)null); | |
| }); | |
| modelBuilder.Entity("QuickInvoiceSaaS.Models.InvoiceItem", b => | |
| { | |
| b.Property<int>("Id") | |
| .ValueGeneratedOnAdd() | |
| .HasColumnType("int"); | |
| SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); | |
| b.Property<int>("InvoiceId") | |
| .HasColumnType("int"); | |
| b.Property<string>("ProductName") | |
| .IsRequired() | |
| .HasMaxLength(250) | |
| .HasColumnType("nvarchar(250)"); | |
| b.Property<int>("Quantity") | |
| .HasColumnType("int"); | |
| b.Property<decimal>("UnitPrice") | |
| .HasColumnType("decimal(18,2)"); | |
| b.HasKey("Id"); | |
| b.HasIndex("InvoiceId"); | |
| b.ToTable("InvoiceItem"); | |
| }); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => | |
| { | |
| b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) | |
| .WithMany() | |
| .HasForeignKey("RoleId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| }); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b => | |
| { | |
| b.HasOne("QuickInvoiceSaaS.Models.ApplicationUser", null) | |
| .WithMany() | |
| .HasForeignKey("UserId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| }); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => | |
| { | |
| b.HasOne("QuickInvoiceSaaS.Models.ApplicationUser", null) | |
| .WithMany() | |
| .HasForeignKey("UserId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| }); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b => | |
| { | |
| b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) | |
| .WithMany() | |
| .HasForeignKey("RoleId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| b.HasOne("QuickInvoiceSaaS.Models.ApplicationUser", null) | |
| .WithMany() | |
| .HasForeignKey("UserId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| }); | |
| modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b => | |
| { | |
| b.HasOne("QuickInvoiceSaaS.Models.ApplicationUser", null) | |
| .WithMany() | |
| .HasForeignKey("UserId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| }); | |
| modelBuilder.Entity("QuickInvoiceSaaS.Models.InvoiceItem", b => | |
| { | |
| b.HasOne("QuickInvoiceSaaS.Models.Invoice", "Invoice") | |
| .WithMany("Items") | |
| .HasForeignKey("InvoiceId") | |
| .OnDelete(DeleteBehavior.Cascade) | |
| .IsRequired(); | |
| b.Navigation("Invoice"); | |
| }); | |
| modelBuilder.Entity("QuickInvoiceSaaS.Models.Invoice", b => | |
| { | |
| b.Navigation("Items"); | |
| }); | |
| } | |
| } | |
| } | |