20231019085717_InitialCreate.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace EVCB_OCPP.Domain.Migrations
  5. {
  6. /// <inheritdoc />
  7. public partial class InitialCreate : Migration
  8. {
  9. /// <inheritdoc />
  10. protected override void Up(MigrationBuilder migrationBuilder)
  11. {
  12. migrationBuilder.CreateTable(
  13. name: "__MigrationHistory",
  14. columns: table => new
  15. {
  16. MigrationId = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false),
  17. ContextKey = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: false),
  18. Model = table.Column<byte[]>(type: "varbinary(max)", nullable: false),
  19. ProductVersion = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: false)
  20. },
  21. constraints: table =>
  22. {
  23. table.PrimaryKey("PK_dbo.__MigrationHistory", x => new { x.MigrationId, x.ContextKey });
  24. });
  25. migrationBuilder.CreateTable(
  26. name: "ConnectorMeterValueRecord",
  27. columns: table => new
  28. {
  29. Id = table.Column<long>(type: "bigint", nullable: false)
  30. .Annotation("SqlServer:Identity", "1, 1"),
  31. ConnectorId = table.Column<byte>(type: "tinyint", nullable: false),
  32. Value = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
  33. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  34. ContextId = table.Column<int>(type: "int", nullable: false),
  35. FormatId = table.Column<int>(type: "int", nullable: false),
  36. MeasurandId = table.Column<int>(type: "int", nullable: false),
  37. PhaseId = table.Column<int>(type: "int", nullable: false),
  38. LocationId = table.Column<int>(type: "int", nullable: false),
  39. UnitId = table.Column<int>(type: "int", nullable: false),
  40. ChargeBoxId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  41. TransactionId = table.Column<int>(type: "int", nullable: false)
  42. },
  43. constraints: table =>
  44. {
  45. table.PrimaryKey("PK_dbo.ConnectorMeterValueRecord", x => x.Id);
  46. });
  47. migrationBuilder.CreateTable(
  48. name: "ConnectorStatus",
  49. columns: table => new
  50. {
  51. Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
  52. ConnectorId = table.Column<byte>(type: "tinyint", nullable: false),
  53. Status = table.Column<int>(type: "int", nullable: false),
  54. ErrorInfo = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  55. VendorId = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
  56. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  57. VendorErrorCode = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
  58. ChargePointErrorCodeId = table.Column<int>(type: "int", nullable: false),
  59. ChargeBoxId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  60. TotalEnergy = table.Column<decimal>(type: "decimal(10,2)", nullable: false),
  61. Type = table.Column<int>(type: "int", nullable: false)
  62. },
  63. constraints: table =>
  64. {
  65. table.PrimaryKey("PK_dbo.ConnectorStatus", x => x.Id);
  66. });
  67. migrationBuilder.CreateTable(
  68. name: "Customer",
  69. columns: table => new
  70. {
  71. Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  72. Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  73. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  74. CreatedBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  75. Deadline = table.Column<DateTime>(type: "datetime", nullable: true),
  76. UpdatedOn = table.Column<DateTime>(type: "datetime", nullable: true),
  77. UpdatedBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  78. ApiUrl = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
  79. ApiKey = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
  80. ApiKeyUpdatedOn = table.Column<DateTime>(type: "datetime", nullable: true),
  81. PartnerId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
  82. ApiCustomerId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
  83. CallPartnerApiOnSchedule = table.Column<bool>(type: "bit", nullable: false),
  84. IsShow = table.Column<bool>(type: "bit", nullable: false),
  85. FTPPath = table.Column<string>(type: "nvarchar(max)", nullable: true),
  86. FTPHost = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  87. FTPUser = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  88. FTPPassword = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  89. EnableTTIA = table.Column<bool>(type: "bit", nullable: false),
  90. TTIA_EquipmentProvider = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
  91. TTIA_CustomerId = table.Column<int>(type: "int", nullable: false),
  92. TTIA_APIUrl = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
  93. TTIA_APIKey = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
  94. InstantStopTxReport = table.Column<bool>(type: "bit", nullable: false)
  95. },
  96. constraints: table =>
  97. {
  98. table.PrimaryKey("PK_dbo.Customer", x => x.Id);
  99. });
  100. migrationBuilder.CreateTable(
  101. name: "LoadingBalance",
  102. columns: table => new
  103. {
  104. Id = table.Column<long>(type: "bigint", nullable: false)
  105. .Annotation("SqlServer:Identity", "1, 1"),
  106. StationId = table.Column<int>(type: "int", nullable: false),
  107. MachineId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
  108. Power = table.Column<decimal>(type: "decimal(10,2)", nullable: false),
  109. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  110. FinishedOn = table.Column<DateTime>(type: "datetime", nullable: false)
  111. },
  112. constraints: table =>
  113. {
  114. table.PrimaryKey("PK_LoadingBalance", x => x.Id);
  115. });
  116. migrationBuilder.CreateTable(
  117. name: "MachineConfigurations",
  118. columns: table => new
  119. {
  120. ConfigureName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  121. ChargeBoxId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  122. Id = table.Column<int>(type: "int", nullable: false)
  123. .Annotation("SqlServer:Identity", "1, 1"),
  124. ConfigureSetting = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
  125. ReadOnly = table.Column<bool>(type: "bit", nullable: false),
  126. Exists = table.Column<bool>(type: "bit", nullable: false)
  127. },
  128. constraints: table =>
  129. {
  130. table.PrimaryKey("PK_dbo.MachineConfigurations", x => new { x.ConfigureName, x.ChargeBoxId });
  131. });
  132. migrationBuilder.CreateTable(
  133. name: "MachineError",
  134. columns: table => new
  135. {
  136. Id = table.Column<int>(type: "int", nullable: false)
  137. .Annotation("SqlServer:Identity", "1, 1"),
  138. ConnectorId = table.Column<byte>(type: "tinyint", nullable: false),
  139. PreStatus = table.Column<int>(type: "int", nullable: false),
  140. Status = table.Column<int>(type: "int", nullable: false),
  141. ErrorInfo = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  142. VendorId = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
  143. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  144. ErrorCodeId = table.Column<int>(type: "int", nullable: false),
  145. VendorErrorCode = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
  146. ChargeBoxId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
  147. },
  148. constraints: table =>
  149. {
  150. table.PrimaryKey("PK_dbo.MachineError", x => x.Id);
  151. });
  152. migrationBuilder.CreateTable(
  153. name: "MachineOperateRecord",
  154. columns: table => new
  155. {
  156. Id = table.Column<int>(type: "int", nullable: false)
  157. .Annotation("SqlServer:Identity", "1, 1"),
  158. SerialNo = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
  159. RequestType = table.Column<int>(type: "int", nullable: false),
  160. RequestContent = table.Column<string>(type: "nvarchar(max)", nullable: true),
  161. Status = table.Column<int>(type: "int", nullable: false),
  162. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  163. FinishedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  164. EVSE_Value = table.Column<string>(type: "nvarchar(max)", nullable: true),
  165. EVSE_Status = table.Column<int>(type: "int", nullable: false),
  166. ChargeBoxId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  167. Action = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
  168. ReportedOn = table.Column<DateTime>(type: "datetime", nullable: false)
  169. },
  170. constraints: table =>
  171. {
  172. table.PrimaryKey("PK_dbo.MachineOperateRecord", x => x.Id);
  173. });
  174. migrationBuilder.CreateTable(
  175. name: "OCMF",
  176. columns: table => new
  177. {
  178. Id = table.Column<int>(type: "int", nullable: false)
  179. .Annotation("SqlServer:Identity", "1, 1"),
  180. TransactionId = table.Column<int>(type: "int", nullable: false),
  181. DataString = table.Column<string>(type: "nvarchar(2048)", maxLength: 2048, nullable: true),
  182. PublicKey = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true)
  183. },
  184. constraints: table =>
  185. {
  186. table.PrimaryKey("PK_dbo.OCMF", x => x.Id);
  187. });
  188. migrationBuilder.CreateTable(
  189. name: "ServerMessage",
  190. columns: table => new
  191. {
  192. Id = table.Column<int>(type: "int", nullable: false)
  193. .Annotation("SqlServer:Identity", "1, 1"),
  194. SerialNo = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
  195. OutAction = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
  196. OutRequest = table.Column<string>(type: "nvarchar(max)", nullable: true),
  197. InMessage = table.Column<string>(type: "nvarchar(max)", nullable: true),
  198. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  199. CreatedBy = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true),
  200. ReceivedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  201. ChargeBoxId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  202. UpdatedOn = table.Column<DateTime>(type: "datetime", nullable: false)
  203. },
  204. constraints: table =>
  205. {
  206. table.PrimaryKey("PK_dbo.ServerMessage", x => x.Id);
  207. });
  208. migrationBuilder.CreateTable(
  209. name: "TransactionRecord",
  210. columns: table => new
  211. {
  212. Id = table.Column<int>(type: "int", nullable: false)
  213. .Annotation("SqlServer:Identity", "1, 1"),
  214. StartTime = table.Column<DateTime>(type: "datetime", nullable: false),
  215. StopTime = table.Column<DateTime>(type: "datetime", nullable: false),
  216. CustomerId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  217. ConnectorId = table.Column<byte>(type: "tinyint", nullable: false),
  218. MeterStart = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
  219. MeterStop = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
  220. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  221. UpdatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  222. StartTransactionReportedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  223. RetryStartTransactionTimes = table.Column<int>(type: "int", nullable: false),
  224. StopTransactionReportedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  225. ErrorMsg = table.Column<string>(type: "nvarchar(max)", nullable: true),
  226. StartIdTag = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  227. StopIdTag = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  228. ReservationId = table.Column<int>(type: "int", nullable: false),
  229. StopReasonId = table.Column<int>(type: "int", nullable: false),
  230. ChargeBoxId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  231. RetryStopTransactionTimes = table.Column<int>(type: "int", nullable: false),
  232. UploadedtoTTIA = table.Column<bool>(type: "bit", nullable: false),
  233. Cost = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
  234. Fee = table.Column<string>(type: "nvarchar(1500)", maxLength: 1500, nullable: true),
  235. Receipt = table.Column<string>(type: "nvarchar(3000)", maxLength: 3000, nullable: true),
  236. BillingDone = table.Column<bool>(type: "bit", nullable: false),
  237. StopReason = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: true),
  238. StartSOC = table.Column<string>(type: "nvarchar(3)", maxLength: 3, nullable: true),
  239. StopSOC = table.Column<string>(type: "nvarchar(3)", maxLength: 3, nullable: true),
  240. NotifyPnC = table.Column<bool>(type: "bit", nullable: false),
  241. EVCCID = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true)
  242. },
  243. constraints: table =>
  244. {
  245. table.PrimaryKey("PK_dbo.TransactionRecord", x => x.Id);
  246. });
  247. migrationBuilder.CreateTable(
  248. name: "UploadFile",
  249. columns: table => new
  250. {
  251. Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
  252. FileName = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
  253. OriginName = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
  254. FileSize = table.Column<int>(type: "int", nullable: false),
  255. FileType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
  256. FileExtensionName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  257. FilePath = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: false),
  258. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  259. CreatedBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  260. FileMD5 = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  261. FileUrl = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
  262. VendorId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  263. ModelName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
  264. ModuleId = table.Column<int>(type: "int", nullable: false)
  265. },
  266. constraints: table =>
  267. {
  268. table.PrimaryKey("PK_dbo.UploadFile", x => x.Id);
  269. });
  270. migrationBuilder.CreateTable(
  271. name: "Machine",
  272. columns: table => new
  273. {
  274. Id = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
  275. ChargePointSerialNumber = table.Column<string>(type: "nvarchar(25)", maxLength: 25, nullable: true),
  276. ChargeBoxSerialNumber = table.Column<string>(type: "nvarchar(25)", maxLength: 25, nullable: true),
  277. ChargePointModel = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  278. ChargePointVendor = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  279. Iccid = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  280. Imsi = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
  281. MeterType = table.Column<string>(type: "nvarchar(25)", maxLength: 25, nullable: true),
  282. MeterSerialNumber = table.Column<string>(type: "nvarchar(25)", maxLength: 25, nullable: true),
  283. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  284. CreatedBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  285. Comment = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
  286. CustomerId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
  287. GunAmt = table.Column<int>(type: "int", nullable: false),
  288. HeartbeatUpdatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  289. FW_VersionReport = table.Column<int>(type: "int", nullable: true),
  290. FW_AssignedVersion = table.Column<int>(type: "int", nullable: true),
  291. Online = table.Column<bool>(type: "bit", nullable: false),
  292. OfflineOn = table.Column<DateTime>(type: "datetime", nullable: true),
  293. FW_CurrentVersion = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  294. ChargeBoxId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  295. ConnectionType = table.Column<int>(type: "int", nullable: false),
  296. RatedPower = table.Column<decimal>(type: "decimal(6,2)", nullable: false),
  297. ConnectorType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  298. ConnectorPowerType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
  299. Latitude = table.Column<decimal>(type: "decimal(10,6)", nullable: false),
  300. Longitude = table.Column<decimal>(type: "decimal(10,6)", nullable: false),
  301. VendorId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true, defaultValueSql: "('Zerova')"),
  302. ModelName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false, defaultValueSql: "('')"),
  303. BoardVersions = table.Column<string>(type: "nvarchar(max)", nullable: true),
  304. IsDelete = table.Column<bool>(type: "bit", nullable: false),
  305. TTIATag = table.Column<int>(type: "int", nullable: false)
  306. },
  307. constraints: table =>
  308. {
  309. table.PrimaryKey("PK_dbo.Machine", x => x.Id);
  310. table.ForeignKey(
  311. name: "FK_dbo.Machine_dbo.Customer_CustomerId",
  312. column: x => x.CustomerId,
  313. principalTable: "Customer",
  314. principalColumn: "Id",
  315. onDelete: ReferentialAction.Cascade);
  316. });
  317. migrationBuilder.CreateTable(
  318. name: "MachineVersionFile",
  319. columns: table => new
  320. {
  321. Id = table.Column<int>(type: "int", nullable: false)
  322. .Annotation("SqlServer:Identity", "1, 1"),
  323. CreatedOn = table.Column<DateTime>(type: "datetime", nullable: false),
  324. UploadFileId = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false),
  325. Seq = table.Column<int>(type: "int", nullable: false),
  326. ChargeBoxId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
  327. },
  328. constraints: table =>
  329. {
  330. table.PrimaryKey("PK_dbo.MachineVersionFile", x => x.Id);
  331. table.ForeignKey(
  332. name: "FK_dbo.MachineVersionFile_dbo.UploadFile_UploadFileId",
  333. column: x => x.UploadFileId,
  334. principalTable: "UploadFile",
  335. principalColumn: "Id",
  336. onDelete: ReferentialAction.Cascade);
  337. });
  338. migrationBuilder.CreateIndex(
  339. name: "IX_ConnectorStatus",
  340. table: "ConnectorStatus",
  341. columns: new[] { "ChargeBoxId", "ConnectorId" },
  342. unique: true,
  343. filter: "[ChargeBoxId] IS NOT NULL");
  344. migrationBuilder.CreateIndex(
  345. name: "nci_wi_Machine_7CD4A9D1688F96F6967B2244A0666F62",
  346. table: "Machine",
  347. columns: new[] { "CustomerId", "ChargeBoxId" });
  348. migrationBuilder.CreateIndex(
  349. name: "nci_wi_MachineConfigurations_132E765C043BF95A2570D2EA019DD783",
  350. table: "MachineConfigurations",
  351. columns: new[] { "ConfigureName", "ConfigureSetting" });
  352. migrationBuilder.CreateIndex(
  353. name: "IX_MachineVersionFile_UploadFileId",
  354. table: "MachineVersionFile",
  355. column: "UploadFileId");
  356. migrationBuilder.CreateIndex(
  357. name: "nci_wi_ServerMessage_EC00C205420F6CB01974705B93F9507F",
  358. table: "ServerMessage",
  359. columns: new[] { "ReceivedOn", "UpdatedOn", "CreatedOn" });
  360. migrationBuilder.CreateIndex(
  361. name: "IX_TransactionRecord_StartTime",
  362. table: "TransactionRecord",
  363. columns: new[] { "CustomerId", "ConnectorId", "StartTime", "ChargeBoxId" });
  364. migrationBuilder.CreateIndex(
  365. name: "nci_wi_TransactionRecord_92D4DF08E7034102014AC91760F890FE",
  366. table: "TransactionRecord",
  367. columns: new[] { "CustomerId", "StopTransactionReportedOn", "StopTime" });
  368. }
  369. /// <inheritdoc />
  370. protected override void Down(MigrationBuilder migrationBuilder)
  371. {
  372. migrationBuilder.DropTable(
  373. name: "__MigrationHistory");
  374. migrationBuilder.DropTable(
  375. name: "ConnectorMeterValueRecord");
  376. migrationBuilder.DropTable(
  377. name: "ConnectorStatus");
  378. migrationBuilder.DropTable(
  379. name: "LoadingBalance");
  380. migrationBuilder.DropTable(
  381. name: "Machine");
  382. migrationBuilder.DropTable(
  383. name: "MachineConfigurations");
  384. migrationBuilder.DropTable(
  385. name: "MachineError");
  386. migrationBuilder.DropTable(
  387. name: "MachineOperateRecord");
  388. migrationBuilder.DropTable(
  389. name: "MachineVersionFile");
  390. migrationBuilder.DropTable(
  391. name: "OCMF");
  392. migrationBuilder.DropTable(
  393. name: "ServerMessage");
  394. migrationBuilder.DropTable(
  395. name: "TransactionRecord");
  396. migrationBuilder.DropTable(
  397. name: "Customer");
  398. migrationBuilder.DropTable(
  399. name: "UploadFile");
  400. }
  401. }
  402. }