// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using SameBeat.Infrastructure.BazaDanych; #nullable disable namespace SameBeat.Infrastructure.BazaDanych.Migracje { [DbContext(typeof(KontekstBazyDanych))] [Migration("20260821001304_DodanoSceneISloty")] partial class DodanoSceneISloty { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("SameBeat.Domain.Encje.SesjaWydarzenia", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("HostId") .HasColumnType("uuid"); b.Property("RozpoczetoUtc") .HasColumnType("timestamp with time zone"); b.Property("WydarzenieId") .HasColumnType("uuid"); b.Property("ZakonczonoUtc") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("WydarzenieId"); b.ToTable("SesjeWydarzen", (string)null); }); modelBuilder.Entity("SameBeat.Domain.Encje.SlotSceny", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("NumerSlotu") .HasColumnType("integer"); b.Property("UczestnikOczekujacyId") .HasColumnType("uuid"); b.Property("WydarzenieId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("WydarzenieId", "NumerSlotu") .IsUnique(); b.ToTable("SlotySceny", (string)null); }); modelBuilder.Entity("SameBeat.Domain.Encje.UczestnikOczekujacy", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("DolaczylUtc") .HasColumnType("timestamp with time zone"); b.Property("LiveKitIdentity") .IsRequired() .HasMaxLength(128) .HasColumnType("character varying(128)"); b.Property("Nick") .IsRequired() .HasMaxLength(40) .HasColumnType("character varying(40)"); b.Property("SekretSesjiHash") .HasMaxLength(1024) .HasColumnType("character varying(1024)"); b.Property("Status") .IsRequired() .HasMaxLength(16) .HasColumnType("character varying(16)"); b.Property("WydarzenieId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("WydarzenieId"); b.ToTable("UczestnicyOczekujacy", (string)null); }); modelBuilder.Entity("SameBeat.Domain.Encje.Uzytkownik", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("HasloHash") .HasMaxLength(1024) .HasColumnType("character varying(1024)"); b.Property("Nick") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("Rola") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("UtworzonyUtc") .HasColumnType("timestamp with time zone"); b.Property("Zbanowany") .HasColumnType("boolean"); b.HasKey("Id"); b.HasIndex("Nick") .IsUnique(); b.ToTable("Uzytkownicy", (string)null); }); modelBuilder.Entity("SameBeat.Domain.Encje.Wydarzenie", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Nazwa") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Status") .IsRequired() .HasMaxLength(16) .HasColumnType("character varying(16)"); b.Property("UkladSceny") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(16) .HasColumnType("character varying(16)") .HasDefaultValue("Grid4"); b.Property("UtworzoneUtc") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("Wydarzenia", (string)null); }); #pragma warning restore 612, 618 } } }