20241019092706_20241019.Designer.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  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 Repository;
  8. namespace Repository.Migrations
  9. {
  10. [DbContext(typeof(TeamDataContext))]
  11. [Migration("20241019092706_20241019")]
  12. partial class _20241019
  13. {
  14. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("ProductVersion", "3.1.32");
  19. modelBuilder.Entity("Repository.DeviceStatus", b =>
  20. {
  21. b.Property<Guid>("Id")
  22. .ValueGeneratedOnAdd()
  23. .HasColumnType("TEXT");
  24. b.Property<double>("AlarmTime")
  25. .HasColumnType("REAL");
  26. b.Property<DateTime>("DateDS")
  27. .HasColumnType("TEXT");
  28. b.HasKey("Id");
  29. b.ToTable("DeviceStatus");
  30. });
  31. modelBuilder.Entity("Repository.Entiies.Account", b =>
  32. {
  33. b.Property<Guid>("Id")
  34. .ValueGeneratedOnAdd()
  35. .HasColumnType("TEXT");
  36. b.Property<string>("AccountID")
  37. .HasColumnType("TEXT");
  38. b.Property<string>("ChangePassword")
  39. .HasColumnType("TEXT");
  40. b.HasKey("Id");
  41. b.ToTable("Accounts");
  42. });
  43. modelBuilder.Entity("Repository.Entiies.AllNumber", b =>
  44. {
  45. b.Property<Guid>("Id")
  46. .ValueGeneratedOnAdd()
  47. .HasColumnType("TEXT");
  48. b.Property<DateTime>("DateA")
  49. .HasColumnType("TEXT");
  50. b.Property<double>("ErrA")
  51. .HasColumnType("REAL");
  52. b.Property<double>("NgA")
  53. .HasColumnType("REAL");
  54. b.Property<double>("OkA")
  55. .HasColumnType("REAL");
  56. b.Property<double>("PlanA")
  57. .HasColumnType("REAL");
  58. b.Property<double>("RealityA")
  59. .HasColumnType("REAL");
  60. b.HasKey("Id");
  61. b.ToTable("AllNumbers");
  62. });
  63. modelBuilder.Entity("Repository.Entiies.House", b =>
  64. {
  65. b.Property<Guid>("Id")
  66. .ValueGeneratedOnAdd()
  67. .HasColumnType("TEXT");
  68. b.Property<DateTime>("DateH")
  69. .HasColumnType("TEXT");
  70. b.Property<string>("LackH")
  71. .HasColumnType("TEXT");
  72. b.Property<string>("TotalH")
  73. .HasColumnType("TEXT");
  74. b.Property<string>("UsedH")
  75. .HasColumnType("TEXT");
  76. b.HasKey("Id");
  77. b.ToTable("Houses");
  78. });
  79. modelBuilder.Entity("Repository.Entiies.Information", b =>
  80. {
  81. b.Property<Guid>("Id")
  82. .ValueGeneratedOnAdd()
  83. .HasColumnType("TEXT");
  84. b.Property<DateTime>("CreateTime")
  85. .HasColumnType("TEXT");
  86. b.Property<string>("ItemCode")
  87. .HasColumnType("TEXT");
  88. b.Property<string>("OperatorCode")
  89. .HasColumnType("TEXT");
  90. b.Property<string>("OrderNo")
  91. .HasColumnType("TEXT");
  92. b.Property<string>("ProCode")
  93. .HasColumnType("TEXT");
  94. b.Property<string>("ProNo")
  95. .HasColumnType("TEXT");
  96. b.Property<string>("ProType")
  97. .HasColumnType("TEXT");
  98. b.Property<double>("SpendTime")
  99. .HasColumnType("REAL");
  100. b.Property<string>("TestResult")
  101. .HasColumnType("TEXT");
  102. b.HasKey("Id");
  103. b.ToTable("Informations");
  104. });
  105. modelBuilder.Entity("Repository.Entiies.OutofWork", b =>
  106. {
  107. b.Property<Guid>("Id")
  108. .ValueGeneratedOnAdd()
  109. .HasColumnType("TEXT");
  110. b.Property<int>("Absenteeism")
  111. .HasColumnType("INTEGER");
  112. b.Property<int>("Actual")
  113. .HasColumnType("INTEGER");
  114. b.Property<DateTime>("DateOutWork")
  115. .HasColumnType("TEXT");
  116. b.Property<int>("FallIll")
  117. .HasColumnType("INTEGER");
  118. b.HasKey("Id");
  119. b.ToTable("OutofWorks");
  120. });
  121. modelBuilder.Entity("Repository.Entiies.ParamLog", b =>
  122. {
  123. b.Property<Guid>("Id")
  124. .ValueGeneratedOnAdd()
  125. .HasColumnType("TEXT");
  126. b.Property<string>("Content")
  127. .HasColumnType("TEXT");
  128. b.Property<DateTime>("Occured")
  129. .HasColumnType("TEXT");
  130. b.Property<int>("OperateAction")
  131. .HasColumnType("INTEGER");
  132. b.Property<string>("OperateObject")
  133. .HasColumnType("TEXT");
  134. b.Property<string>("UserName")
  135. .HasColumnType("TEXT");
  136. b.HasKey("Id");
  137. b.ToTable("ParamLogs");
  138. });
  139. modelBuilder.Entity("Repository.Entiies.Person", b =>
  140. {
  141. b.Property<Guid>("Id")
  142. .ValueGeneratedOnAdd()
  143. .HasColumnType("TEXT");
  144. b.Property<string>("EmployeeName")
  145. .HasColumnType("TEXT");
  146. b.Property<string>("ProProcess")
  147. .HasColumnType("TEXT");
  148. b.Property<string>("WorkTime")
  149. .HasColumnType("TEXT");
  150. b.Property<int>("Yield")
  151. .HasColumnType("INTEGER");
  152. b.HasKey("Id");
  153. b.ToTable("Persons");
  154. });
  155. modelBuilder.Entity("Repository.Entiies.ProStatus", b =>
  156. {
  157. b.Property<Guid>("Id")
  158. .ValueGeneratedOnAdd()
  159. .HasColumnType("TEXT");
  160. b.Property<DateTime>("DateS")
  161. .HasColumnType("TEXT");
  162. b.Property<int>("ErrS")
  163. .HasColumnType("INTEGER");
  164. b.Property<int>("NgS")
  165. .HasColumnType("INTEGER");
  166. b.Property<int>("OkS")
  167. .HasColumnType("INTEGER");
  168. b.Property<string>("OrdNoS")
  169. .HasColumnType("TEXT");
  170. b.Property<double>("PlanS")
  171. .HasColumnType("REAL");
  172. b.Property<int>("RealityS")
  173. .HasColumnType("INTEGER");
  174. b.HasKey("Id");
  175. b.ToTable("ProStatus");
  176. });
  177. modelBuilder.Entity("Repository.Entiies.Quality", b =>
  178. {
  179. b.Property<Guid>("Id")
  180. .ValueGeneratedOnAdd()
  181. .HasColumnType("TEXT");
  182. b.Property<DateTime>("DateQuality")
  183. .HasColumnType("TEXT");
  184. b.Property<int>("Q1")
  185. .HasColumnType("INTEGER");
  186. b.Property<int>("Q10")
  187. .HasColumnType("INTEGER");
  188. b.Property<int>("Q11")
  189. .HasColumnType("INTEGER");
  190. b.Property<int>("Q12")
  191. .HasColumnType("INTEGER");
  192. b.Property<int>("Q13")
  193. .HasColumnType("INTEGER");
  194. b.Property<int>("Q14")
  195. .HasColumnType("INTEGER");
  196. b.Property<int>("Q15")
  197. .HasColumnType("INTEGER");
  198. b.Property<int>("Q16")
  199. .HasColumnType("INTEGER");
  200. b.Property<int>("Q17")
  201. .HasColumnType("INTEGER");
  202. b.Property<int>("Q18")
  203. .HasColumnType("INTEGER");
  204. b.Property<int>("Q19")
  205. .HasColumnType("INTEGER");
  206. b.Property<int>("Q2")
  207. .HasColumnType("INTEGER");
  208. b.Property<int>("Q20")
  209. .HasColumnType("INTEGER");
  210. b.Property<int>("Q21")
  211. .HasColumnType("INTEGER");
  212. b.Property<int>("Q22")
  213. .HasColumnType("INTEGER");
  214. b.Property<int>("Q23")
  215. .HasColumnType("INTEGER");
  216. b.Property<int>("Q24")
  217. .HasColumnType("INTEGER");
  218. b.Property<int>("Q25")
  219. .HasColumnType("INTEGER");
  220. b.Property<int>("Q26")
  221. .HasColumnType("INTEGER");
  222. b.Property<int>("Q27")
  223. .HasColumnType("INTEGER");
  224. b.Property<int>("Q28")
  225. .HasColumnType("INTEGER");
  226. b.Property<int>("Q29")
  227. .HasColumnType("INTEGER");
  228. b.Property<int>("Q3")
  229. .HasColumnType("INTEGER");
  230. b.Property<int>("Q30")
  231. .HasColumnType("INTEGER");
  232. b.Property<int>("Q4")
  233. .HasColumnType("INTEGER");
  234. b.Property<int>("Q5")
  235. .HasColumnType("INTEGER");
  236. b.Property<int>("Q6")
  237. .HasColumnType("INTEGER");
  238. b.Property<int>("Q7")
  239. .HasColumnType("INTEGER");
  240. b.Property<int>("Q8")
  241. .HasColumnType("INTEGER");
  242. b.Property<int>("Q9")
  243. .HasColumnType("INTEGER");
  244. b.Property<string>("QuPCode")
  245. .HasColumnType("TEXT");
  246. b.HasKey("Id");
  247. b.ToTable("Qualitys");
  248. });
  249. modelBuilder.Entity("Repository.Entiies.StatisticsLog", b =>
  250. {
  251. b.Property<Guid>("Id")
  252. .ValueGeneratedOnAdd()
  253. .HasColumnType("TEXT");
  254. b.Property<int>("RequestCode")
  255. .HasColumnType("INTEGER");
  256. b.Property<int>("RequstType")
  257. .HasColumnType("INTEGER");
  258. b.Property<DateTime>("Timestamp")
  259. .HasColumnType("TEXT");
  260. b.Property<int>("TraceState")
  261. .HasColumnType("INTEGER");
  262. b.HasKey("Id");
  263. b.ToTable("StatisticsLogs");
  264. });
  265. modelBuilder.Entity("Repository.Entiies.TestResult", b =>
  266. {
  267. b.Property<Guid>("Id")
  268. .ValueGeneratedOnAdd()
  269. .HasColumnType("TEXT");
  270. b.Property<string>("Barcode")
  271. .HasColumnType("TEXT");
  272. b.Property<DateTime>("Datetime")
  273. .HasColumnType("TEXT");
  274. b.Property<int>("Juge")
  275. .HasColumnType("INTEGER");
  276. b.Property<double>("Result")
  277. .HasColumnType("REAL");
  278. b.HasKey("Id");
  279. b.ToTable("ProductResult");
  280. });
  281. modelBuilder.Entity("Repository.LocalFile2Db", b =>
  282. {
  283. b.Property<Guid>("Id")
  284. .ValueGeneratedOnAdd()
  285. .HasColumnType("TEXT");
  286. b.Property<string>("Count")
  287. .HasColumnType("TEXT");
  288. b.Property<string>("MaterialName")
  289. .HasColumnType("TEXT");
  290. b.Property<string>("MaterialNum")
  291. .HasColumnType("TEXT");
  292. b.Property<string>("Num")
  293. .HasColumnType("TEXT");
  294. b.Property<Guid?>("SopFileID")
  295. .HasColumnType("TEXT");
  296. b.Property<string>("Unit")
  297. .HasColumnType("TEXT");
  298. b.HasKey("Id");
  299. b.HasIndex("SopFileID");
  300. b.ToTable("LocalFile2");
  301. });
  302. modelBuilder.Entity("Repository.LocalFile3Db", b =>
  303. {
  304. b.Property<Guid>("Id")
  305. .ValueGeneratedOnAdd()
  306. .HasColumnType("TEXT");
  307. b.Property<string>("After")
  308. .HasColumnType("TEXT");
  309. b.Property<string>("Before")
  310. .HasColumnType("TEXT");
  311. b.Property<string>("Equipment")
  312. .HasColumnType("TEXT");
  313. b.Property<string>("Inn")
  314. .HasColumnType("TEXT");
  315. b.Property<string>("LookOut")
  316. .HasColumnType("TEXT");
  317. b.Property<Guid?>("SopFileID")
  318. .HasColumnType("TEXT");
  319. b.HasKey("Id");
  320. b.HasIndex("SopFileID");
  321. b.ToTable("LocalFile3");
  322. });
  323. modelBuilder.Entity("Repository.LocalFileDb", b =>
  324. {
  325. b.Property<Guid>("Id")
  326. .ValueGeneratedOnAdd()
  327. .HasColumnType("TEXT");
  328. b.Property<string>("Date")
  329. .HasColumnType("TEXT");
  330. b.Property<string>("Edition")
  331. .HasColumnType("TEXT");
  332. b.Property<string>("FileNum")
  333. .HasColumnType("TEXT");
  334. b.Property<string>("Name")
  335. .HasColumnType("TEXT");
  336. b.Property<string>("People")
  337. .HasColumnType("TEXT");
  338. b.Property<string>("Process")
  339. .HasColumnType("TEXT");
  340. b.Property<Guid?>("SopFileID")
  341. .HasColumnType("TEXT");
  342. b.Property<string>("Type")
  343. .HasColumnType("TEXT");
  344. b.Property<string>("WorkTime")
  345. .HasColumnType("TEXT");
  346. b.HasKey("Id");
  347. b.HasIndex("SopFileID");
  348. b.ToTable("LocalFile");
  349. });
  350. modelBuilder.Entity("Repository.SopFile", b =>
  351. {
  352. b.Property<Guid>("ID")
  353. .ValueGeneratedOnAdd()
  354. .HasColumnType("TEXT");
  355. b.Property<string>("ProductName")
  356. .HasColumnType("TEXT");
  357. b.HasKey("ID");
  358. b.ToTable("SopFiles");
  359. });
  360. modelBuilder.Entity("Repository.LocalFile2Db", b =>
  361. {
  362. b.HasOne("Repository.SopFile", "SopFile")
  363. .WithMany("LocalFile2Db")
  364. .HasForeignKey("SopFileID");
  365. });
  366. modelBuilder.Entity("Repository.LocalFile3Db", b =>
  367. {
  368. b.HasOne("Repository.SopFile", "SopFile")
  369. .WithMany("LocalFile3Db")
  370. .HasForeignKey("SopFileID");
  371. });
  372. modelBuilder.Entity("Repository.LocalFileDb", b =>
  373. {
  374. b.HasOne("Repository.SopFile", "SopFile")
  375. .WithMany("LocalFileDb")
  376. .HasForeignKey("SopFileID");
  377. });
  378. #pragma warning restore 612, 618
  379. }
  380. }
  381. }