using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace gehGassi.Persistence.Migrations
{
///
public partial class SubscriptionsAdded : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Subscriptions",
columns: table => new
{
Id = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
Code = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
Length = table.Column(type: "int", nullable: false),
Price = table.Column(type: "decimal(18,4)", nullable: false),
AppMode = table.Column(type: "int", nullable: false),
NameLocalized = table.Column(type: "nvarchar(max)", nullable: true),
DescriptionLocalized = table.Column(type: "nvarchar(max)", nullable: true),
Index = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Version = table.Column(type: "rowversion", rowVersion: true, nullable: true),
UpdatedAt = table.Column(type: "datetimeoffset", nullable: false),
Deleted = table.Column(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Subscriptions", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Subscriptions");
}
}
}