using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Web.Migrations { /// public partial class AddUserTrajectoryCache : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "UserTrajectoryCaches", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), UserEmail = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), AnalyzedResponseCount = table.Column(type: "int", nullable: false), LastResponseDate = table.Column(type: "datetime2", nullable: false), TrajectoryJson = table.Column(type: "nvarchar(max)", nullable: false), PreviousSummary = table.Column(type: "nvarchar(max)", nullable: true), CreatedAt = table.Column(type: "datetime2", nullable: false), UpdatedAt = table.Column(type: "datetime2", nullable: false) }, constraints: table => { table.PrimaryKey("PK_UserTrajectoryCaches", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "UserTrajectoryCaches"); } } }