66 lines
2.1 KiB
C#
66 lines
2.1 KiB
C#
|
|
// <auto-generated />
|
|||
|
|
using System;
|
|||
|
|
using CampusWorkshops.Api.Infrastructure.Data;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace Workshop10_API.Migrations
|
|||
|
|
{
|
|||
|
|
[DbContext(typeof(WorkshopsDbContext))]
|
|||
|
|
[Migration("20250903175616_InitialCreate")]
|
|||
|
|
partial class InitialCreate
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
|
{
|
|||
|
|
#pragma warning disable 612, 618
|
|||
|
|
modelBuilder.HasAnnotation("ProductVersion", "9.0.8");
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("CampusWorkshops.Api.Models.Workshop", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<int>("Capacity")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("INTEGER")
|
|||
|
|
.HasDefaultValue(1);
|
|||
|
|
|
|||
|
|
b.Property<string>("Description")
|
|||
|
|
.HasMaxLength(2000)
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset>("EndAt")
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsOnline")
|
|||
|
|
.HasColumnType("INTEGER");
|
|||
|
|
|
|||
|
|
b.Property<string>("Location")
|
|||
|
|
.HasMaxLength(200)
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<DateTimeOffset>("StartAt")
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<string>("Title")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(120)
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("StartAt");
|
|||
|
|
|
|||
|
|
b.ToTable("Workshops", (string)null);
|
|||
|
|
});
|
|||
|
|
#pragma warning restore 612, 618
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|