20240824062632_AddInformation.cs 1.0 KB

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