using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PatientProfileService.Persistence.Migrations
{
///
public partial class InitialPatientSchema : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "patient",
columns: table => new
{
patient_id = table.Column(type: "uuid", nullable: false),
name = table.Column(type: "character varying", nullable: false),
date_of_birth = table.Column(type: "date", nullable: false),
contact_info = table.Column(type: "character varying", nullable: true),
created_at = table.Column(type: "timestamp without time zone", nullable: false),
updated_at = table.Column(type: "timestamp without time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_patient", x => x.patient_id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "patient");
}
}
}