using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Email.Data.Migrations { /// public partial class InitialSchema : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.EnsureSchema( name: "email"); migrationBuilder.CreateTable( name: "Templates", schema: "email", columns: table => new { Key = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), Language = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: false), Value = table.Column(type: "nvarchar(max)", nullable: false), Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: false, defaultValue: ""), UpdatedAt = table.Column(type: "datetime2", nullable: false, defaultValueSql: "SYSUTCDATETIME()"), OperatorCopy = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false, defaultValue: "") }, constraints: table => { table.PrimaryKey("PK_Templates", x => new { x.Key, x.Language }); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Templates", schema: "email"); } } }