in app/Migrations/20210407143338_InitialCreate.cs [9:58]
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Movie",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("MySQL:ValueGenerationStrategy", MySQLValueGenerationStrategy.IdentityColumn),
Title = table.Column<string>(type: "varchar(60)", maxLength: 60, nullable: false),
Year = table.Column<int>(type: "int", nullable: false),
Director = table.Column<string>(type: "varchar(60)", maxLength: 60, nullable: false),
Genre = table.Column<string>(type: "varchar(30)", maxLength: 30, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Movie", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Roles",
columns: table => new
{
Id = table.Column<byte[]>(type: "varbinary(16)", nullable: false),
Name = table.Column<string>(type: "text", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Roles", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Users",
columns: table => new
{
Id = table.Column<byte[]>(type: "varbinary(16)", nullable: false),
UserName = table.Column<string>(type: "text", nullable: true),
Email = table.Column<string>(type: "text", nullable: true),
EmailConfirmed = table.Column<bool>(type: "tinyint(1)", nullable: false),
PasswordHash = table.Column<string>(type: "text", nullable: true),
NormalizedUserName = table.Column<string>(type: "text", nullable: true),
AuthenticationType = table.Column<string>(type: "text", nullable: true),
IsAuthenticated = table.Column<bool>(type: "tinyint(1)", nullable: false),
Name = table.Column<string>(type: "text", nullable: true),
EnforceChangePassword = table.Column<bool>(type: "tinyint(1)", nullable: false),
},
constraints: table =>
{
table.PrimaryKey("PK_Users", x => x.Id);
});
}