using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace khmereid_backend.Migrations { /// public partial class init : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "users", columns: table => new { id = table.Column(type: "uuid", nullable: false), identity_id = table.Column(type: "uuid", nullable: false), phone = table.Column(type: "text", nullable: false), national_id = table.Column(type: "text", nullable: false), created_at = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("pk_users", x => x.id); }); migrationBuilder.CreateIndex( name: "ix_users_national_id", table: "users", column: "national_id", unique: true); migrationBuilder.CreateIndex( name: "ix_users_phone", table: "users", column: "phone", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "users"); } } }