using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations; /// public partial class InitialMigration : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Admins", 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_Admins", x => x.Id); }); 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), Content = table.Column(type: "bytea", nullable: false) }, constraints: table => { table.PrimaryKey("PK_MedicalHistories", x => x.Id); }); migrationBuilder.CreateTable( name: "Patients", 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_Patients", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Admins"); migrationBuilder.DropTable( name: "Doctors"); migrationBuilder.DropTable( name: "MedicalHistories"); migrationBuilder.DropTable( name: "Patients"); } }