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

ApplicationDbContextModelSnapshot.cs 33KB

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