20210708073038_7-8-2.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace WCS.Service.Migrations
  4. {
  5. public partial class _782 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.CreateTable(
  10. name: "WCS_TASK",
  11. columns: table => new
  12. {
  13. ID = table.Column<int>(type: "int", nullable: false)
  14. .Annotation("SqlServer:Identity", "1, 1"),
  15. BARCODE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  16. TYPE = table.Column<int>(type: "int", nullable: false),
  17. STATUS = table.Column<int>(type: "int", nullable: false),
  18. ADDRFROM = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  19. ADDRTO = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  20. TUNNEL = table.Column<int>(type: "int", nullable: false),
  21. DEVICE = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  22. CREATETIME = table.Column<DateTime>(type: "datetime2", nullable: false),
  23. STARTTIME = table.Column<DateTime>(type: "datetime2", nullable: true),
  24. ENDTIME = table.Column<DateTime>(type: "datetime2", nullable: true),
  25. PALLETTYPE = table.Column<int>(type: "int", nullable: false),
  26. WMSTASK = table.Column<int>(type: "int", nullable: false),
  27. UPLOADED = table.Column<int>(type: "int", nullable: false),
  28. ENABLED = table.Column<bool>(type: "bit", nullable: false),
  29. UPDATEUSER = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  30. UPDATETIME = table.Column<DateTime>(type: "datetime2", nullable: false),
  31. VER = table.Column<byte[]>(type: "rowversion", rowVersion: true, nullable: true)
  32. },
  33. constraints: table =>
  34. {
  35. table.PrimaryKey("PK_WCS_TASK", x => x.ID);
  36. });
  37. }
  38. protected override void Down(MigrationBuilder migrationBuilder)
  39. {
  40. migrationBuilder.DropTable(
  41. name: "WCS_TASK");
  42. }
  43. }
  44. }