TeamDataContextModelSnapshot.cs 17 KB

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