using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SameBeat.Infrastructure.BazaDanych.Migracje { /// public partial class DodanoPoczekalnie : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "UczestnicyOczekujacy", columns: table => new { Id = table.Column(type: "uuid", nullable: false), WydarzenieId = table.Column(type: "uuid", nullable: false), Nick = table.Column(type: "character varying(40)", maxLength: 40, nullable: false), LiveKitIdentity = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), DolaczylUtc = table.Column(type: "timestamp with time zone", nullable: false), Status = table.Column(type: "character varying(16)", maxLength: 16, nullable: false) }, constraints: table => { table.PrimaryKey("PK_UczestnicyOczekujacy", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_UczestnicyOczekujacy_WydarzenieId", table: "UczestnicyOczekujacy", column: "WydarzenieId"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "UczestnicyOczekujacy"); } } }