// using System; using Infrastructure.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Infrastructure.Migrations { [DbContext(typeof(HealthcareManagerDatabase))] [Migration("20240404131625_InitialCreate")] partial class InitialCreate { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Core.Entities.Doctor", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Description") .HasColumnType("text"); b.Property("Email") .HasColumnType("text"); b.Property("Name") .HasColumnType("text"); b.Property("Password") .HasColumnType("text"); b.HasKey("Id"); b.ToTable("Doctors"); }); modelBuilder.Entity("Core.Entities.MedicalHistory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Description") .IsRequired() .HasColumnType("bytea"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.ToTable("MedicalHistories"); }); modelBuilder.Entity("Core.Entities.Pacient", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Email") .HasColumnType("text"); b.Property("Name") .HasColumnType("text"); b.Property("Password") .HasColumnType("text"); b.HasKey("Id"); b.ToTable("Pacients"); }); #pragma warning restore 612, 618 } } }