using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations { /// public partial class InitialCreate : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Doctors", columns: table => new { Id = table.Column(type: "uuid", nullable: false), Name = table.Column(type: "text", nullable: true), Email = table.Column(type: "text", nullable: true), Password = table.Column(type: "text", nullable: true), Description = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Doctors", x => x.Id); }); migrationBuilder.CreateTable( name: "MedicalHistories", columns: table => new { Id = table.Column(type: "uuid", nullable: false), UserId = table.Column(type: "uuid", nullable: false), Description = table.Column(type: "bytea", nullable: false) }, constraints: table => { table.PrimaryKey("PK_MedicalHistories", x => x.Id); }); migrationBuilder.CreateTable( name: "Pacients", columns: table => new { Id = table.Column(type: "uuid", nullable: false), Name = table.Column(type: "text", nullable: true), Email = table.Column(type: "text", nullable: true), Password = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Pacients", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Doctors"); migrationBuilder.DropTable( name: "MedicalHistories"); migrationBuilder.DropTable( name: "Pacients"); } } }