// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using SameBeat.Infrastructure.BazaDanych; #nullable disable namespace SameBeat.Infrastructure.BazaDanych.Migracje { [DbContext(typeof(KontekstBazyDanych))] partial class KontekstBazyDanychModelSnapshot : ModelSnapshot { protected override void BuildModel(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.HistoriaMikrofonu", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CzasSekundy") .HasColumnType("integer"); b.Property("KoniecFaktycznyUtc") .HasColumnType("timestamp with time zone"); b.Property("KoniecPlanowanyUtc") .HasColumnType("timestamp with time zone"); b.Property("PrzyznalHostNick") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("StartUtc") .HasColumnType("timestamp with time zone"); b.Property("UczestnikOczekujacyId") .HasColumnType("uuid"); b.Property("WydarzenieId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("WydarzenieId", "UczestnikOczekujacyId"); b.ToTable("HistoriaMikrofonu", (string)null); }); modelBuilder.Entity("SameBeat.Domain.Encje.PozycjaPlaylisty", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Kolejnosc") .HasColumnType("integer"); b.Property("UtworId") .HasColumnType("uuid"); b.Property("WydarzenieId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("WydarzenieId", "Kolejnosc") .IsUnique(); b.ToTable("PozycjePlaylisty", (string)null); }); 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.UczestnikCzatu", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("DolaczylUtc") .HasColumnType("timestamp with time zone"); b.Property("Nick") .IsRequired() .HasMaxLength(40) .HasColumnType("character varying(40)"); b.Property("Wyciszony") .HasColumnType("boolean"); b.Property("WydarzenieId") .HasColumnType("uuid"); b.Property("Zbanowany") .HasColumnType("boolean"); b.HasKey("Id"); b.HasIndex("WydarzenieId"); b.ToTable("UczestnicyCzatu", (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.Utwor", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CzasTrwaniaMs") .HasColumnType("integer"); b.Property("Tytul") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Url") .IsRequired() .HasMaxLength(2048) .HasColumnType("character varying(2048)"); b.Property("Wykonawca") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.HasKey("Id"); b.ToTable("Utwory", (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("NieudaneProbyLogowania") .HasColumnType("integer"); b.Property("Rola") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("UtworzonyUtc") .HasColumnType("timestamp with time zone"); b.Property("ZablokowanyDoUtc") .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.WiadomoscCzatu", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("NadawcaTozsamoscId") .HasColumnType("uuid"); b.Property("Nick") .IsRequired() .HasMaxLength(40) .HasColumnType("character varying(40)"); b.Property("Tresc") .IsRequired() .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("Usunieta") .HasColumnType("boolean"); b.Property("WydarzenieId") .HasColumnType("uuid"); b.Property("WyslanoUtc") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("NadawcaTozsamoscId", "WyslanoUtc"); b.HasIndex("WydarzenieId", "WyslanoUtc"); b.ToTable("WiadomosciCzatu", (string)null); }); modelBuilder.Entity("SameBeat.Domain.Encje.Wydarzenie", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AktywnyMikrofonKoniecUtc") .HasColumnType("timestamp with time zone"); b.Property("AktywnyMikrofonUczestnikId") .HasColumnType("uuid"); b.Property("CzasStartuUtc") .HasColumnType("timestamp with time zone"); b.Property("GlosnoscMaster") .ValueGeneratedOnAdd() .HasColumnType("real") .HasDefaultValue(0.9f); b.Property("Nazwa") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("PozycjaStartowaMs") .ValueGeneratedOnAdd() .HasColumnType("integer") .HasDefaultValue(0); b.Property("StanOdtwarzania") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(16) .HasColumnType("character varying(16)") .HasDefaultValue("Zatrzymana"); 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("UtworId") .HasColumnType("uuid"); b.Property("UtworzoneUtc") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("Wydarzenia", (string)null); }); #pragma warning restore 612, 618 } } }