20220920105933_DeathwatchDbFirstMigration.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace Warhammer.Migrations
  4. {
  5. public partial class DeathwatchDbFirstMigration : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.CreateTable(
  10. name: "Players",
  11. columns: table => new
  12. {
  13. Name = table.Column<string>(nullable: false),
  14. Id = table.Column<Guid>(nullable: false),
  15. CreatedDate = table.Column<DateTime>(nullable: false),
  16. ModifiedDate = table.Column<DateTime>(nullable: false),
  17. CharacterName = table.Column<string>(nullable: true),
  18. Background = table.Column<string>(nullable: true),
  19. Experience = table.Column<int>(nullable: false),
  20. CC = table.Column<int>(nullable: false),
  21. CT = table.Column<int>(nullable: false),
  22. F = table.Column<int>(nullable: false),
  23. E = table.Column<int>(nullable: false),
  24. AG = table.Column<int>(nullable: false),
  25. INT = table.Column<int>(nullable: false),
  26. PER = table.Column<int>(nullable: false),
  27. FM = table.Column<int>(nullable: false),
  28. SOC = table.Column<int>(nullable: false),
  29. MF = table.Column<int>(nullable: false)
  30. },
  31. constraints: table =>
  32. {
  33. table.PrimaryKey("PK_Players", x => x.Name);
  34. });
  35. }
  36. protected override void Down(MigrationBuilder migrationBuilder)
  37. {
  38. migrationBuilder.DropTable(
  39. name: "Players");
  40. }
  41. }
  42. }