TeamDataContextModelSnapshot.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  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.Property<string>("WorkDev")
  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<string>("ProTName")
  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. }