You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
2.2 KiB

2 years ago
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace Shentun.Peis.Migrations
  5. {
  6. public partial class init20240503002 : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.CreateTable(
  11. name: "patient_register_exter",
  12. columns: table => new
  13. {
  14. patient_register_id = table.Column<Guid>(type: "uuid", nullable: false),
  15. qztl_type = table.Column<char>(type: "character(1)", nullable: false),
  16. qztl_is_cw = table.Column<char>(type: "character(1)", nullable: false),
  17. qztl_is_cy = table.Column<char>(type: "character(1)", nullable: false),
  18. qztl_is_gt = table.Column<char>(type: "character(1)", nullable: false),
  19. qztl_is_main = table.Column<char>(type: "character(1)", nullable: false),
  20. qztl_is_wh = table.Column<char>(type: "character(1)", nullable: false),
  21. qztl_is_fj = table.Column<char>(type: "character(1)", nullable: false),
  22. is_qztl_import = table.Column<char>(type: "character(1)", nullable: false),
  23. upload_qztl_flag = table.Column<char>(type: "character(1)", nullable: false),
  24. planuserid = table.Column<string>(type: "text", nullable: true),
  25. remark2 = table.Column<string>(type: "text", nullable: true),
  26. remark3 = table.Column<string>(type: "text", nullable: true),
  27. remark4 = table.Column<string>(type: "text", nullable: true),
  28. concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
  29. },
  30. constraints: table =>
  31. {
  32. table.PrimaryKey("PK_patient_register_exter", x => x.patient_register_id);
  33. },
  34. comment: "人员登记信息扩展");
  35. }
  36. protected override void Down(MigrationBuilder migrationBuilder)
  37. {
  38. migrationBuilder.DropTable(
  39. name: "patient_register_exter");
  40. }
  41. }
  42. }