20220310075804_新增系统设置.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace WCS.Service.Migrations
  4. {
  5. public partial class 新增系统设置 : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.CreateTable(
  10. name: "WCS_SystemConfig",
  11. columns: table => new
  12. {
  13. ID = table.Column<int>(type: "int", nullable: false)
  14. .Annotation("SqlServer:Identity", "1, 1"),
  15. Code = table.Column<string>(type: "nvarchar(max)", nullable: true),
  16. Describe = table.Column<string>(type: "nvarchar(max)", nullable: true),
  17. DEVICECODE = table.Column<string>(type: "nvarchar(max)", nullable: true),
  18. TUNNEL = table.Column<string>(type: "nvarchar(max)", nullable: true),
  19. Direction = table.Column<string>(type: "nvarchar(max)", nullable: true),
  20. ENABLED = table.Column<bool>(type: "bit", nullable: false),
  21. UPDATEUSER = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  22. UPDATETIME = table.Column<DateTime>(type: "datetime2", nullable: false),
  23. VER = table.Column<byte[]>(type: "rowversion", rowVersion: true, nullable: true)
  24. },
  25. constraints: table =>
  26. {
  27. table.PrimaryKey("PK_WCS_SystemConfig", x => x.ID);
  28. });
  29. }
  30. protected override void Down(MigrationBuilder migrationBuilder)
  31. {
  32. migrationBuilder.DropTable(
  33. name: "WCS_SystemConfig");
  34. }
  35. }
  36. }