From 657f9a96a3f70ffb67b0b85b3e8bcd6643b8a272 Mon Sep 17 00:00:00 2001 From: Ondur Date: Wed, 14 Oct 2026 18:20:19 +0200 Subject: [PATCH] zmena databaze --- ...0261014161412_InitialIdentity.Designer.cs} | 238 ++++++++---------- .../20261014161412_InitialIdentity.cs} | 96 ++++--- .../ApplicationDbContextModelSnapshot.cs | 234 ++++++++--------- Web-Jarmark/Web-Jarmark/Program.cs | 2 +- Web-Jarmark/Web-Jarmark/Web-Jarmark.csproj | 13 +- Web-Jarmark/Web-Jarmark/appsettings.json | 2 +- Web-Jarmark/Web-Jarmark/jarmark.db | Bin 0 -> 118784 bytes Web-Jarmark/Web-Jarmark/jarmark.db-shm | Bin 0 -> 32768 bytes Web-Jarmark/Web-Jarmark/jarmark.db-wal | Bin 0 -> 65952 bytes 9 files changed, 273 insertions(+), 312 deletions(-) rename Web-Jarmark/Web-Jarmark/{Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs => Migrations/20261014161412_InitialIdentity.Designer.cs} (69%) rename Web-Jarmark/Web-Jarmark/{Data/Migrations/00000000000000_CreateIdentitySchema.cs => Migrations/20261014161412_InitialIdentity.cs} (69%) rename Web-Jarmark/Web-Jarmark/{Data => }/Migrations/ApplicationDbContextModelSnapshot.cs (70%) create mode 100644 Web-Jarmark/Web-Jarmark/jarmark.db create mode 100644 Web-Jarmark/Web-Jarmark/jarmark.db-shm create mode 100644 Web-Jarmark/Web-Jarmark/jarmark.db-wal diff --git a/Web-Jarmark/Web-Jarmark/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs b/Web-Jarmark/Web-Jarmark/Migrations/20261014161412_InitialIdentity.Designer.cs similarity index 69% rename from Web-Jarmark/Web-Jarmark/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs rename to Web-Jarmark/Web-Jarmark/Migrations/20261014161412_InitialIdentity.Designer.cs index 5486e6f..b43c61b 100644 --- a/Web-Jarmark/Web-Jarmark/Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs +++ b/Web-Jarmark/Web-Jarmark/Migrations/20261014161412_InitialIdentity.Designer.cs @@ -1,10 +1,9 @@ -// +// +using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using System; using Web_Jarmark.Data; #nullable disable @@ -12,108 +11,37 @@ using Web_Jarmark.Data; namespace Web_Jarmark.Migrations { [DbContext(typeof(ApplicationDbContext))] - [Migration("00000000000000_CreateIdentitySchema")] - partial class CreateIdentitySchema + [Migration("20261014161412_InitialIdentity")] + partial class InitialIdentity { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "10.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Web_Jarmark.Data.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("nvarchar(450)"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - b.Property("Email") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("bit"); - - b.Property("LockoutEnabled") - .HasColumnType("bit"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("PasswordHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PhoneNumber") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("bit"); - - b.Property("SecurityStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("TwoFactorEnabled") - .HasColumnType("bit"); - - b.Property("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.HasAnnotation("ProductVersion", "10.0.13"); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => { b.Property("Id") - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("Name") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("TEXT"); b.Property("NormalizedName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() - .HasDatabaseName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); + .HasDatabaseName("RoleNameIndex"); b.ToTable("AspNetRoles", (string)null); }); @@ -122,19 +50,17 @@ namespace Web_Jarmark.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + .HasColumnType("INTEGER"); b.Property("ClaimType") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("ClaimValue") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("RoleId") .IsRequired() - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.HasKey("Id"); @@ -147,19 +73,17 @@ namespace Web_Jarmark.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + .HasColumnType("INTEGER"); b.Property("ClaimType") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("ClaimValue") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.HasKey("Id"); @@ -172,18 +96,18 @@ namespace Web_Jarmark.Migrations { b.Property("LoginProvider") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("TEXT"); b.Property("ProviderKey") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("TEXT"); b.Property("ProviderDisplayName") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.HasKey("LoginProvider", "ProviderKey"); @@ -196,11 +120,11 @@ namespace Web_Jarmark.Migrations { b.Property("CredentialId") .HasMaxLength(1024) - .HasColumnType("varbinary(1024)"); + .HasColumnType("BLOB"); b.Property("UserId") .IsRequired() - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.HasKey("CredentialId"); @@ -212,10 +136,10 @@ namespace Web_Jarmark.Migrations modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.Property("UserId") - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.Property("RoleId") - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.HasKey("UserId", "RoleId"); @@ -227,24 +151,89 @@ namespace Web_Jarmark.Migrations modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.Property("UserId") - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.Property("LoginProvider") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("TEXT"); b.Property("Name") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("TEXT"); b.Property("Value") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens", (string)null); }); + modelBuilder.Entity("Web_Jarmark.Data.ApplicationUser", b => + { + b.Property("Id") + .HasColumnType("TEXT"); + + b.Property("AccessFailedCount") + .HasColumnType("INTEGER"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("TEXT"); + + b.Property("Email") + .HasMaxLength(256) + .HasColumnType("TEXT"); + + b.Property("EmailConfirmed") + .HasColumnType("INTEGER"); + + b.Property("LockoutEnabled") + .HasColumnType("INTEGER"); + + b.Property("LockoutEnd") + .HasColumnType("TEXT"); + + b.Property("NormalizedEmail") + .HasMaxLength(256) + .HasColumnType("TEXT"); + + b.Property("NormalizedUserName") + .HasMaxLength(256) + .HasColumnType("TEXT"); + + b.Property("PasswordHash") + .HasColumnType("TEXT"); + + b.Property("PhoneNumber") + .HasMaxLength(256) + .HasColumnType("TEXT"); + + b.Property("PhoneNumberConfirmed") + .HasColumnType("INTEGER"); + + b.Property("SecurityStamp") + .HasColumnType("TEXT"); + + b.Property("TwoFactorEnabled") + .HasColumnType("INTEGER"); + + b.Property("UserName") + .HasMaxLength(256) + .HasColumnType("TEXT"); + + b.HasKey("Id"); + + b.HasIndex("NormalizedEmail") + .HasDatabaseName("EmailIndex"); + + b.HasIndex("NormalizedUserName") + .IsUnique() + .HasDatabaseName("UserNameIndex"); + + b.ToTable("AspNetUsers", (string)null); + }); + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) @@ -282,47 +271,38 @@ namespace Web_Jarmark.Migrations b.OwnsOne("Microsoft.AspNetCore.Identity.IdentityPasskeyData", "Data", b1 => { - b1.Property("IdentityUserPasskeyCredentialId") - .HasColumnType("varbinary(1024)"); + b1.Property("IdentityUserPasskeyCredentialId"); b1.Property("AttestationObject") - .IsRequired() - .HasColumnType("varbinary(max)"); + .IsRequired(); b1.Property("ClientDataJson") - .IsRequired() - .HasColumnType("varbinary(max)"); + .IsRequired(); - b1.Property("CreatedAt") - .HasColumnType("datetimeoffset"); + b1.Property("CreatedAt"); - b1.Property("IsBackedUp") - .HasColumnType("bit"); + b1.Property("IsBackedUp"); - b1.Property("IsBackupEligible") - .HasColumnType("bit"); + b1.Property("IsBackupEligible"); - b1.Property("IsUserVerified") - .HasColumnType("bit"); + b1.Property("IsUserVerified"); - b1.Property("Name") - .HasColumnType("nvarchar(max)"); + b1.Property("Name"); b1.Property("PublicKey") - .IsRequired() - .HasColumnType("varbinary(max)"); + .IsRequired(); - b1.Property("SignCount") - .HasColumnType("bigint"); + b1.Property("SignCount"); - b1.PrimitiveCollection("Transports") - .HasColumnType("nvarchar(max)"); + b1.PrimitiveCollection("Transports"); b1.HasKey("IdentityUserPasskeyCredentialId"); b1.ToTable("AspNetUserPasskeys"); - b1.ToJson("Data"); + b1 + .ToJson("Data") + .HasColumnType("TEXT"); b1.WithOwner() .HasForeignKey("IdentityUserPasskeyCredentialId"); diff --git a/Web-Jarmark/Web-Jarmark/Data/Migrations/00000000000000_CreateIdentitySchema.cs b/Web-Jarmark/Web-Jarmark/Migrations/20261014161412_InitialIdentity.cs similarity index 69% rename from Web-Jarmark/Web-Jarmark/Data/Migrations/00000000000000_CreateIdentitySchema.cs rename to Web-Jarmark/Web-Jarmark/Migrations/20261014161412_InitialIdentity.cs index 1b34d6c..8869abe 100644 --- a/Web-Jarmark/Web-Jarmark/Data/Migrations/00000000000000_CreateIdentitySchema.cs +++ b/Web-Jarmark/Web-Jarmark/Migrations/20261014161412_InitialIdentity.cs @@ -1,12 +1,12 @@ -using Microsoft.EntityFrameworkCore.Migrations; -using System; +using System; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Web_Jarmark.Migrations { /// - public partial class CreateIdentitySchema : Migration + public partial class InitialIdentity : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) @@ -15,10 +15,10 @@ namespace Web_Jarmark.Migrations name: "AspNetRoles", columns: table => new { - Id = table.Column(type: "nvarchar(450)", nullable: false), - Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - NormalizedName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(max)", nullable: true) + Id = table.Column(type: "TEXT", nullable: false), + Name = table.Column(type: "TEXT", maxLength: 256, nullable: true), + NormalizedName = table.Column(type: "TEXT", maxLength: 256, nullable: true), + ConcurrencyStamp = table.Column(type: "TEXT", nullable: true) }, constraints: table => { @@ -29,21 +29,21 @@ namespace Web_Jarmark.Migrations name: "AspNetUsers", columns: table => new { - Id = table.Column(type: "nvarchar(450)", nullable: false), - UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - NormalizedUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - NormalizedEmail = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - EmailConfirmed = table.Column(type: "bit", nullable: false), - PasswordHash = table.Column(type: "nvarchar(max)", nullable: true), - SecurityStamp = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(max)", nullable: true), - PhoneNumber = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - PhoneNumberConfirmed = table.Column(type: "bit", nullable: false), - TwoFactorEnabled = table.Column(type: "bit", nullable: false), - LockoutEnd = table.Column(type: "datetimeoffset", nullable: true), - LockoutEnabled = table.Column(type: "bit", nullable: false), - AccessFailedCount = table.Column(type: "int", nullable: false) + Id = table.Column(type: "TEXT", nullable: false), + UserName = table.Column(type: "TEXT", maxLength: 256, nullable: true), + NormalizedUserName = table.Column(type: "TEXT", maxLength: 256, nullable: true), + Email = table.Column(type: "TEXT", maxLength: 256, nullable: true), + NormalizedEmail = table.Column(type: "TEXT", maxLength: 256, nullable: true), + EmailConfirmed = table.Column(type: "INTEGER", nullable: false), + PasswordHash = table.Column(type: "TEXT", nullable: true), + SecurityStamp = table.Column(type: "TEXT", nullable: true), + ConcurrencyStamp = table.Column(type: "TEXT", nullable: true), + PhoneNumber = table.Column(type: "TEXT", maxLength: 256, nullable: true), + PhoneNumberConfirmed = table.Column(type: "INTEGER", nullable: false), + TwoFactorEnabled = table.Column(type: "INTEGER", nullable: false), + LockoutEnd = table.Column(type: "TEXT", nullable: true), + LockoutEnabled = table.Column(type: "INTEGER", nullable: false), + AccessFailedCount = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { @@ -54,11 +54,11 @@ namespace Web_Jarmark.Migrations name: "AspNetRoleClaims", columns: table => new { - Id = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - RoleId = table.Column(type: "nvarchar(450)", nullable: false), - ClaimType = table.Column(type: "nvarchar(max)", nullable: true), - ClaimValue = table.Column(type: "nvarchar(max)", nullable: true) + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + RoleId = table.Column(type: "TEXT", nullable: false), + ClaimType = table.Column(type: "TEXT", nullable: true), + ClaimValue = table.Column(type: "TEXT", nullable: true) }, constraints: table => { @@ -75,11 +75,11 @@ namespace Web_Jarmark.Migrations name: "AspNetUserClaims", columns: table => new { - Id = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - UserId = table.Column(type: "nvarchar(450)", nullable: false), - ClaimType = table.Column(type: "nvarchar(max)", nullable: true), - ClaimValue = table.Column(type: "nvarchar(max)", nullable: true) + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + UserId = table.Column(type: "TEXT", nullable: false), + ClaimType = table.Column(type: "TEXT", nullable: true), + ClaimValue = table.Column(type: "TEXT", nullable: true) }, constraints: table => { @@ -96,10 +96,10 @@ namespace Web_Jarmark.Migrations name: "AspNetUserLogins", columns: table => new { - LoginProvider = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - ProviderKey = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - ProviderDisplayName = table.Column(type: "nvarchar(max)", nullable: true), - UserId = table.Column(type: "nvarchar(450)", nullable: false) + LoginProvider = table.Column(type: "TEXT", maxLength: 128, nullable: false), + ProviderKey = table.Column(type: "TEXT", maxLength: 128, nullable: false), + ProviderDisplayName = table.Column(type: "TEXT", nullable: true), + UserId = table.Column(type: "TEXT", nullable: false) }, constraints: table => { @@ -116,9 +116,9 @@ namespace Web_Jarmark.Migrations name: "AspNetUserPasskeys", columns: table => new { - CredentialId = table.Column(type: "varbinary(1024)", maxLength: 1024, nullable: false), - UserId = table.Column(type: "nvarchar(450)", nullable: false), - Data = table.Column(type: "nvarchar(max)", nullable: false) + CredentialId = table.Column(type: "BLOB", maxLength: 1024, nullable: false), + UserId = table.Column(type: "TEXT", nullable: false), + Data = table.Column(type: "TEXT", nullable: false) }, constraints: table => { @@ -135,8 +135,8 @@ namespace Web_Jarmark.Migrations name: "AspNetUserRoles", columns: table => new { - UserId = table.Column(type: "nvarchar(450)", nullable: false), - RoleId = table.Column(type: "nvarchar(450)", nullable: false) + UserId = table.Column(type: "TEXT", nullable: false), + RoleId = table.Column(type: "TEXT", nullable: false) }, constraints: table => { @@ -159,10 +159,10 @@ namespace Web_Jarmark.Migrations name: "AspNetUserTokens", columns: table => new { - UserId = table.Column(type: "nvarchar(450)", nullable: false), - LoginProvider = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - Value = table.Column(type: "nvarchar(max)", nullable: true) + UserId = table.Column(type: "TEXT", nullable: false), + LoginProvider = table.Column(type: "TEXT", maxLength: 128, nullable: false), + Name = table.Column(type: "TEXT", maxLength: 128, nullable: false), + Value = table.Column(type: "TEXT", nullable: true) }, constraints: table => { @@ -184,8 +184,7 @@ namespace Web_Jarmark.Migrations name: "RoleNameIndex", table: "AspNetRoles", column: "NormalizedName", - unique: true, - filter: "[NormalizedName] IS NOT NULL"); + unique: true); migrationBuilder.CreateIndex( name: "IX_AspNetUserClaims_UserId", @@ -216,8 +215,7 @@ namespace Web_Jarmark.Migrations name: "UserNameIndex", table: "AspNetUsers", column: "NormalizedUserName", - unique: true, - filter: "[NormalizedUserName] IS NOT NULL"); + unique: true); } /// diff --git a/Web-Jarmark/Web-Jarmark/Data/Migrations/ApplicationDbContextModelSnapshot.cs b/Web-Jarmark/Web-Jarmark/Migrations/ApplicationDbContextModelSnapshot.cs similarity index 70% rename from Web-Jarmark/Web-Jarmark/Data/Migrations/ApplicationDbContextModelSnapshot.cs rename to Web-Jarmark/Web-Jarmark/Migrations/ApplicationDbContextModelSnapshot.cs index cf4ed81..2c740af 100644 --- a/Web-Jarmark/Web-Jarmark/Data/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/Web-Jarmark/Web-Jarmark/Migrations/ApplicationDbContextModelSnapshot.cs @@ -1,9 +1,8 @@ -// +// +using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using System; using Web_Jarmark.Data; #nullable disable @@ -16,101 +15,30 @@ namespace Web_Jarmark.Migrations protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "10.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Web_Jarmark.Data.ApplicationUser", b => - { - b.Property("Id") - .HasColumnType("nvarchar(450)"); - - b.Property("AccessFailedCount") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); - - b.Property("Email") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("EmailConfirmed") - .HasColumnType("bit"); - - b.Property("LockoutEnabled") - .HasColumnType("bit"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("NormalizedEmail") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedUserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("PasswordHash") - .HasColumnType("nvarchar(max)"); - - b.Property("PhoneNumber") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("PhoneNumberConfirmed") - .HasColumnType("bit"); - - b.Property("SecurityStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("TwoFactorEnabled") - .HasColumnType("bit"); - - b.Property("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.HasAnnotation("ProductVersion", "10.0.13"); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => { b.Property("Id") - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("Name") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("TEXT"); b.Property("NormalizedName") .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); + .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() - .HasDatabaseName("RoleNameIndex") - .HasFilter("[NormalizedName] IS NOT NULL"); + .HasDatabaseName("RoleNameIndex"); b.ToTable("AspNetRoles", (string)null); }); @@ -119,19 +47,17 @@ namespace Web_Jarmark.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + .HasColumnType("INTEGER"); b.Property("ClaimType") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("ClaimValue") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("RoleId") .IsRequired() - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.HasKey("Id"); @@ -144,19 +70,17 @@ namespace Web_Jarmark.Migrations { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + .HasColumnType("INTEGER"); b.Property("ClaimType") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("ClaimValue") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.HasKey("Id"); @@ -169,18 +93,18 @@ namespace Web_Jarmark.Migrations { b.Property("LoginProvider") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("TEXT"); b.Property("ProviderKey") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("TEXT"); b.Property("ProviderDisplayName") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.HasKey("LoginProvider", "ProviderKey"); @@ -193,11 +117,11 @@ namespace Web_Jarmark.Migrations { b.Property("CredentialId") .HasMaxLength(1024) - .HasColumnType("varbinary(1024)"); + .HasColumnType("BLOB"); b.Property("UserId") .IsRequired() - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.HasKey("CredentialId"); @@ -209,10 +133,10 @@ namespace Web_Jarmark.Migrations modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.Property("UserId") - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.Property("RoleId") - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.HasKey("UserId", "RoleId"); @@ -224,24 +148,89 @@ namespace Web_Jarmark.Migrations modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.Property("UserId") - .HasColumnType("nvarchar(450)"); + .HasColumnType("TEXT"); b.Property("LoginProvider") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("TEXT"); b.Property("Name") .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); + .HasColumnType("TEXT"); b.Property("Value") - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens", (string)null); }); + modelBuilder.Entity("Web_Jarmark.Data.ApplicationUser", b => + { + b.Property("Id") + .HasColumnType("TEXT"); + + b.Property("AccessFailedCount") + .HasColumnType("INTEGER"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasColumnType("TEXT"); + + b.Property("Email") + .HasMaxLength(256) + .HasColumnType("TEXT"); + + b.Property("EmailConfirmed") + .HasColumnType("INTEGER"); + + b.Property("LockoutEnabled") + .HasColumnType("INTEGER"); + + b.Property("LockoutEnd") + .HasColumnType("TEXT"); + + b.Property("NormalizedEmail") + .HasMaxLength(256) + .HasColumnType("TEXT"); + + b.Property("NormalizedUserName") + .HasMaxLength(256) + .HasColumnType("TEXT"); + + b.Property("PasswordHash") + .HasColumnType("TEXT"); + + b.Property("PhoneNumber") + .HasMaxLength(256) + .HasColumnType("TEXT"); + + b.Property("PhoneNumberConfirmed") + .HasColumnType("INTEGER"); + + b.Property("SecurityStamp") + .HasColumnType("TEXT"); + + b.Property("TwoFactorEnabled") + .HasColumnType("INTEGER"); + + b.Property("UserName") + .HasMaxLength(256) + .HasColumnType("TEXT"); + + b.HasKey("Id"); + + b.HasIndex("NormalizedEmail") + .HasDatabaseName("EmailIndex"); + + b.HasIndex("NormalizedUserName") + .IsUnique() + .HasDatabaseName("UserNameIndex"); + + b.ToTable("AspNetUsers", (string)null); + }); + modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) @@ -279,47 +268,38 @@ namespace Web_Jarmark.Migrations b.OwnsOne("Microsoft.AspNetCore.Identity.IdentityPasskeyData", "Data", b1 => { - b1.Property("IdentityUserPasskeyCredentialId") - .HasColumnType("varbinary(1024)"); + b1.Property("IdentityUserPasskeyCredentialId"); b1.Property("AttestationObject") - .IsRequired() - .HasColumnType("varbinary(max)"); + .IsRequired(); b1.Property("ClientDataJson") - .IsRequired() - .HasColumnType("varbinary(max)"); + .IsRequired(); - b1.Property("CreatedAt") - .HasColumnType("datetimeoffset"); + b1.Property("CreatedAt"); - b1.Property("IsBackedUp") - .HasColumnType("bit"); + b1.Property("IsBackedUp"); - b1.Property("IsBackupEligible") - .HasColumnType("bit"); + b1.Property("IsBackupEligible"); - b1.Property("IsUserVerified") - .HasColumnType("bit"); + b1.Property("IsUserVerified"); - b1.Property("Name") - .HasColumnType("nvarchar(max)"); + b1.Property("Name"); b1.Property("PublicKey") - .IsRequired() - .HasColumnType("varbinary(max)"); + .IsRequired(); - b1.Property("SignCount") - .HasColumnType("bigint"); + b1.Property("SignCount"); - b1.PrimitiveCollection("Transports") - .HasColumnType("nvarchar(max)"); + b1.PrimitiveCollection("Transports"); b1.HasKey("IdentityUserPasskeyCredentialId"); b1.ToTable("AspNetUserPasskeys"); - b1.ToJson("Data"); + b1 + .ToJson("Data") + .HasColumnType("TEXT"); b1.WithOwner() .HasForeignKey("IdentityUserPasskeyCredentialId"); diff --git a/Web-Jarmark/Web-Jarmark/Program.cs b/Web-Jarmark/Web-Jarmark/Program.cs index 4a5929a..f219248 100644 --- a/Web-Jarmark/Web-Jarmark/Program.cs +++ b/Web-Jarmark/Web-Jarmark/Program.cs @@ -24,7 +24,7 @@ builder.Services.AddAuthentication(options => var connectionString = builder.Configuration.GetConnectionString("DefaultConnection") ?? throw new InvalidOperationException("Connection string 'DefaultConnection' not found."); builder.Services.AddDbContext(options => - options.UseSqlServer(connectionString)); + options.UseSqlite(connectionString)); builder.Services.AddDatabaseDeveloperPageExceptionFilter(); builder.Services.AddIdentityCore(options => diff --git a/Web-Jarmark/Web-Jarmark/Web-Jarmark.csproj b/Web-Jarmark/Web-Jarmark/Web-Jarmark.csproj index caac6c1..e85e926 100644 --- a/Web-Jarmark/Web-Jarmark/Web-Jarmark.csproj +++ b/Web-Jarmark/Web-Jarmark/Web-Jarmark.csproj @@ -11,11 +11,14 @@ - - - - - + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/Web-Jarmark/Web-Jarmark/appsettings.json b/Web-Jarmark/Web-Jarmark/appsettings.json index 0908666..68d8ce1 100644 --- a/Web-Jarmark/Web-Jarmark/appsettings.json +++ b/Web-Jarmark/Web-Jarmark/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-Web_Jarmark-55b8bf19-aa16-438e-aa20-26e3a86f98ae;Trusted_Connection=True;MultipleActiveResultSets=true" + "DefaultConnection": "Data Source=jarmark.db" }, "Logging": { "LogLevel": { diff --git a/Web-Jarmark/Web-Jarmark/jarmark.db b/Web-Jarmark/Web-Jarmark/jarmark.db new file mode 100644 index 0000000000000000000000000000000000000000..12d37e15a589c70b6afd126b2daf1835a1962124 GIT binary patch literal 118784 zcmeI)&2QW09S3mHvL##bTa&hInssIA0khyZu=0upD>6l<6T!0NNOJ0+2sFlG6C#r6 zh*VP*-NA7hpgZld|6r&61wH0IpvM*1VHhy%u=5T@(aWCaAs_RhL|ST70gmt$>dNHv z@Od77em_2Zb6dGnFdakr#A-KnN4XSRj7?0$ey1q0SZsp)yhncc=QR0ck}r^NN%%eL z*NNDLKmTotR$lml)_H5;huQDuzD?bkeL4Nj^cRWmr=}8L$9E@RO6&2nQe28hH8jHY zH%=$y%BmDITXo|z`$>a%)bx&HvE^FU-Y*)?j%~E7)?=e(*D}3p&K#B(lJd%m^x|Vj zf6y@e^0L)1?4HHNTv^LjHKm%pSuumU%bl71e7q?e!rxv(eX#*DPzY z#z(VJDr@;$MXzPv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-YIr->vq|*8D_5-}Ri3_bB-L{}JENpm_*D00Izz z00bZa0SG_<0uX?}2@t^j{|N{Jh5!KwKmY;|fB*y_009U<00Iygu>kJ>M+}VSApijg zKmY;|fB*y_009U<00JjK0QdhVAP5)&1Rwwb2tWV=5P$##AOHafKw!iIxc?t9Fq($| z1Rwwb2tWV=5P$##AOHafoB#pb|DS*$UJDJ^m2iX2<6lK&iYZ0AJj>F8G*V+AazJ4fP?j9#kw~OBVefcqde(P^p zpRK;5?E6`XpWnYjGiOESAhX>6ukY$wH*0#8`kV>^1PBlyK!5-N0t5&UAV7cs0RjXF z5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk z1PBlyK!5-N0t5&UAV7cs0RlS{IL#L`FXDP<{g0<{EgEqit>d|no8;@YMO;St#;n*Z za1v*m3#<|#K!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfWW~CTpiqr9EiZa1ls%B P$UX!J5FkL{-wAvHsaY!2 literal 0 HcmV?d00001 diff --git a/Web-Jarmark/Web-Jarmark/jarmark.db-wal b/Web-Jarmark/Web-Jarmark/jarmark.db-wal new file mode 100644 index 0000000000000000000000000000000000000000..56574853dc684b5d93d8cdc79ea932043576d44c GIT binary patch literal 65952 zcmeI*Z)h8J9LMpbMVAapHWd_9-26LmwyqWS97!{6$5t&h9Ik|%%2cmdca;|t$y~2kcg4p4X^Rsh{%6P6nC{K=#>gK@WgdRGeD7zQzg^ZC+b=T7A zSZubSj!jkPMk75v*=R@&Mb%XQxExbsB_kG##*4*#DW6Ov)O^2cTZ(MzrY%);+b=1y zUzg0Vc#-{%W13|>5YmI!d2|Uwjcw4D!h-p1ipW13&VDg)nKiF&^{BET#aLwhr)@BpubP+%R0R#|0 z009ILKmY**5J2D#0$rWky?@@@AP#)AzOL2nHUfskDYAbsNvRVS_L ztmvxGMn=*`zBg)Qqefoz);HUKTc3R-nvW%F*2H{nZ)Lx&<|~0W^xzJU= zU!cQx%H=yn!oa%w@-ra>5I_I{1Q0*~0R#|00D*QD*wJaYTPfdk+-<(VgFo+F-f{K( z$(6dmWsxu7yWFl=oHqgpAbI&SMDXvi0M?Zl4Y z(z{1*J&&M6lmw^?Z0JuAlScpn1Q0*~0R#|0009ILXlH@e>H-b<0^7bnc>SXn&+Q~% zpq(!~=Z*jZ2q1s}0tg_000Ia!7x*Jzz`LYo4VTB`@_JgiLA_aiK(qb-N4`Ks(M(eh znUdcQ$Rc0BUzSWwytVbRYU@tG3I^m2oG;MuoWd>dU3`3-_wDoa5j6h}aRdSgAbP~O0O1ozcH z$DZRW&nbN6#KaqqP0Bs>x`5mFx=Sn!1Q0*~0R#|0009ILKmY**5cm%TUUJ`KbW7P* z;vSxl%ueT=Ib+tD$J|T