//
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("20260820232140_PoczatkowaStruktura")]
partial class PoczatkowaStruktura
{
///
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.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("UtworzoneUtc")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.ToTable("Wydarzenia", (string)null);
});
#pragma warning restore 612, 618
}
}
}