// using System; using Cloud; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Cloud.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20260817053000_AddUsersAndSyncCardNotes")] partial class AddUsersAndSyncCardNotes { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "10.0.9") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("DatabaseTest.Models.PasskeyCredential", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer") .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); b.Property("AaGuid") .IsRequired() .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CredentialId") .IsRequired() .HasColumnType("bytea"); b.Property("PublicKey") .IsRequired() .HasColumnType("bytea"); b.Property("SignCount") .HasColumnType("bigint"); b.Property("UserHandle") .IsRequired() .HasColumnType("bytea"); b.HasKey("Id"); b.ToTable("PasskeyCredentials"); }); modelBuilder.Entity("Model.CardNote", b => { b.Property("Username") .HasColumnType("text"); b.Property("CardName") .HasColumnType("text"); b.Property("Note") .IsRequired() .HasColumnType("text"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Username", "CardName"); b.ToTable("CardNotes"); }); modelBuilder.Entity("Model.User", b => { b.Property("Username") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Password") .IsRequired() .HasColumnType("text"); b.HasKey("Username"); b.ToTable("Users"); }); modelBuilder.Entity("Model.UserDeck", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.PrimitiveCollection("Cards") .IsRequired() .HasColumnType("jsonb"); b.PrimitiveCollection("Divers") .IsRequired() .HasColumnType("jsonb"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.Property("Notes") .HasColumnType("text"); b.Property("Season") .HasColumnType("text"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("UserDecks"); }); #pragma warning restore 612, 618 } } }