20230209042543_AddStatisticsTable.cs 1009 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace Repository.Migrations
  4. {
  5. public partial class AddStatisticsTable : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.CreateTable(
  10. name: "StatisticsLogs",
  11. columns: table => new
  12. {
  13. Id = table.Column<Guid>(nullable: false),
  14. Timestamp = table.Column<DateTime>(nullable: false),
  15. TraceState = table.Column<int>(nullable: false),
  16. RequstType = table.Column<int>(nullable: false)
  17. },
  18. constraints: table =>
  19. {
  20. table.PrimaryKey("PK_StatisticsLogs", x => x.Id);
  21. });
  22. }
  23. protected override void Down(MigrationBuilder migrationBuilder)
  24. {
  25. migrationBuilder.DropTable(
  26. name: "StatisticsLogs");
  27. }
  28. }
  29. }