电子药箱通讯服务端
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.

20221123081418_Init_Entities.Designer.cs 33KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. using Microsoft.EntityFrameworkCore.Migrations;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. using Rdh.ElectronicMedicineKit.EntityFrameworkCore;
  8. namespace Rdh.TestApi.Migrations
  9. {
  10. [DbContext(typeof(ApplicationDbContext))]
  11. [Migration("20221123081418_Init_Entities")]
  12. partial class Init_Entities
  13. {
  14. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("ProductVersion", "5.0.17");
  19. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.Drug", b =>
  20. {
  21. b.Property<string>("Id")
  22. .ValueGeneratedOnAdd()
  23. .HasColumnType("TEXT");
  24. b.Property<DateTime>("CreationTime")
  25. .HasColumnType("TEXT");
  26. b.Property<string>("Creator")
  27. .HasColumnType("TEXT");
  28. b.Property<DateTime?>("DeletionTime")
  29. .HasColumnType("TEXT");
  30. b.Property<string>("DrugBatchId")
  31. .IsRequired()
  32. .HasColumnType("TEXT");
  33. b.Property<string>("DrugBatchId1")
  34. .HasColumnType("TEXT");
  35. b.Property<bool>("IsDeleted")
  36. .ValueGeneratedOnAdd()
  37. .HasColumnType("INTEGER")
  38. .HasDefaultValue(false);
  39. b.Property<DateTime?>("LastModificationTime")
  40. .HasColumnType("TEXT");
  41. b.Property<string>("Modifier")
  42. .HasColumnType("TEXT");
  43. b.Property<string>("RFID")
  44. .HasColumnType("TEXT");
  45. b.HasKey("Id");
  46. b.HasIndex("DrugBatchId1");
  47. b.ToTable("Drugs");
  48. });
  49. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.DrugBatch", b =>
  50. {
  51. b.Property<string>("Id")
  52. .ValueGeneratedOnAdd()
  53. .HasColumnType("TEXT");
  54. b.Property<string>("BatchCode")
  55. .HasColumnType("TEXT");
  56. b.Property<DateTime>("CreationTime")
  57. .HasColumnType("TEXT");
  58. b.Property<string>("Creator")
  59. .HasColumnType("TEXT");
  60. b.Property<DateTime?>("DeletionTime")
  61. .HasColumnType("TEXT");
  62. b.Property<string>("DrugId")
  63. .IsRequired()
  64. .HasColumnType("TEXT");
  65. b.Property<DateTime>("ExpiryDate")
  66. .HasColumnType("TEXT");
  67. b.Property<bool>("IsDeleted")
  68. .ValueGeneratedOnAdd()
  69. .HasColumnType("INTEGER")
  70. .HasDefaultValue(false);
  71. b.Property<DateTime?>("LastModificationTime")
  72. .HasColumnType("TEXT");
  73. b.Property<DateTime?>("ManufactureDate")
  74. .HasColumnType("TEXT");
  75. b.Property<string>("Modifier")
  76. .HasColumnType("TEXT");
  77. b.HasKey("Id");
  78. b.HasIndex("DrugId");
  79. b.ToTable("DrugBatches");
  80. });
  81. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.DrugInfo", b =>
  82. {
  83. b.Property<string>("Id")
  84. .ValueGeneratedOnAdd()
  85. .HasColumnType("TEXT");
  86. b.Property<DateTime>("CreationTime")
  87. .HasColumnType("TEXT");
  88. b.Property<string>("Creator")
  89. .HasColumnType("TEXT");
  90. b.Property<DateTime?>("DeletionTime")
  91. .HasColumnType("TEXT");
  92. b.Property<bool>("IsDeleted")
  93. .ValueGeneratedOnAdd()
  94. .HasColumnType("INTEGER")
  95. .HasDefaultValue(false);
  96. b.Property<DateTime?>("LastModificationTime")
  97. .HasColumnType("TEXT");
  98. b.Property<string>("Manufacturer")
  99. .HasColumnType("TEXT");
  100. b.Property<string>("Modifier")
  101. .HasColumnType("TEXT");
  102. b.Property<string>("Name")
  103. .HasColumnType("TEXT");
  104. b.Property<string>("Specifications")
  105. .HasColumnType("TEXT");
  106. b.Property<string>("Unit")
  107. .HasColumnType("TEXT");
  108. b.HasKey("Id");
  109. b.ToTable("DrugInfos");
  110. });
  111. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.MedicineKit", b =>
  112. {
  113. b.Property<string>("Id")
  114. .ValueGeneratedOnAdd()
  115. .HasColumnType("TEXT");
  116. b.Property<string>("Code")
  117. .HasColumnType("TEXT");
  118. b.Property<DateTime>("CreationTime")
  119. .HasColumnType("TEXT");
  120. b.Property<string>("Creator")
  121. .HasColumnType("TEXT");
  122. b.Property<DateTime?>("DeletionTime")
  123. .HasColumnType("TEXT");
  124. b.Property<bool>("IsDeleted")
  125. .ValueGeneratedOnAdd()
  126. .HasColumnType("INTEGER")
  127. .HasDefaultValue(false);
  128. b.Property<int>("KitType")
  129. .HasColumnType("INTEGER");
  130. b.Property<DateTime?>("LastModificationTime")
  131. .HasColumnType("TEXT");
  132. b.Property<string>("Modifier")
  133. .HasColumnType("TEXT");
  134. b.HasKey("Id");
  135. b.ToTable("MedicineKits");
  136. b.HasData(
  137. new
  138. {
  139. Id = "ffb59ddd-8448-4ffb-97e7-ef60a0f7ad91",
  140. Code = "000",
  141. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  142. IsDeleted = false,
  143. KitType = 3
  144. });
  145. });
  146. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.MedicineKitConfig", b =>
  147. {
  148. b.Property<string>("Id")
  149. .ValueGeneratedOnAdd()
  150. .HasColumnType("TEXT");
  151. b.Property<DateTime>("CreationTime")
  152. .HasColumnType("TEXT");
  153. b.Property<string>("Creator")
  154. .HasColumnType("TEXT");
  155. b.Property<DateTime?>("DeletionTime")
  156. .HasColumnType("TEXT");
  157. b.Property<string>("DrugId")
  158. .IsRequired()
  159. .HasColumnType("TEXT");
  160. b.Property<bool>("IsDeleted")
  161. .ValueGeneratedOnAdd()
  162. .HasColumnType("INTEGER")
  163. .HasDefaultValue(false);
  164. b.Property<int>("KitType")
  165. .HasColumnType("INTEGER");
  166. b.Property<DateTime?>("LastModificationTime")
  167. .HasColumnType("TEXT");
  168. b.Property<int>("MaxAmount")
  169. .HasColumnType("INTEGER");
  170. b.Property<string>("Modifier")
  171. .HasColumnType("TEXT");
  172. b.Property<int?>("WarnAmount")
  173. .HasColumnType("INTEGER");
  174. b.HasKey("Id");
  175. b.HasIndex("DrugId");
  176. b.ToTable("MedicineKitConfigs");
  177. });
  178. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.MedicineKitLocation", b =>
  179. {
  180. b.Property<string>("Id")
  181. .ValueGeneratedOnAdd()
  182. .HasColumnType("TEXT");
  183. b.Property<DateTime>("CreationTime")
  184. .HasColumnType("TEXT");
  185. b.Property<string>("Creator")
  186. .HasColumnType("TEXT");
  187. b.Property<DateTime?>("DeletionTime")
  188. .HasColumnType("TEXT");
  189. b.Property<bool>("IsDeleted")
  190. .ValueGeneratedOnAdd()
  191. .HasColumnType("INTEGER")
  192. .HasDefaultValue(false);
  193. b.Property<DateTime?>("LastModificationTime")
  194. .HasColumnType("TEXT");
  195. b.Property<int>("Location")
  196. .HasColumnType("INTEGER");
  197. b.Property<string>("MedicineKitId")
  198. .IsRequired()
  199. .HasColumnType("TEXT");
  200. b.Property<string>("Modifier")
  201. .HasColumnType("TEXT");
  202. b.Property<string>("OperationRoomId")
  203. .IsRequired()
  204. .HasColumnType("TEXT");
  205. b.Property<string>("Unit")
  206. .HasColumnType("TEXT");
  207. b.HasKey("Id");
  208. b.HasIndex("MedicineKitId");
  209. b.HasIndex("OperationRoomId");
  210. b.ToTable("MedicineKitLocations");
  211. });
  212. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.MedicineKitStock", b =>
  213. {
  214. b.Property<string>("Id")
  215. .ValueGeneratedOnAdd()
  216. .HasColumnType("TEXT");
  217. b.Property<DateTime>("CreationTime")
  218. .HasColumnType("TEXT");
  219. b.Property<string>("Creator")
  220. .HasColumnType("TEXT");
  221. b.Property<DateTime?>("DeletionTime")
  222. .HasColumnType("TEXT");
  223. b.Property<string>("DrugId")
  224. .IsRequired()
  225. .HasColumnType("TEXT");
  226. b.Property<bool>("IsDeleted")
  227. .ValueGeneratedOnAdd()
  228. .HasColumnType("INTEGER")
  229. .HasDefaultValue(false);
  230. b.Property<DateTime?>("LastModificationTime")
  231. .HasColumnType("TEXT");
  232. b.Property<int>("MedicineKitDrugState")
  233. .HasColumnType("INTEGER");
  234. b.Property<string>("MedicineKitId")
  235. .IsRequired()
  236. .HasColumnType("TEXT");
  237. b.Property<string>("Modifier")
  238. .HasColumnType("TEXT");
  239. b.HasKey("Id");
  240. b.HasIndex("DrugId");
  241. b.HasIndex("MedicineKitId");
  242. b.ToTable("MedicineKitStocks");
  243. });
  244. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.Operation", b =>
  245. {
  246. b.Property<string>("Id")
  247. .ValueGeneratedOnAdd()
  248. .HasColumnType("TEXT");
  249. b.Property<DateTime>("CreationTime")
  250. .HasColumnType("TEXT");
  251. b.Property<string>("Creator")
  252. .HasColumnType("TEXT");
  253. b.Property<DateTime?>("DeletionTime")
  254. .HasColumnType("TEXT");
  255. b.Property<string>("Department")
  256. .HasColumnType("TEXT");
  257. b.Property<string>("DoctorId")
  258. .IsRequired()
  259. .HasColumnType("TEXT");
  260. b.Property<bool>("IsDeleted")
  261. .ValueGeneratedOnAdd()
  262. .HasColumnType("INTEGER")
  263. .HasDefaultValue(false);
  264. b.Property<DateTime?>("LastModificationTime")
  265. .HasColumnType("TEXT");
  266. b.Property<string>("Modifier")
  267. .HasColumnType("TEXT");
  268. b.Property<string>("Name")
  269. .HasColumnType("TEXT");
  270. b.Property<string>("PatientId")
  271. .IsRequired()
  272. .HasColumnType("TEXT");
  273. b.Property<int>("State")
  274. .HasColumnType("INTEGER");
  275. b.HasKey("Id");
  276. b.HasIndex("DoctorId");
  277. b.HasIndex("PatientId");
  278. b.ToTable("Operations");
  279. });
  280. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.OperationDrug", b =>
  281. {
  282. b.Property<string>("Id")
  283. .ValueGeneratedOnAdd()
  284. .HasColumnType("TEXT");
  285. b.Property<DateTime>("CreationTime")
  286. .HasColumnType("TEXT");
  287. b.Property<string>("Creator")
  288. .HasColumnType("TEXT");
  289. b.Property<DateTime?>("DeletionTime")
  290. .HasColumnType("TEXT");
  291. b.Property<string>("DrugId")
  292. .IsRequired()
  293. .HasColumnType("TEXT");
  294. b.Property<bool>("IsDeleted")
  295. .ValueGeneratedOnAdd()
  296. .HasColumnType("INTEGER")
  297. .HasDefaultValue(false);
  298. b.Property<DateTime?>("LastModificationTime")
  299. .HasColumnType("TEXT");
  300. b.Property<string>("Modifier")
  301. .HasColumnType("TEXT");
  302. b.Property<string>("OperationId")
  303. .IsRequired()
  304. .HasColumnType("TEXT");
  305. b.HasKey("Id");
  306. b.HasIndex("DrugId");
  307. b.HasIndex("OperationId");
  308. b.ToTable("OperationDrugs");
  309. });
  310. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.OperationRoom", b =>
  311. {
  312. b.Property<string>("Id")
  313. .ValueGeneratedOnAdd()
  314. .HasColumnType("TEXT");
  315. b.Property<string>("BaseStationCode")
  316. .HasColumnType("TEXT");
  317. b.Property<DateTime>("CreationTime")
  318. .HasColumnType("TEXT");
  319. b.Property<string>("Creator")
  320. .HasColumnType("TEXT");
  321. b.Property<DateTime?>("DeletionTime")
  322. .HasColumnType("TEXT");
  323. b.Property<bool>("IsDeleted")
  324. .ValueGeneratedOnAdd()
  325. .HasColumnType("INTEGER")
  326. .HasDefaultValue(false);
  327. b.Property<DateTime?>("LastModificationTime")
  328. .HasColumnType("TEXT");
  329. b.Property<string>("Modifier")
  330. .HasColumnType("TEXT");
  331. b.Property<string>("Name")
  332. .HasColumnType("TEXT");
  333. b.HasKey("Id");
  334. b.ToTable("OperationRooms");
  335. b.HasData(
  336. new
  337. {
  338. Id = "c1822c7e-154d-4a0d-b038-b3f3d02c3314",
  339. BaseStationCode = "00",
  340. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  341. IsDeleted = false,
  342. Name = "手术间1"
  343. },
  344. new
  345. {
  346. Id = "0ae49e9f-bf4a-4315-aa38-32333c361835",
  347. BaseStationCode = "01",
  348. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  349. IsDeleted = false,
  350. Name = "手术间2"
  351. },
  352. new
  353. {
  354. Id = "11f05cb6-98a4-4001-a8c8-724c95c50411",
  355. BaseStationCode = "02",
  356. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  357. IsDeleted = false,
  358. Name = "手术间3"
  359. });
  360. });
  361. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.Patient", b =>
  362. {
  363. b.Property<string>("Id")
  364. .ValueGeneratedOnAdd()
  365. .HasColumnType("TEXT");
  366. b.Property<DateTime>("BirthDay")
  367. .HasColumnType("TEXT");
  368. b.Property<DateTime>("CreationTime")
  369. .HasColumnType("TEXT");
  370. b.Property<string>("Creator")
  371. .HasColumnType("TEXT");
  372. b.Property<DateTime?>("DeletionTime")
  373. .HasColumnType("TEXT");
  374. b.Property<int>("Gender")
  375. .HasColumnType("INTEGER");
  376. b.Property<bool>("IsDeleted")
  377. .ValueGeneratedOnAdd()
  378. .HasColumnType("INTEGER")
  379. .HasDefaultValue(false);
  380. b.Property<DateTime?>("LastModificationTime")
  381. .HasColumnType("TEXT");
  382. b.Property<string>("Modifier")
  383. .HasColumnType("TEXT");
  384. b.Property<string>("Name")
  385. .HasColumnType("TEXT");
  386. b.Property<string>("PatientNo")
  387. .HasColumnType("TEXT");
  388. b.HasKey("Id");
  389. b.ToTable("Patients");
  390. b.HasData(
  391. new
  392. {
  393. Id = "04b9b64b-ec22-4d16-b83c-3e6f016e686e",
  394. BirthDay = new DateTime(1995, 12, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  395. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  396. Gender = 0,
  397. IsDeleted = false,
  398. Name = "陶竹生",
  399. PatientNo = "10232853"
  400. },
  401. new
  402. {
  403. Id = "2daa455d-d1f7-4a38-a6c4-ced217999377",
  404. BirthDay = new DateTime(1987, 12, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  405. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  406. Gender = 1,
  407. IsDeleted = false,
  408. Name = "郦夏芳",
  409. PatientNo = "10229717"
  410. },
  411. new
  412. {
  413. Id = "577d0c49-b977-49bb-b26e-d52e3858324d",
  414. BirthDay = new DateTime(1977, 12, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  415. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  416. Gender = 1,
  417. IsDeleted = false,
  418. Name = "雷胜蓝",
  419. PatientNo = "10251888"
  420. },
  421. new
  422. {
  423. Id = "437dd193-947e-49d2-a8cf-61eced8f0699",
  424. BirthDay = new DateTime(1996, 12, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  425. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  426. Gender = 0,
  427. IsDeleted = false,
  428. Name = "张和初",
  429. PatientNo = "10222577"
  430. },
  431. new
  432. {
  433. Id = "8adf25c9-fde4-4af9-a169-44564fb319dd",
  434. BirthDay = new DateTime(1985, 12, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  435. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  436. Gender = 1,
  437. IsDeleted = false,
  438. Name = "王美华",
  439. PatientNo = "10221218"
  440. },
  441. new
  442. {
  443. Id = "ea8d4c8a-bb20-4f70-95ac-d71efd5305a4",
  444. BirthDay = new DateTime(1975, 12, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  445. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  446. Gender = 0,
  447. IsDeleted = false,
  448. Name = "谷乐平",
  449. PatientNo = "10228969"
  450. },
  451. new
  452. {
  453. Id = "c18c3bc5-3895-418a-8f73-1e537678e7fa",
  454. BirthDay = new DateTime(1999, 12, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  455. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  456. Gender = 1,
  457. IsDeleted = false,
  458. Name = "尤梅",
  459. PatientNo = "10229521"
  460. },
  461. new
  462. {
  463. Id = "cc476616-31c5-4b99-bbf6-8e306678fb0d",
  464. BirthDay = new DateTime(1965, 12, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  465. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  466. Gender = 0,
  467. IsDeleted = false,
  468. Name = "骆元方",
  469. PatientNo = "10228510"
  470. });
  471. });
  472. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.User", b =>
  473. {
  474. b.Property<string>("Id")
  475. .ValueGeneratedOnAdd()
  476. .HasColumnType("TEXT");
  477. b.Property<string>("Code")
  478. .HasColumnType("TEXT");
  479. b.Property<DateTime>("CreationTime")
  480. .HasColumnType("TEXT");
  481. b.Property<string>("Creator")
  482. .HasColumnType("TEXT");
  483. b.Property<DateTime?>("DeletionTime")
  484. .HasColumnType("TEXT");
  485. b.Property<bool>("IsDeleted")
  486. .ValueGeneratedOnAdd()
  487. .HasColumnType("INTEGER")
  488. .HasDefaultValue(false);
  489. b.Property<DateTime?>("LastModificationTime")
  490. .HasColumnType("TEXT");
  491. b.Property<string>("Modifier")
  492. .HasColumnType("TEXT");
  493. b.Property<string>("Name")
  494. .HasColumnType("TEXT");
  495. b.HasKey("Id");
  496. b.ToTable("Users");
  497. b.HasData(
  498. new
  499. {
  500. Id = "8fdbdac2-1903-4f1f-8ed5-a51079c77cb2",
  501. Code = "a3ce8445",
  502. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  503. IsDeleted = false,
  504. Name = "李浩"
  505. },
  506. new
  507. {
  508. Id = "ccac22d7-eb79-49ce-bf99-d47204812d64",
  509. Code = "bb332e5a",
  510. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  511. IsDeleted = false,
  512. Name = "罗岩"
  513. },
  514. new
  515. {
  516. Id = "c57d60fc-8738-4cf4-b477-60614f03b959",
  517. Code = "bb332e52",
  518. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  519. IsDeleted = false,
  520. Name = "刘强与"
  521. },
  522. new
  523. {
  524. Id = "e3c60e42-efe1-45c1-9608-831f5f1cf721",
  525. Code = "bb332e53",
  526. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  527. IsDeleted = false,
  528. Name = "文芳"
  529. },
  530. new
  531. {
  532. Id = "bdca9d5d-dda0-4a04-8190-11ecae578b15",
  533. Code = "bb332e54",
  534. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  535. IsDeleted = false,
  536. Name = "何颖"
  537. },
  538. new
  539. {
  540. Id = "4d997ded-50c3-4e66-b782-fe661313da4e",
  541. Code = "bb332e55",
  542. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  543. IsDeleted = false,
  544. Name = "张向丽"
  545. },
  546. new
  547. {
  548. Id = "14360b6a-c7ea-4081-a613-dd8d193911be",
  549. Code = "bb332e56",
  550. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  551. IsDeleted = false,
  552. Name = "汪玲"
  553. },
  554. new
  555. {
  556. Id = "a5b47d2d-ec05-4c04-a8bb-a8e11c9acdea",
  557. Code = "bb332e57",
  558. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  559. IsDeleted = false,
  560. Name = "李长风"
  561. },
  562. new
  563. {
  564. Id = "b4b140fc-0723-4b06-a416-6a2c13b1cf9c",
  565. Code = "bb332e58",
  566. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  567. IsDeleted = false,
  568. Name = "吴爱国"
  569. },
  570. new
  571. {
  572. Id = "0b89567d-29ac-464a-8989-53ce9590b1ed",
  573. Code = "bb332e59",
  574. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  575. IsDeleted = false,
  576. Name = "白丽"
  577. },
  578. new
  579. {
  580. Id = "e027dc86-d1cc-48dd-9d54-d516719336fd",
  581. Code = "bb332f54",
  582. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  583. IsDeleted = false,
  584. Name = "刘思雨"
  585. },
  586. new
  587. {
  588. Id = "d796d486-ecec-41ac-9313-8b2dcbb081e2",
  589. Code = "bb332e51",
  590. CreationTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
  591. IsDeleted = false,
  592. Name = "张宇"
  593. });
  594. });
  595. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.Drug", b =>
  596. {
  597. b.HasOne("Rdh.ElectronicMedicineKit.Models.DrugBatch", "DrugBatch")
  598. .WithMany()
  599. .HasForeignKey("DrugBatchId1");
  600. b.Navigation("DrugBatch");
  601. });
  602. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.DrugBatch", b =>
  603. {
  604. b.HasOne("Rdh.ElectronicMedicineKit.Models.DrugInfo", "Drug")
  605. .WithMany("DrugBatches")
  606. .HasForeignKey("DrugId")
  607. .OnDelete(DeleteBehavior.Cascade)
  608. .IsRequired();
  609. b.Navigation("Drug");
  610. });
  611. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.MedicineKitConfig", b =>
  612. {
  613. b.HasOne("Rdh.ElectronicMedicineKit.Models.DrugInfo", "Drug")
  614. .WithMany()
  615. .HasForeignKey("DrugId")
  616. .OnDelete(DeleteBehavior.Cascade)
  617. .IsRequired();
  618. b.Navigation("Drug");
  619. });
  620. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.MedicineKitLocation", b =>
  621. {
  622. b.HasOne("Rdh.ElectronicMedicineKit.Models.MedicineKit", "MedicineKit")
  623. .WithMany("Locations")
  624. .HasForeignKey("MedicineKitId")
  625. .OnDelete(DeleteBehavior.Cascade)
  626. .IsRequired();
  627. b.HasOne("Rdh.ElectronicMedicineKit.Models.OperationRoom", "OperationRoom")
  628. .WithMany()
  629. .HasForeignKey("OperationRoomId")
  630. .OnDelete(DeleteBehavior.Cascade)
  631. .IsRequired();
  632. b.Navigation("MedicineKit");
  633. b.Navigation("OperationRoom");
  634. });
  635. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.MedicineKitStock", b =>
  636. {
  637. b.HasOne("Rdh.ElectronicMedicineKit.Models.Drug", "Drug")
  638. .WithMany()
  639. .HasForeignKey("DrugId")
  640. .OnDelete(DeleteBehavior.Cascade)
  641. .IsRequired();
  642. b.HasOne("Rdh.ElectronicMedicineKit.Models.MedicineKit", "MedicineKit")
  643. .WithMany("Stocks")
  644. .HasForeignKey("MedicineKitId")
  645. .OnDelete(DeleteBehavior.Cascade)
  646. .IsRequired();
  647. b.Navigation("Drug");
  648. b.Navigation("MedicineKit");
  649. });
  650. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.Operation", b =>
  651. {
  652. b.HasOne("Rdh.ElectronicMedicineKit.Models.User", "Doctor")
  653. .WithMany()
  654. .HasForeignKey("DoctorId")
  655. .OnDelete(DeleteBehavior.Cascade)
  656. .IsRequired();
  657. b.HasOne("Rdh.ElectronicMedicineKit.Models.Patient", "Patient")
  658. .WithMany()
  659. .HasForeignKey("PatientId")
  660. .OnDelete(DeleteBehavior.Cascade)
  661. .IsRequired();
  662. b.Navigation("Doctor");
  663. b.Navigation("Patient");
  664. });
  665. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.OperationDrug", b =>
  666. {
  667. b.HasOne("Rdh.ElectronicMedicineKit.Models.Drug", "Drug")
  668. .WithMany()
  669. .HasForeignKey("DrugId")
  670. .OnDelete(DeleteBehavior.Cascade)
  671. .IsRequired();
  672. b.HasOne("Rdh.ElectronicMedicineKit.Models.Operation", "Operation")
  673. .WithMany("Drugs")
  674. .HasForeignKey("OperationId")
  675. .OnDelete(DeleteBehavior.Cascade)
  676. .IsRequired();
  677. b.Navigation("Drug");
  678. b.Navigation("Operation");
  679. });
  680. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.DrugInfo", b =>
  681. {
  682. b.Navigation("DrugBatches");
  683. });
  684. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.MedicineKit", b =>
  685. {
  686. b.Navigation("Locations");
  687. b.Navigation("Stocks");
  688. });
  689. modelBuilder.Entity("Rdh.ElectronicMedicineKit.Models.Operation", b =>
  690. {
  691. b.Navigation("Drugs");
  692. });
  693. #pragma warning restore 612, 618
  694. }
  695. }
  696. }