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 0000000..12d37e1
Binary files /dev/null and b/Web-Jarmark/Web-Jarmark/jarmark.db differ
diff --git a/Web-Jarmark/Web-Jarmark/jarmark.db-shm b/Web-Jarmark/Web-Jarmark/jarmark.db-shm
new file mode 100644
index 0000000..8bb2cb3
Binary files /dev/null and b/Web-Jarmark/Web-Jarmark/jarmark.db-shm differ
diff --git a/Web-Jarmark/Web-Jarmark/jarmark.db-wal b/Web-Jarmark/Web-Jarmark/jarmark.db-wal
new file mode 100644
index 0000000..5657485
Binary files /dev/null and b/Web-Jarmark/Web-Jarmark/jarmark.db-wal differ