Add Event tables

This commit is contained in:
AleksDw
2025-04-24 22:06:15 +02:00
parent ba5725d780
commit 981236f6aa
6 changed files with 401 additions and 0 deletions

View File

@@ -222,6 +222,33 @@ namespace WebApp.Migrations
b.ToTable("AspNetUserTokens", (string)null);
});
modelBuilder.Entity("WebApp.Entities.Event", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer");
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<DateTime>("Date")
.HasColumnType("timestamp with time zone");
b.Property<string>("Description")
.HasColumnType("text");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Place")
.IsRequired()
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("Events");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)