// using System; using Infrastructure; 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("20240519211516_SeedAdminTable")] partial class SeedAdminTable { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.5") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Domain.Entities.Admin", 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("Admins"); }); modelBuilder.Entity("Domain.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("Domain.Entities.MedicalHistory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Content") .IsRequired() .HasColumnType("bytea"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.ToTable("MedicalHistories"); }); modelBuilder.Entity("Domain.Entities.Patient", 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("Patients"); }); #pragma warning restore 612, 618 } } }