20241218054316_2024-12-18-1.Designer.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  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("20241218054316_2024-12-18-1")]
  12. partial class _202412181
  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.Property<string>("WorkDev")
  103. .HasColumnType("TEXT");
  104. b.HasKey("Id");
  105. b.ToTable("Informations");
  106. });
  107. modelBuilder.Entity("Repository.Entiies.OutofWork", b =>
  108. {
  109. b.Property<Guid>("Id")
  110. .ValueGeneratedOnAdd()
  111. .HasColumnType("TEXT");
  112. b.Property<int>("Absenteeism")
  113. .HasColumnType("INTEGER");
  114. b.Property<int>("Actual")
  115. .HasColumnType("INTEGER");
  116. b.Property<DateTime>("DateOutWork")
  117. .HasColumnType("TEXT");
  118. b.Property<int>("FallIll")
  119. .HasColumnType("INTEGER");
  120. b.HasKey("Id");
  121. b.ToTable("OutofWorks");
  122. });
  123. modelBuilder.Entity("Repository.Entiies.ParamLog", b =>
  124. {
  125. b.Property<Guid>("Id")
  126. .ValueGeneratedOnAdd()
  127. .HasColumnType("TEXT");
  128. b.Property<string>("Content")
  129. .HasColumnType("TEXT");
  130. b.Property<DateTime>("Occured")
  131. .HasColumnType("TEXT");
  132. b.Property<int>("OperateAction")
  133. .HasColumnType("INTEGER");
  134. b.Property<string>("OperateObject")
  135. .HasColumnType("TEXT");
  136. b.Property<string>("UserName")
  137. .HasColumnType("TEXT");
  138. b.HasKey("Id");
  139. b.ToTable("ParamLogs");
  140. });
  141. modelBuilder.Entity("Repository.Entiies.Person", b =>
  142. {
  143. b.Property<Guid>("Id")
  144. .ValueGeneratedOnAdd()
  145. .HasColumnType("TEXT");
  146. b.Property<string>("EmployeeName")
  147. .HasColumnType("TEXT");
  148. b.Property<string>("ProProcess")
  149. .HasColumnType("TEXT");
  150. b.Property<string>("WorkTime")
  151. .HasColumnType("TEXT");
  152. b.Property<int>("Yield")
  153. .HasColumnType("INTEGER");
  154. b.HasKey("Id");
  155. b.ToTable("Persons");
  156. });
  157. modelBuilder.Entity("Repository.Entiies.ProStatus", b =>
  158. {
  159. b.Property<Guid>("Id")
  160. .ValueGeneratedOnAdd()
  161. .HasColumnType("TEXT");
  162. b.Property<DateTime>("DateS")
  163. .HasColumnType("TEXT");
  164. b.Property<int>("ErrS")
  165. .HasColumnType("INTEGER");
  166. b.Property<int>("NgS")
  167. .HasColumnType("INTEGER");
  168. b.Property<int>("OkS")
  169. .HasColumnType("INTEGER");
  170. b.Property<string>("OrdNoS")
  171. .HasColumnType("TEXT");
  172. b.Property<double>("PlanS")
  173. .HasColumnType("REAL");
  174. b.Property<int>("RealityS")
  175. .HasColumnType("INTEGER");
  176. b.HasKey("Id");
  177. b.ToTable("ProStatus");
  178. });
  179. modelBuilder.Entity("Repository.Entiies.Quality", b =>
  180. {
  181. b.Property<Guid>("Id")
  182. .ValueGeneratedOnAdd()
  183. .HasColumnType("TEXT");
  184. b.Property<DateTime>("DateQuality")
  185. .HasColumnType("TEXT");
  186. b.Property<string>("ProTName")
  187. .HasColumnType("TEXT");
  188. b.Property<int>("Q1")
  189. .HasColumnType("INTEGER");
  190. b.Property<int>("Q10")
  191. .HasColumnType("INTEGER");
  192. b.Property<int>("Q11")
  193. .HasColumnType("INTEGER");
  194. b.Property<int>("Q12")
  195. .HasColumnType("INTEGER");
  196. b.Property<int>("Q13")
  197. .HasColumnType("INTEGER");
  198. b.Property<int>("Q14")
  199. .HasColumnType("INTEGER");
  200. b.Property<int>("Q15")
  201. .HasColumnType("INTEGER");
  202. b.Property<int>("Q16")
  203. .HasColumnType("INTEGER");
  204. b.Property<int>("Q17")
  205. .HasColumnType("INTEGER");
  206. b.Property<int>("Q18")
  207. .HasColumnType("INTEGER");
  208. b.Property<int>("Q19")
  209. .HasColumnType("INTEGER");
  210. b.Property<int>("Q2")
  211. .HasColumnType("INTEGER");
  212. b.Property<int>("Q20")
  213. .HasColumnType("INTEGER");
  214. b.Property<int>("Q21")
  215. .HasColumnType("INTEGER");
  216. b.Property<int>("Q22")
  217. .HasColumnType("INTEGER");
  218. b.Property<int>("Q23")
  219. .HasColumnType("INTEGER");
  220. b.Property<int>("Q24")
  221. .HasColumnType("INTEGER");
  222. b.Property<int>("Q25")
  223. .HasColumnType("INTEGER");
  224. b.Property<int>("Q26")
  225. .HasColumnType("INTEGER");
  226. b.Property<int>("Q27")
  227. .HasColumnType("INTEGER");
  228. b.Property<int>("Q28")
  229. .HasColumnType("INTEGER");
  230. b.Property<int>("Q29")
  231. .HasColumnType("INTEGER");
  232. b.Property<int>("Q3")
  233. .HasColumnType("INTEGER");
  234. b.Property<int>("Q30")
  235. .HasColumnType("INTEGER");
  236. b.Property<int>("Q4")
  237. .HasColumnType("INTEGER");
  238. b.Property<int>("Q5")
  239. .HasColumnType("INTEGER");
  240. b.Property<int>("Q6")
  241. .HasColumnType("INTEGER");
  242. b.Property<int>("Q7")
  243. .HasColumnType("INTEGER");
  244. b.Property<int>("Q8")
  245. .HasColumnType("INTEGER");
  246. b.Property<int>("Q9")
  247. .HasColumnType("INTEGER");
  248. b.Property<string>("QuPCode")
  249. .HasColumnType("TEXT");
  250. b.HasKey("Id");
  251. b.ToTable("Qualitys");
  252. });
  253. modelBuilder.Entity("Repository.Entiies.StatisticsLog", b =>
  254. {
  255. b.Property<Guid>("Id")
  256. .ValueGeneratedOnAdd()
  257. .HasColumnType("TEXT");
  258. b.Property<int>("RequestCode")
  259. .HasColumnType("INTEGER");
  260. b.Property<int>("RequstType")
  261. .HasColumnType("INTEGER");
  262. b.Property<DateTime>("Timestamp")
  263. .HasColumnType("TEXT");
  264. b.Property<int>("TraceState")
  265. .HasColumnType("INTEGER");
  266. b.HasKey("Id");
  267. b.ToTable("StatisticsLogs");
  268. });
  269. modelBuilder.Entity("Repository.Entiies.TestResult", b =>
  270. {
  271. b.Property<Guid>("Id")
  272. .ValueGeneratedOnAdd()
  273. .HasColumnType("TEXT");
  274. b.Property<string>("Barcode")
  275. .HasColumnType("TEXT");
  276. b.Property<DateTime>("Datetime")
  277. .HasColumnType("TEXT");
  278. b.Property<int>("Juge")
  279. .HasColumnType("INTEGER");
  280. b.Property<double>("Result")
  281. .HasColumnType("REAL");
  282. b.HasKey("Id");
  283. b.ToTable("ProductResult");
  284. });
  285. modelBuilder.Entity("Repository.LocalFile2Db", b =>
  286. {
  287. b.Property<Guid>("Id")
  288. .ValueGeneratedOnAdd()
  289. .HasColumnType("TEXT");
  290. b.Property<string>("Count")
  291. .HasColumnType("TEXT");
  292. b.Property<string>("MaterialName")
  293. .HasColumnType("TEXT");
  294. b.Property<string>("MaterialNum")
  295. .HasColumnType("TEXT");
  296. b.Property<string>("Num")
  297. .HasColumnType("TEXT");
  298. b.Property<Guid?>("SopFileID")
  299. .HasColumnType("TEXT");
  300. b.Property<string>("Unit")
  301. .HasColumnType("TEXT");
  302. b.HasKey("Id");
  303. b.HasIndex("SopFileID");
  304. b.ToTable("LocalFile2");
  305. });
  306. modelBuilder.Entity("Repository.LocalFile3Db", b =>
  307. {
  308. b.Property<Guid>("Id")
  309. .ValueGeneratedOnAdd()
  310. .HasColumnType("TEXT");
  311. b.Property<string>("After")
  312. .HasColumnType("TEXT");
  313. b.Property<string>("Before")
  314. .HasColumnType("TEXT");
  315. b.Property<string>("Equipment")
  316. .HasColumnType("TEXT");
  317. b.Property<string>("Inn")
  318. .HasColumnType("TEXT");
  319. b.Property<string>("LookOut")
  320. .HasColumnType("TEXT");
  321. b.Property<Guid?>("SopFileID")
  322. .HasColumnType("TEXT");
  323. b.HasKey("Id");
  324. b.HasIndex("SopFileID");
  325. b.ToTable("LocalFile3");
  326. });
  327. modelBuilder.Entity("Repository.LocalFileDb", b =>
  328. {
  329. b.Property<Guid>("Id")
  330. .ValueGeneratedOnAdd()
  331. .HasColumnType("TEXT");
  332. b.Property<string>("Date")
  333. .HasColumnType("TEXT");
  334. b.Property<string>("Edition")
  335. .HasColumnType("TEXT");
  336. b.Property<string>("FileNum")
  337. .HasColumnType("TEXT");
  338. b.Property<string>("Name")
  339. .HasColumnType("TEXT");
  340. b.Property<string>("People")
  341. .HasColumnType("TEXT");
  342. b.Property<string>("Process")
  343. .HasColumnType("TEXT");
  344. b.Property<Guid?>("SopFileID")
  345. .HasColumnType("TEXT");
  346. b.Property<string>("Type")
  347. .HasColumnType("TEXT");
  348. b.Property<string>("WorkTime")
  349. .HasColumnType("TEXT");
  350. b.HasKey("Id");
  351. b.HasIndex("SopFileID");
  352. b.ToTable("LocalFile");
  353. });
  354. modelBuilder.Entity("Repository.SopFile", b =>
  355. {
  356. b.Property<Guid>("ID")
  357. .ValueGeneratedOnAdd()
  358. .HasColumnType("TEXT");
  359. b.Property<string>("ProductName")
  360. .HasColumnType("TEXT");
  361. b.HasKey("ID");
  362. b.ToTable("SopFiles");
  363. });
  364. modelBuilder.Entity("Repository.LocalFile2Db", b =>
  365. {
  366. b.HasOne("Repository.SopFile", "SopFile")
  367. .WithMany("LocalFile2Db")
  368. .HasForeignKey("SopFileID");
  369. });
  370. modelBuilder.Entity("Repository.LocalFile3Db", b =>
  371. {
  372. b.HasOne("Repository.SopFile", "SopFile")
  373. .WithMany("LocalFile3Db")
  374. .HasForeignKey("SopFileID");
  375. });
  376. modelBuilder.Entity("Repository.LocalFileDb", b =>
  377. {
  378. b.HasOne("Repository.SopFile", "SopFile")
  379. .WithMany("LocalFileDb")
  380. .HasForeignKey("SopFileID");
  381. });
  382. #pragma warning restore 612, 618
  383. }
  384. }
  385. }