add: ef core

This commit is contained in:
2025-09-03 16:31:58 -03:00
parent 3c2513a567
commit f7426e16d9
9 changed files with 287 additions and 1 deletions

View File

@@ -0,0 +1,62 @@
// <auto-generated />
using System;
using CampusWorkshops.Api.Infrastructure.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace Workshop10_API.Migrations
{
[DbContext(typeof(WorkshopsDbContext))]
partial class WorkshopsDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(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
}
}
}