20241217013918_2024-12-17-1.Designer.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  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("20241217013918_2024-12-17-1")]
  12. partial class _202412171
  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<int>("Q1")
  187. .HasColumnType("INTEGER");
  188. b.Property<int>("Q10")
  189. .HasColumnType("INTEGER");
  190. b.Property<int>("Q11")
  191. .HasColumnType("INTEGER");
  192. b.Property<int>("Q12")
  193. .HasColumnType("INTEGER");
  194. b.Property<int>("Q13")
  195. .HasColumnType("INTEGER");
  196. b.Property<int>("Q14")
  197. .HasColumnType("INTEGER");
  198. b.Property<int>("Q15")
  199. .HasColumnType("INTEGER");
  200. b.Property<int>("Q16")
  201. .HasColumnType("INTEGER");
  202. b.Property<int>("Q17")
  203. .HasColumnType("INTEGER");
  204. b.Property<int>("Q18")
  205. .HasColumnType("INTEGER");
  206. b.Property<int>("Q19")
  207. .HasColumnType("INTEGER");
  208. b.Property<int>("Q2")
  209. .HasColumnType("INTEGER");
  210. b.Property<int>("Q20")
  211. .HasColumnType("INTEGER");
  212. b.Property<int>("Q21")
  213. .HasColumnType("INTEGER");
  214. b.Property<int>("Q22")
  215. .HasColumnType("INTEGER");
  216. b.Property<int>("Q23")
  217. .HasColumnType("INTEGER");
  218. b.Property<int>("Q24")
  219. .HasColumnType("INTEGER");
  220. b.Property<int>("Q25")
  221. .HasColumnType("INTEGER");
  222. b.Property<int>("Q26")
  223. .HasColumnType("INTEGER");
  224. b.Property<int>("Q27")
  225. .HasColumnType("INTEGER");
  226. b.Property<int>("Q28")
  227. .HasColumnType("INTEGER");
  228. b.Property<int>("Q29")
  229. .HasColumnType("INTEGER");
  230. b.Property<int>("Q3")
  231. .HasColumnType("INTEGER");
  232. b.Property<int>("Q30")
  233. .HasColumnType("INTEGER");
  234. b.Property<int>("Q4")
  235. .HasColumnType("INTEGER");
  236. b.Property<int>("Q5")
  237. .HasColumnType("INTEGER");
  238. b.Property<int>("Q6")
  239. .HasColumnType("INTEGER");
  240. b.Property<int>("Q7")
  241. .HasColumnType("INTEGER");
  242. b.Property<int>("Q8")
  243. .HasColumnType("INTEGER");
  244. b.Property<int>("Q9")
  245. .HasColumnType("INTEGER");
  246. b.Property<string>("QuPCode")
  247. .HasColumnType("TEXT");
  248. b.HasKey("Id");
  249. b.ToTable("Qualitys");
  250. });
  251. modelBuilder.Entity("Repository.Entiies.StatisticsLog", b =>
  252. {
  253. b.Property<Guid>("Id")
  254. .ValueGeneratedOnAdd()
  255. .HasColumnType("TEXT");
  256. b.Property<int>("RequestCode")
  257. .HasColumnType("INTEGER");
  258. b.Property<int>("RequstType")
  259. .HasColumnType("INTEGER");
  260. b.Property<DateTime>("Timestamp")
  261. .HasColumnType("TEXT");
  262. b.Property<int>("TraceState")
  263. .HasColumnType("INTEGER");
  264. b.HasKey("Id");
  265. b.ToTable("StatisticsLogs");
  266. });
  267. modelBuilder.Entity("Repository.Entiies.TestResult", b =>
  268. {
  269. b.Property<Guid>("Id")
  270. .ValueGeneratedOnAdd()
  271. .HasColumnType("TEXT");
  272. b.Property<string>("Barcode")
  273. .HasColumnType("TEXT");
  274. b.Property<DateTime>("Datetime")
  275. .HasColumnType("TEXT");
  276. b.Property<int>("Juge")
  277. .HasColumnType("INTEGER");
  278. b.Property<double>("Result")
  279. .HasColumnType("REAL");
  280. b.HasKey("Id");
  281. b.ToTable("ProductResult");
  282. });
  283. modelBuilder.Entity("Repository.LocalFile2Db", b =>
  284. {
  285. b.Property<Guid>("Id")
  286. .ValueGeneratedOnAdd()
  287. .HasColumnType("TEXT");
  288. b.Property<string>("Count")
  289. .HasColumnType("TEXT");
  290. b.Property<string>("MaterialName")
  291. .HasColumnType("TEXT");
  292. b.Property<string>("MaterialNum")
  293. .HasColumnType("TEXT");
  294. b.Property<string>("Num")
  295. .HasColumnType("TEXT");
  296. b.Property<Guid?>("SopFileID")
  297. .HasColumnType("TEXT");
  298. b.Property<string>("Unit")
  299. .HasColumnType("TEXT");
  300. b.HasKey("Id");
  301. b.HasIndex("SopFileID");
  302. b.ToTable("LocalFile2");
  303. });
  304. modelBuilder.Entity("Repository.LocalFile3Db", b =>
  305. {
  306. b.Property<Guid>("Id")
  307. .ValueGeneratedOnAdd()
  308. .HasColumnType("TEXT");
  309. b.Property<string>("After")
  310. .HasColumnType("TEXT");
  311. b.Property<string>("Before")
  312. .HasColumnType("TEXT");
  313. b.Property<string>("Equipment")
  314. .HasColumnType("TEXT");
  315. b.Property<string>("Inn")
  316. .HasColumnType("TEXT");
  317. b.Property<string>("LookOut")
  318. .HasColumnType("TEXT");
  319. b.Property<Guid?>("SopFileID")
  320. .HasColumnType("TEXT");
  321. b.HasKey("Id");
  322. b.HasIndex("SopFileID");
  323. b.ToTable("LocalFile3");
  324. });
  325. modelBuilder.Entity("Repository.LocalFileDb", b =>
  326. {
  327. b.Property<Guid>("Id")
  328. .ValueGeneratedOnAdd()
  329. .HasColumnType("TEXT");
  330. b.Property<string>("Date")
  331. .HasColumnType("TEXT");
  332. b.Property<string>("Edition")
  333. .HasColumnType("TEXT");
  334. b.Property<string>("FileNum")
  335. .HasColumnType("TEXT");
  336. b.Property<string>("Name")
  337. .HasColumnType("TEXT");
  338. b.Property<string>("People")
  339. .HasColumnType("TEXT");
  340. b.Property<string>("Process")
  341. .HasColumnType("TEXT");
  342. b.Property<Guid?>("SopFileID")
  343. .HasColumnType("TEXT");
  344. b.Property<string>("Type")
  345. .HasColumnType("TEXT");
  346. b.Property<string>("WorkTime")
  347. .HasColumnType("TEXT");
  348. b.HasKey("Id");
  349. b.HasIndex("SopFileID");
  350. b.ToTable("LocalFile");
  351. });
  352. modelBuilder.Entity("Repository.SopFile", b =>
  353. {
  354. b.Property<Guid>("ID")
  355. .ValueGeneratedOnAdd()
  356. .HasColumnType("TEXT");
  357. b.Property<string>("ProductName")
  358. .HasColumnType("TEXT");
  359. b.HasKey("ID");
  360. b.ToTable("SopFiles");
  361. });
  362. modelBuilder.Entity("Repository.LocalFile2Db", b =>
  363. {
  364. b.HasOne("Repository.SopFile", "SopFile")
  365. .WithMany("LocalFile2Db")
  366. .HasForeignKey("SopFileID");
  367. });
  368. modelBuilder.Entity("Repository.LocalFile3Db", b =>
  369. {
  370. b.HasOne("Repository.SopFile", "SopFile")
  371. .WithMany("LocalFile3Db")
  372. .HasForeignKey("SopFileID");
  373. });
  374. modelBuilder.Entity("Repository.LocalFileDb", b =>
  375. {
  376. b.HasOne("Repository.SopFile", "SopFile")
  377. .WithMany("LocalFileDb")
  378. .HasForeignKey("SopFileID");
  379. });
  380. #pragma warning restore 612, 618
  381. }
  382. }
  383. }