using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace MyWebSIte.Data.Migrations
{
public partial class InitialCreate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Company",
columns: table => new
{
ID = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Title = table.Column<string>(type: "nvarchar(max)", nullable: true),
ReleaseDate = table.Column<DateTime>(type: "datetime2", nullable: false),
Rating = table.Column<string>(type: "nvarchar(max)", nullable: true),
Bonus = table.Column<string>(type: "nvarchar(max)", nullable: true),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
Thematics = table.Column<string>(type: "nvarchar(max)", nullable: true),
Images = table.Column<string>(type: "nvarchar(max)", nullable: true),
Video = table.Column<string>(type: "nvarchar(max)", nullable: true),
Topic = table.Column<string>(type: "nvarchar(max)", nullable: true),
News = table.Column<string>(type: "nvarchar(max)", nullable: true),
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Tags = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Company", x => x.ID);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Company");
}
}
}