using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AspnetCoreFull.Migrations
{
///
public partial class InitialCreate : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "User",
columns: table => new
{
Id = table.Column(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true), // Autoincrement is for auto incrementing primary keys of users
UserName = table.Column(type: "TEXT", nullable: false),
Email = table.Column(type: "TEXT", nullable: false),
IsVerified = table.Column(type: "INTEGER", nullable: false),
ContactNumber = table.Column(type: "TEXT", nullable: false),
SelectedRole = table.Column(type: "TEXT", nullable: false),
SelectedPlan = table.Column(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_User", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "User");
}
}
}