// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using WebAppServer1.ApplicationDbContext; #nullable disable namespace WebAppServer1.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20260517061910_tokens")] partial class tokens { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "10.0.8") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("WebAppServer1.Models.Tokens", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("IsRevoked") .HasColumnType("boolean"); b.Property("IssuedAt") .HasColumnType("timestamp with time zone"); b.Property("RefreshToken") .IsRequired() .HasColumnType("text"); b.Property("UserId") .HasColumnType("integer"); b.Property("UserName") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("Tokens"); }); modelBuilder.Entity("WebAppServer1.Models.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("CreatedDate") .HasColumnType("timestamp with time zone"); b.Property("LastModifiedDate") .HasColumnType("timestamp with time zone"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.Property("Password") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("Users"); }); #pragma warning restore 612, 618 } } }