quality.sql 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
  1. DROP TABLE "QUALITY"."BIZ_ORGANIZATION";
  2. DROP TABLE "QUALITY"."BIZ_EQUIPMENT";
  3. DROP TABLE "QUALITY"."BIZ_PERSONNEL_MANAGEMENT";
  4. DROP TABLE "QUALITY"."BIZ_TEST_PARAMETERS";
  5. DROP TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED";
  6. DROP TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT";
  7. DROP TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_ITEMS";
  8. DROP TABLE "QUALITY"."BIZ_FOOD_STOCK";
  9. DROP TABLE "QUALITY"."BIZ_FOOD_STOCK_ITEMS";
  10. DROP TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS";
  11. DROP TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS";
  12. DROP TABLE "QUALITY"."BIZ_SUMMARY_RESULTS";
  13. DROP TABLE "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS";
  14. DROP TABLE "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE";
  15. DROP TABLE "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE";
  16. DROP TABLE "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT";
  17. DROP TABLE "QUALITY"."CCFA";
  18. DROP TABLE "QUALITY"."CYD";
  19. DROP TABLE "QUALITY"."CYJH";
  20. DROP TABLE "QUALITY"."CYPZ";
  21. DROP TABLE "QUALITY"."QYD";
  22. DROP TABLE "QUALITY"."WT";
  23. CREATE TABLE "QUALITY"."BIZ_ORGANIZATION" (
  24. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  25. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  26. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  27. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  28. "DELETE_TIME" TIMESTAMP(6) NULL ,
  29. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  30. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  31. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  32. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  33. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  34. "ORGANIZATION_NAME" VARCHAR2(200 BYTE) NULL ,
  35. "INSTITUTIONAL_CATEGORIES" VARCHAR2(50 BYTE) NULL ,
  36. "AFFILIATING_AREA" VARCHAR2(50 BYTE) NULL ,
  37. "DETAILED_ADDRESS" VARCHAR2(200 BYTE) NULL ,
  38. "REGISTRATION_TIME" VARCHAR2(50 BYTE) NULL ,
  39. "ORGANIZATION_CODE" VARCHAR2(50 BYTE) NULL ,
  40. "LEGAL_REPRESENTATIVE" VARCHAR2(200 BYTE) NULL ,
  41. "PHONE" VARCHAR2(50 BYTE) NULL ,
  42. "EMPLOYEES_NUMBER" VARCHAR2(50 BYTE) NULL ,
  43. "EQUIPMENT_NUMBER" VARCHAR2(50 BYTE) NULL ,
  44. "LABORATORY_AREA" VARCHAR2(50 BYTE) NULL ,
  45. "METROLOGICAL_AUTHENTICATION" VARCHAR2(50 BYTE) NULL ,
  46. "MONITORING_BODIES" VARCHAR2(50 BYTE) NULL
  47. );
  48. COMMENT ON TABLE "QUALITY"."BIZ_ORGANIZATION" IS '机构基本信息';
  49. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."ID" IS 'id';
  50. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."ORGANIZATION_NAME" IS '质检机构名称';
  51. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."INSTITUTIONAL_CATEGORIES" IS '机构类别';
  52. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."AFFILIATING_AREA" IS '所属地区';
  53. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."DETAILED_ADDRESS" IS '详细地址';
  54. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."REGISTRATION_TIME" IS '注册时间';
  55. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."ORGANIZATION_CODE" IS '组织机构代码';
  56. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."LEGAL_REPRESENTATIVE" IS '法定代表人';
  57. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."PHONE" IS '联系电话';
  58. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."EMPLOYEES_NUMBER" IS '员工人数';
  59. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."EQUIPMENT_NUMBER" IS '设备数量';
  60. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."LABORATORY_AREA" IS '办公及实验室面积(㎡)';
  61. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."METROLOGICAL_AUTHENTICATION" IS '是否通过计量认证';
  62. COMMENT ON COLUMN "QUALITY"."BIZ_ORGANIZATION"."MONITORING_BODIES" IS '是否为国家粮食质量监测机构';
  63. CREATE TABLE "QUALITY"."BIZ_EQUIPMENT" (
  64. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  65. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  66. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  67. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  68. "DELETE_TIME" TIMESTAMP(6) NULL ,
  69. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  70. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  71. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  72. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  73. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  74. "ORGANIZATION_ID" VARCHAR2(50 BYTE) NULL ,
  75. "EQUIPMENT_NAME" VARCHAR2(200 BYTE) NULL ,
  76. "DEVICE_CODING" VARCHAR2(200 BYTE) NULL ,
  77. "USING_STATE" VARCHAR2(50 BYTE) NULL ,
  78. "MANUFACTURER" VARCHAR2(200 BYTE) NULL ,
  79. "PRODUCTION_DATE" VARCHAR2(50 BYTE) NULL ,
  80. "CONTACT_PERSON" VARCHAR2(50 BYTE) NULL ,
  81. "PHONE" VARCHAR2(50 BYTE) NULL ,
  82. "NUMBER_EQUIPMENT" VARCHAR2(50 BYTE) NULL
  83. );
  84. COMMENT ON TABLE "QUALITY"."BIZ_EQUIPMENT" IS '仪器设备信息';
  85. COMMENT ON COLUMN "QUALITY"."BIZ_EQUIPMENT"."ID" IS 'id';
  86. COMMENT ON COLUMN "QUALITY"."BIZ_EQUIPMENT"."ORGANIZATION_ID" IS '机构id';
  87. COMMENT ON COLUMN "QUALITY"."BIZ_EQUIPMENT"."EQUIPMENT_NAME" IS '设备名称';
  88. COMMENT ON COLUMN "QUALITY"."BIZ_EQUIPMENT"."DEVICE_CODING" IS '设备编码';
  89. COMMENT ON COLUMN "QUALITY"."BIZ_EQUIPMENT"."USING_STATE" IS '使用状态';
  90. COMMENT ON COLUMN "QUALITY"."BIZ_EQUIPMENT"."MANUFACTURER" IS '生产厂家';
  91. COMMENT ON COLUMN "QUALITY"."BIZ_EQUIPMENT"."PRODUCTION_DATE" IS '生产日期';
  92. COMMENT ON COLUMN "QUALITY"."BIZ_EQUIPMENT"."CONTACT_PERSON" IS '负责人姓名';
  93. COMMENT ON COLUMN "QUALITY"."BIZ_EQUIPMENT"."PHONE" IS '联系方式';
  94. COMMENT ON COLUMN "QUALITY"."BIZ_EQUIPMENT"."NUMBER_EQUIPMENT" IS '设备数量';
  95. CREATE TABLE "QUALITY"."BIZ_PERSONNEL_MANAGEMENT" (
  96. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  97. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  98. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  99. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  100. "DELETE_TIME" TIMESTAMP(6) NULL ,
  101. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  102. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  103. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  104. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  105. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  106. "ORGANIZATION_ID" VARCHAR2(50 BYTE) NULL ,
  107. "NAME" VARCHAR2(200 BYTE) NULL ,
  108. "SEX" VARCHAR2(50 BYTE) NULL ,
  109. "EDUCATION" VARCHAR2(50 BYTE) NULL ,
  110. "TECHNICAL" VARCHAR2(200 BYTE) NULL ,
  111. "WORKING_SENIORITY" VARCHAR2(50 BYTE) NULL ,
  112. "PHONE" VARCHAR2(50 BYTE) NULL
  113. );
  114. COMMENT ON TABLE "QUALITY"."BIZ_PERSONNEL_MANAGEMENT" IS '人员信息';
  115. COMMENT ON COLUMN "QUALITY"."BIZ_PERSONNEL_MANAGEMENT"."ORGANIZATION_ID" IS '机构id';
  116. COMMENT ON COLUMN "QUALITY"."BIZ_PERSONNEL_MANAGEMENT"."NAME" IS '姓名';
  117. COMMENT ON COLUMN "QUALITY"."BIZ_PERSONNEL_MANAGEMENT"."SEX" IS '性别';
  118. COMMENT ON COLUMN "QUALITY"."BIZ_PERSONNEL_MANAGEMENT"."EDUCATION" IS '学历';
  119. COMMENT ON COLUMN "QUALITY"."BIZ_PERSONNEL_MANAGEMENT"."TECHNICAL" IS '职称';
  120. COMMENT ON COLUMN "QUALITY"."BIZ_PERSONNEL_MANAGEMENT"."WORKING_SENIORITY" IS '工作年限';
  121. COMMENT ON COLUMN "QUALITY"."BIZ_PERSONNEL_MANAGEMENT"."PHONE" IS '联系方式';
  122. CREATE TABLE "QUALITY"."BIZ_TEST_PARAMETERS" (
  123. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  124. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  125. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  126. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  127. "DELETE_TIME" TIMESTAMP(6) NULL ,
  128. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  129. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  130. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  131. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  132. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  133. "ORGANIZATION_ID" VARCHAR2(50 BYTE) NULL ,
  134. "INSPECTION_CATEGORY" VARCHAR2(200 BYTE) NULL ,
  135. "TEST_PARAMETERS" VARCHAR2(200 BYTE) NULL
  136. );
  137. COMMENT ON TABLE "QUALITY"."BIZ_TEST_PARAMETERS" IS '检验参数';
  138. COMMENT ON COLUMN "QUALITY"."BIZ_TEST_PARAMETERS"."ID" IS 'ID';
  139. COMMENT ON COLUMN "QUALITY"."BIZ_TEST_PARAMETERS"."ORGANIZATION_ID" IS '机构id';
  140. COMMENT ON COLUMN "QUALITY"."BIZ_TEST_PARAMETERS"."INSPECTION_CATEGORY" IS '检验类别';
  141. COMMENT ON COLUMN "QUALITY"."BIZ_TEST_PARAMETERS"."TEST_PARAMETERS" IS '检验参数';
  142. CREATE TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED" (
  143. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  144. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  145. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  146. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  147. "DELETE_TIME" TIMESTAMP(6) NULL ,
  148. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  149. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  150. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  151. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  152. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  153. "PLAN_TYPE" VARCHAR2(200 BYTE) NULL ,
  154. "PLAN_FILE_NAME" VARCHAR2(200 BYTE) NULL ,
  155. "DISTRIBUTION_ATTACHMENTS" VARCHAR2(200 BYTE) NULL ,
  156. "SCHEDULED_RELEASE_TIME" VARCHAR2(200 BYTE) NULL ,
  157. "DOWNWARD_STATE" VARCHAR2(50 BYTE) NULL ,
  158. "ATTACHMENTS_ID" VARCHAR2(50 BYTE) NULL ,
  159. "PROCESS_ID" VARCHAR2(50 BYTE) NULL
  160. );
  161. COMMENT ON TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED" IS '品质测报-计划下发';
  162. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED"."PLAN_TYPE" IS '计划类型';
  163. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED"."PLAN_FILE_NAME" IS '计划文件名称';
  164. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED"."DISTRIBUTION_ATTACHMENTS" IS '附件';
  165. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED"."SCHEDULED_RELEASE_TIME" IS '计划下达时间';
  166. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED"."DOWNWARD_STATE" IS '状态';
  167. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED"."ATTACHMENTS_ID" IS '附件id';
  168. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED"."PROCESS_ID" IS '流程id';
  169. CREATE TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT" (
  170. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  171. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  172. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  173. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  174. "DELETE_TIME" TIMESTAMP(6) NULL ,
  175. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  176. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  177. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  178. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  179. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  180. "PLAN_TYPE" VARCHAR2(200 BYTE) NULL ,
  181. "PLAN_FILE_NAME" VARCHAR2(200 BYTE) NULL ,
  182. "CITY" VARCHAR2(50 BYTE) NULL ,
  183. "COMPANY_NAME" VARCHAR2(200 BYTE) NULL ,
  184. "MIGRATION_AGENCIES" VARCHAR2(200 BYTE) NULL ,
  185. "MIGRATION_DATE" VARCHAR2(200 BYTE) NULL ,
  186. "RELOCATION_NUMBER" VARCHAR2(200 BYTE) NULL ,
  187. "NATURE_FOOD" VARCHAR2(200 BYTE) NULL ,
  188. "VARIETIES" VARCHAR2(50 BYTE) NULL ,
  189. "SAMPLE_NUMBER" VARCHAR2(200 BYTE) NULL ,
  190. "NUMBER_REPRESENTATIVES" VARCHAR2(200 BYTE) NULL ,
  191. "YEARS" VARCHAR2(50 BYTE) NULL ,
  192. "PLACE_ORIGIN" VARCHAR2(200 BYTE) NULL ,
  193. "REVIEWER" VARCHAR2(200 BYTE) NULL ,
  194. "AUDIT_OPINION" VARCHAR2(500 BYTE) NULL ,
  195. "FINDINGS_AUDIT" VARCHAR2(50 BYTE) NULL ,
  196. "ATTACHMENTS" VARCHAR2(2000 BYTE) NULL ,
  197. "PROCESS_ID" VARCHAR2(50 BYTE) NULL ,
  198. "STATE_NAME" VARCHAR2(50 BYTE) NULL ,
  199. "PLAN_ID" VARCHAR2(50 BYTE) NULL ,
  200. "STATE" VARCHAR2(50 BYTE) NULL ,
  201. "SLSJ_STATE" VARCHAR2(50 BYTE) NULL ,
  202. "SLSJ_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  203. "SZJZX_STATE" VARCHAR2(50 BYTE) NULL ,
  204. "SZJZX_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  205. "SHLSJ_STATE" VARCHAR2(50 BYTE) NULL ,
  206. "SHLSJ_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  207. "SHZJZX_STATE" VARCHAR2(50 BYTE) NULL ,
  208. "SHZJZX_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  209. "XLSJ_STATE" VARCHAR2(50 BYTE) NULL ,
  210. "XLSJ_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  211. "BATCH" VARCHAR2(50 BYTE) NULL
  212. );
  213. COMMENT ON TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT" IS '品质测报-结果审核';
  214. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."PLAN_TYPE" IS '计划类型';
  215. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."PLAN_FILE_NAME" IS '计划文件名称';
  216. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."CITY" IS '盟市';
  217. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."COMPANY_NAME" IS '承储企业名称';
  218. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."MIGRATION_AGENCIES" IS '扦样机构';
  219. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."MIGRATION_DATE" IS '扦样日期';
  220. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."RELOCATION_NUMBER" IS '扦样货位号';
  221. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."NATURE_FOOD" IS '粮食性质';
  222. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."VARIETIES" IS '品种';
  223. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."SAMPLE_NUMBER" IS '样品编号';
  224. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."NUMBER_REPRESENTATIVES" IS '代表数量';
  225. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."YEARS" IS '收获年度';
  226. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."PLACE_ORIGIN" IS '产地';
  227. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."REVIEWER" IS '审核人';
  228. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."AUDIT_OPINION" IS '审核意见';
  229. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."FINDINGS_AUDIT" IS '审核结果';
  230. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."ATTACHMENTS" IS '附件';
  231. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."PROCESS_ID" IS '流程id';
  232. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."STATE_NAME" IS '状态名称';
  233. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT"."PLAN_ID" IS '计划id';
  234. CREATE TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_ITEMS" (
  235. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  236. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  237. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  238. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  239. "DELETE_TIME" TIMESTAMP(6) NULL ,
  240. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  241. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  242. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  243. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  244. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  245. "PLAN_TYPE" VARCHAR2(200 BYTE) NULL ,
  246. "PLAN_FILE_NAME" VARCHAR2(200 BYTE) NULL ,
  247. "VARIETIES" VARCHAR2(50 BYTE) NULL ,
  248. "TEST_INDICATORS" VARCHAR2(50 BYTE) NULL ,
  249. "TEST_VALUE" VARCHAR2(50 BYTE) NULL ,
  250. "ADUIT_ID" VARCHAR2(50 BYTE) NULL ,
  251. "BATCH" VARCHAR2(50 BYTE) NULL
  252. );
  253. COMMENT ON TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_ITEMS" IS '品质测报检测项目';
  254. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_ITEMS"."PLAN_TYPE" IS '计划类型--暂时不用';
  255. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_ITEMS"."PLAN_FILE_NAME" IS '计划文件名称--暂时不用';
  256. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_ITEMS"."VARIETIES" IS '品种';
  257. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_ITEMS"."TEST_INDICATORS" IS '检验指标';
  258. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_ITEMS"."TEST_VALUE" IS '检验值';
  259. COMMENT ON COLUMN "QUALITY"."BIZ_QUALITY_PREDICTION_ITEMS"."ADUIT_ID" IS '审核结果id';
  260. CREATE TABLE "QUALITY"."BIZ_FOOD_STOCK" (
  261. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  262. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  263. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  264. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  265. "DELETE_TIME" TIMESTAMP(6) NULL ,
  266. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  267. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  268. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  269. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  270. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  271. "PLAN_FILE_NAME" VARCHAR2(200 BYTE) NULL ,
  272. "TYPE" VARCHAR2(50 BYTE) NULL ,
  273. "CITY" VARCHAR2(200 BYTE) NULL ,
  274. "FILLING_UNIT" VARCHAR2(200 BYTE) NULL ,
  275. "FILLING_DATE" VARCHAR2(200 BYTE) NULL ,
  276. "REGISTRAR" VARCHAR2(200 BYTE) NULL ,
  277. "FINDINGS_AUDIT" VARCHAR2(200 BYTE) NULL ,
  278. "AUDIT_OPINIONS" VARCHAR2(500 BYTE) NULL ,
  279. "PROCESS_ID" VARCHAR2(50 BYTE) NULL ,
  280. "STATE_NAME" VARCHAR2(50 BYTE) NULL ,
  281. "PLAN_ID" VARCHAR2(50 BYTE) NULL ,
  282. "STATE" VARCHAR2(50 BYTE) NULL ,
  283. "SLSJ_STATE" VARCHAR2(50 BYTE) NULL ,
  284. "SLSJ_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  285. "SZJZX_STATE" VARCHAR2(50 BYTE) NULL ,
  286. "SZJZX_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  287. "SHLSJ_STATE" VARCHAR2(50 BYTE) NULL ,
  288. "SHLSJ_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  289. "SHZJZX_STATE" VARCHAR2(50 BYTE) NULL ,
  290. "SHZJZX_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  291. "XLSJ_STATE" VARCHAR2(50 BYTE) NULL ,
  292. "XLSJ_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  293. "BATCH" VARCHAR2(50 BYTE) NULL
  294. );
  295. COMMENT ON TABLE "QUALITY"."BIZ_FOOD_STOCK" IS '库存粮食质量检测品登统表';
  296. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK"."PLAN_FILE_NAME" IS '计划文件名称';
  297. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK"."TYPE" IS '检验结果上报 1库存粮食质量检测品登统表 2 检验结果等级表';
  298. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK"."CITY" IS '旗县、盟市';
  299. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK"."FILLING_UNIT" IS '填报单位';
  300. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK"."FILLING_DATE" IS '填报日期';
  301. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK"."REGISTRAR" IS '样品信息登统人员';
  302. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK"."FINDINGS_AUDIT" IS '审核结果';
  303. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK"."AUDIT_OPINIONS" IS '审核意见';
  304. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK"."PLAN_ID" IS '计划id';
  305. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK"."SHZJZX_STATE" IS '批次';
  306. CREATE TABLE "QUALITY"."BIZ_FOOD_STOCK_ITEMS" (
  307. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  308. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  309. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  310. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  311. "DELETE_TIME" TIMESTAMP(6) NULL ,
  312. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  313. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  314. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  315. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  316. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  317. "FOOD_STOCK_ID" VARCHAR2(200 BYTE) NOT NULL ,
  318. "SAMPLE_NUMBER" VARCHAR2(200 BYTE) NULL ,
  319. "CHECK_LIBRARY_POINTS" VARCHAR2(200 BYTE) NULL ,
  320. "WAREHOUSE" VARCHAR2(200 BYTE) NULL ,
  321. "NATURE" VARCHAR2(200 BYTE) NULL ,
  322. "VARIETIES" VARCHAR2(200 BYTE) NULL ,
  323. "BEHALF_NUMBER" NUMBER(18) DEFAULT NULL NULL ,
  324. "STORAGE_GRADE" VARCHAR2(200 BYTE) NULL ,
  325. "PLACE_ORIGIN" VARCHAR2(200 BYTE) NULL ,
  326. "YEARS" VARCHAR2(200 BYTE) NULL ,
  327. "STORAGE_TIME" VARCHAR2(200 BYTE) NULL ,
  328. "PACKAGING_OR_BULK_PACKING" VARCHAR2(200 BYTE) NULL ,
  329. "LOCAL_SAFE_STORAGE_OF_WATER" VARCHAR2(200 BYTE) NULL ,
  330. "GRAIN_TEMPERATURE" VARCHAR2(200 BYTE) NULL ,
  331. "STORAGE_TECHNOLOGY" VARCHAR2(200 BYTE) NULL ,
  332. "REMARKS" VARCHAR2(200 BYTE) NULL ,
  333. "BATCH" VARCHAR2(50 BYTE) NULL
  334. );
  335. COMMENT ON TABLE "QUALITY"."BIZ_FOOD_STOCK_ITEMS" IS '库存粮食质量检测品登统--明细表';
  336. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."ID" IS 'id';
  337. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."FOOD_STOCK_ID" IS '登统表ID';
  338. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."SAMPLE_NUMBER" IS '样品编号';
  339. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."CHECK_LIBRARY_POINTS" IS '检查库点';
  340. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."WAREHOUSE" IS '扦样处所(仓库或堆垛号码)';
  341. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."NATURE" IS '储粮性质';
  342. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."VARIETIES" IS '样品名称';
  343. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."BEHALF_NUMBER" IS '代表数量(吨)';
  344. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."STORAGE_GRADE" IS '入库等级';
  345. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."PLACE_ORIGIN" IS '产地';
  346. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."YEARS" IS '收获年度';
  347. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."STORAGE_TIME" IS '入库时间';
  348. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."PACKAGING_OR_BULK_PACKING" IS '包装或散装';
  349. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."LOCAL_SAFE_STORAGE_OF_WATER" IS '当地安全储存水分';
  350. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."GRAIN_TEMPERATURE" IS '粮温';
  351. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."STORAGE_TECHNOLOGY" IS '使用的储粮技术';
  352. COMMENT ON COLUMN "QUALITY"."BIZ_FOOD_STOCK_ITEMS"."REMARKS" IS '备注';
  353. CREATE TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS" (
  354. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  355. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  356. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  357. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  358. "DELETE_TIME" TIMESTAMP(6) NULL ,
  359. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  360. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  361. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  362. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  363. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  364. "FOOD_STOCK_ID" VARCHAR2(50 BYTE) NOT NULL ,
  365. "PLAN_FILE_NAME" VARCHAR2(200 BYTE) NULL ,
  366. "TYPE" VARCHAR2(50 BYTE) NULL ,
  367. "CITY" VARCHAR2(200 BYTE) NULL ,
  368. "FILLING_UNIT" VARCHAR2(200 BYTE) NULL ,
  369. "FILLING_DATE" VARCHAR2(200 BYTE) NULL ,
  370. "FINDINGS_AUDIT" VARCHAR2(200 BYTE) NULL ,
  371. "AUDIT_OPINIONS" VARCHAR2(200 BYTE) NULL ,
  372. "PROCESS_ID" VARCHAR2(50 BYTE) NULL ,
  373. "STATE_NAME" VARCHAR2(50 BYTE) NULL ,
  374. "VARIETIES" VARCHAR2(255 BYTE) NULL ,
  375. "BATCH" VARCHAR2(50 BYTE) NULL
  376. );
  377. COMMENT ON TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS" IS '检验结果等级表';
  378. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS"."FOOD_STOCK_ID" IS '库存粮食质量检测品登统表ID';
  379. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS"."PLAN_FILE_NAME" IS '计划文件名称';
  380. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS"."TYPE" IS '检验结果上报 1库存粮食质量检测品登统表 2 检验结果等级表';
  381. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS"."CITY" IS '旗县、盟市';
  382. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS"."FILLING_UNIT" IS '填报单位';
  383. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS"."FILLING_DATE" IS '填报日期';
  384. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS"."FINDINGS_AUDIT" IS '审核结果';
  385. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS"."AUDIT_OPINIONS" IS '审核意见';
  386. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS"."VARIETIES" IS '样品名称';
  387. CREATE TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS" (
  388. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  389. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  390. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  391. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  392. "DELETE_TIME" TIMESTAMP(6) NULL ,
  393. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  394. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  395. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  396. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  397. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  398. "WATER_CONTENT" NUMBER(18) NULL ,
  399. "IMPURITY" VARCHAR2(200 BYTE) NULL ,
  400. "IMPERFECT_GRAIN" VARCHAR2(200 BYTE) NULL ,
  401. "BULK_DENSITY" VARCHAR2(200 BYTE) NULL ,
  402. "COLOUR_SMELL" VARCHAR2(200 BYTE) NULL ,
  403. "MOLDY_KERNEL" VARCHAR2(200 BYTE) NULL ,
  404. "TASTE_SCORE" VARCHAR2(200 BYTE) NULL ,
  405. "FATTY_ACID_VALUE" VARCHAR2(200 BYTE) NULL ,
  406. "INSPECTION_GRADE" VARCHAR2(200 BYTE) NULL ,
  407. "RESULT_JUDGMENT" VARCHAR2(200 BYTE) NULL ,
  408. "INTEGRITY_RATE_GRANULE" VARCHAR2(200 BYTE) NULL ,
  409. "DAMAGE_RATE_GRANULE" VARCHAR2(200 BYTE) NULL ,
  410. "ROUGHNESS" VARCHAR2(200 BYTE) NULL ,
  411. "BROWN_RICE" VARCHAR2(200 BYTE) NULL ,
  412. "HEAD_RICE_RATE" VARCHAR2(200 BYTE) NULL ,
  413. "MIXING_RATE" VARCHAR2(200 BYTE) NULL ,
  414. "YELLOW_GRAINED_RICE" VARCHAR2(200 BYTE) NULL ,
  415. "FATTY_ACID_VALUE_STORAGE" VARCHAR2(200 BYTE) NULL ,
  416. "VISCOSITY" VARCHAR2(200 BYTE) NULL ,
  417. "TASTE_SCORE_STORAGE" VARCHAR2(200 BYTE) NULL ,
  418. "COLOUR_SMELL_STORAGE" VARCHAR2(200 BYTE) NULL ,
  419. "RESULT_JUDGMENT_STORAGE" VARCHAR2(200 BYTE) NULL ,
  420. "GLUTEN_WATER_ABSORPTION" VARCHAR2(200 BYTE) NULL ,
  421. "PROTEIN_SOLUBILITY_RATIO" VARCHAR2(200 BYTE) NULL ,
  422. "GRADE_TEST_RESULTS_ID" VARCHAR2(50 BYTE) NULL ,
  423. "SAMPLE_NUMBER" VARCHAR2(200 BYTE) NULL ,
  424. "CHECK_LIBRARY_POINTS" VARCHAR2(200 BYTE) NULL ,
  425. "WAREHOUSE" VARCHAR2(200 BYTE) NULL ,
  426. "NATURE" VARCHAR2(200 BYTE) NULL ,
  427. "VARIETIES" VARCHAR2(200 BYTE) NULL ,
  428. "BEHALF_NUMBER" VARCHAR2(200 BYTE) NULL ,
  429. "STORAGE_GRADE" VARCHAR2(200 BYTE) NULL ,
  430. "PLACE_ORIGIN" VARCHAR2(200 BYTE) NULL ,
  431. "YEARS" VARCHAR2(200 BYTE) NULL ,
  432. "STORAGE_TIME" VARCHAR2(200 BYTE) NULL ,
  433. "FOOD_STOCK_ID" VARCHAR2(50 BYTE) NULL ,
  434. "TYPE" VARCHAR2(50 BYTE) NULL ,
  435. "BATCH" VARCHAR2(50 BYTE) NULL
  436. );
  437. COMMENT ON TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS" IS '检验结果登记表-明细';
  438. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."ID" IS 'id';
  439. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."WATER_CONTENT" IS '水分';
  440. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."IMPURITY" IS '杂质';
  441. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."IMPERFECT_GRAIN" IS '不完善粒';
  442. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."BULK_DENSITY" IS '容重';
  443. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."COLOUR_SMELL" IS '色泽气味';
  444. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."MOLDY_KERNEL" IS '生霉粒';
  445. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."TASTE_SCORE" IS '品尝评分值';
  446. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."FATTY_ACID_VALUE" IS '脂肪酸值';
  447. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."INSPECTION_GRADE" IS '检验等级';
  448. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."RESULT_JUDGMENT" IS '结果判定';
  449. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."INTEGRITY_RATE_GRANULE" IS '完整率粒';
  450. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."DAMAGE_RATE_GRANULE" IS '损伤率粒';
  451. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."ROUGHNESS" IS '出糙率';
  452. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."BROWN_RICE" IS '谷外糙米';
  453. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."HEAD_RICE_RATE" IS '整精米率';
  454. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."MIXING_RATE" IS '互混率';
  455. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."YELLOW_GRAINED_RICE" IS '黄粒米';
  456. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."FATTY_ACID_VALUE_STORAGE" IS '脂肪酸值-储存品质';
  457. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."VISCOSITY" IS '粘度';
  458. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."TASTE_SCORE_STORAGE" IS '品尝评分值-储存品质';
  459. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."COLOUR_SMELL_STORAGE" IS '色泽气味-储存品质';
  460. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."RESULT_JUDGMENT_STORAGE" IS '结果判定-储存品质';
  461. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."GLUTEN_WATER_ABSORPTION" IS '面筋吸水量';
  462. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."PROTEIN_SOLUBILITY_RATIO" IS '蛋白质溶解比较率';
  463. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."GRADE_TEST_RESULTS_ID" IS '登记表id';
  464. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."SAMPLE_NUMBER" IS '样品编号';
  465. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."CHECK_LIBRARY_POINTS" IS '检查库点';
  466. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."WAREHOUSE" IS '扦样处所(仓库或堆垛号码)';
  467. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."NATURE" IS '储粮性质';
  468. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."VARIETIES" IS '样品名称';
  469. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."BEHALF_NUMBER" IS '代表数量(吨)';
  470. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."STORAGE_GRADE" IS '入库等级';
  471. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."PLACE_ORIGIN" IS '产地';
  472. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."YEARS" IS '收获年度';
  473. COMMENT ON COLUMN "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS"."STORAGE_TIME" IS '入库时间';
  474. CREATE TABLE "QUALITY"."BIZ_SUMMARY_RESULTS" (
  475. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  476. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  477. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  478. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  479. "DELETE_TIME" TIMESTAMP(6) NULL ,
  480. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  481. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  482. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  483. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  484. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  485. "PLAN_FILE_NAME" VARCHAR2(200 BYTE) NULL ,
  486. "PLAN_ID" VARCHAR2(50 BYTE) NULL ,
  487. "CITY" VARCHAR2(50 BYTE) NULL ,
  488. "TYPE" VARCHAR2(50 BYTE) NULL ,
  489. "FILLING_UNIT" VARCHAR2(200 BYTE) NULL ,
  490. "FOOD_NATURE" VARCHAR2(200 BYTE) NULL ,
  491. "CHECK_POINT" VARCHAR2(200 BYTE) NULL ,
  492. "FINDINGS_AUDIT" VARCHAR2(200 BYTE) NULL ,
  493. "AUDIT_OPINIONS" VARCHAR2(500 BYTE) NULL ,
  494. "PROCESS_ID" VARCHAR2(50 BYTE) NULL ,
  495. "STATE_NAME" VARCHAR2(50 BYTE) NULL ,
  496. "STATE" VARCHAR2(50 BYTE) NULL ,
  497. "SLSJ_STATE" VARCHAR2(50 BYTE) NULL ,
  498. "SLSJ_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  499. "SZJZX_STATE" VARCHAR2(50 BYTE) NULL ,
  500. "SZJZX_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  501. "SHLSJ_STATE" VARCHAR2(50 BYTE) NULL ,
  502. "SHLSJ_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  503. "SHZJZX_STATE" VARCHAR2(50 BYTE) NULL ,
  504. "SHZJZX_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  505. "XLSJ_STATE" VARCHAR2(50 BYTE) NULL ,
  506. "XLSJ_MESSAGE" VARCHAR2(500 BYTE) NULL ,
  507. "BATCH" VARCHAR2(50 BYTE) NULL
  508. );
  509. COMMENT ON TABLE "QUALITY"."BIZ_SUMMARY_RESULTS" IS '粮食质量检验结果汇总表';
  510. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS"."ID" IS 'id';
  511. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS"."PLAN_FILE_NAME" IS '计划名称';
  512. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS"."PLAN_ID" IS '计划id';
  513. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS"."CITY" IS '盟市、旗县';
  514. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS"."TYPE" IS '类型(表名)';
  515. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS"."FILLING_UNIT" IS '填报单位';
  516. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS"."FOOD_NATURE" IS '粮食性质';
  517. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS"."CHECK_POINT" IS '检查时点';
  518. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS"."FINDINGS_AUDIT" IS '审核结果';
  519. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS"."AUDIT_OPINIONS" IS '审核意见';
  520. CREATE TABLE "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS" (
  521. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  522. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  523. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  524. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  525. "DELETE_TIME" TIMESTAMP(6) NULL ,
  526. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  527. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  528. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  529. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  530. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  531. "SUMMARY_ID" VARCHAR2(50 BYTE) NULL ,
  532. "CHECK_LIBRARY_POINTS" VARCHAR2(200 BYTE) NULL ,
  533. "COMPANY_NUMBER" VARCHAR2(200 BYTE) NULL ,
  534. "SAMPLES_TOTAL" VARCHAR2(200 BYTE) NULL ,
  535. "REPRESENTATIVES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  536. "ACHIEVEMENT_RATE" VARCHAR2(200 BYTE) NULL ,
  537. "PADDY_SAMPLES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  538. "PADDY_REPRESENTATIVES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  539. "PADDY_ACHIEVEMENT_RATE" VARCHAR2(200 BYTE) NULL ,
  540. "WHEAT_SAMPLES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  541. "WHEAT_REPRESENTATIVES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  542. "WHEAT_ACHIEVEMENT_RATE" VARCHAR2(200 BYTE) NULL ,
  543. "CORN_SAMPLES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  544. "CORN_REPRESENTATIVES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  545. "CORN_ACHIEVEMENT_RATE" VARCHAR2(200 BYTE) NULL ,
  546. "SOYBEAN_SAMPLES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  547. "SOYBEAN_REPRESENTATIVES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  548. "SOYBEAN_ACHIEVEMENT_RATE" VARCHAR2(200 BYTE) NULL ,
  549. "RICE_SAMPLES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  550. "RICE_REPRESENTATIVES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  551. "RICE_ACHIEVEMENT_RATE" VARCHAR2(200 BYTE) NULL ,
  552. "WHEATMEAL_SAMPLES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  553. "WHEATMEAL_REPRESENTATIVES_NUMB" VARCHAR2(200 BYTE) NULL ,
  554. "WHEATMEAL_ACHIEVEMENT_RATE" VARCHAR2(200 BYTE) NULL ,
  555. "PROCESS_ID" VARCHAR2(50 BYTE) NULL ,
  556. "STATE_NAME" VARCHAR2(50 BYTE) NULL ,
  557. "TYPE" VARCHAR2(50 BYTE) NULL ,
  558. "BATCH" VARCHAR2(50 BYTE) NULL
  559. );
  560. COMMENT ON TABLE "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS" IS '粮食质量检验结果汇总表----明细表';
  561. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."ID" IS 'id';
  562. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."SUMMARY_ID" IS '汇总表id';
  563. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."CHECK_LIBRARY_POINTS" IS '检查地区或库点';
  564. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."COMPANY_NUMBER" IS '检查企业个数';
  565. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."SAMPLES_TOTAL" IS '样品总数';
  566. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."REPRESENTATIVES_NUMBER" IS '代表数量';
  567. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."ACHIEVEMENT_RATE" IS '达标率';
  568. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."PADDY_SAMPLES_NUMBER" IS '稻谷-样品数';
  569. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."PADDY_REPRESENTATIVES_NUMBER" IS '稻谷-代表数量';
  570. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."PADDY_ACHIEVEMENT_RATE" IS '稻谷-达标率';
  571. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."WHEAT_SAMPLES_NUMBER" IS '小麦-样品数';
  572. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."WHEAT_REPRESENTATIVES_NUMBER" IS '小麦-代表数量';
  573. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."WHEAT_ACHIEVEMENT_RATE" IS '小麦-达标率';
  574. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."CORN_SAMPLES_NUMBER" IS '玉米-样品数';
  575. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."CORN_REPRESENTATIVES_NUMBER" IS '玉米-代表数量';
  576. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."CORN_ACHIEVEMENT_RATE" IS '玉米-达标率';
  577. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."SOYBEAN_SAMPLES_NUMBER" IS '大豆-样品数';
  578. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."SOYBEAN_REPRESENTATIVES_NUMBER" IS '大豆-代表数量';
  579. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."SOYBEAN_ACHIEVEMENT_RATE" IS '大豆-达标率';
  580. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."RICE_SAMPLES_NUMBER" IS '大米-样品数';
  581. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."RICE_REPRESENTATIVES_NUMBER" IS '大米-代表数量';
  582. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."RICE_ACHIEVEMENT_RATE" IS '大米-达标率';
  583. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."WHEATMEAL_SAMPLES_NUMBER" IS '小麦粉-样品数';
  584. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."WHEATMEAL_REPRESENTATIVES_NUMB" IS '小麦粉-代表数量';
  585. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS"."WHEATMEAL_ACHIEVEMENT_RATE" IS '小麦粉-达标率';
  586. CREATE TABLE "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE" (
  587. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  588. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  589. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  590. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  591. "DELETE_TIME" TIMESTAMP(6) NULL ,
  592. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  593. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  594. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  595. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  596. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  597. "PLAN_FILE_NAME" VARCHAR2(200 BYTE) NULL ,
  598. "PLAN_ID" VARCHAR2(50 BYTE) NULL ,
  599. "CITY" VARCHAR2(50 BYTE) NULL ,
  600. "TYPE" VARCHAR2(50 BYTE) NULL ,
  601. "FILLING_UNIT" VARCHAR2(200 BYTE) NULL ,
  602. "LIBRARY_POINT_NAME" VARCHAR2(200 BYTE) NULL ,
  603. "WAREHOUSE" VARCHAR2(200 BYTE) NULL ,
  604. "SAMPLE_NUMBER" VARCHAR2(200 BYTE) NULL ,
  605. "REPRESENTATIVES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  606. "NATURE" VARCHAR2(200 BYTE) NULL ,
  607. "VARIETIES" VARCHAR2(200 BYTE) NULL ,
  608. "PLACE_ORIGIN" VARCHAR2(200 BYTE) NULL ,
  609. "HARVEST_LIFE" VARCHAR2(200 BYTE) NULL ,
  610. "STORAGE_TIME" VARCHAR2(200 BYTE) NULL ,
  611. "UNQUALIFIED_ITEMS" VARCHAR2(200 BYTE) NULL ,
  612. "DETECTION_VALUE" VARCHAR2(200 BYTE) NULL ,
  613. "FINDINGS_AUDIT" VARCHAR2(200 BYTE) NULL ,
  614. "AUDIT_OPINIONS" VARCHAR2(200 BYTE) NULL ,
  615. "PROCESS_ID" VARCHAR2(50 BYTE) NULL ,
  616. "STATE_NAME" VARCHAR2(50 BYTE) NULL ,
  617. "BATCH" VARCHAR2(50 BYTE) NULL
  618. );
  619. COMMENT ON TABLE "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE" IS '质量不达标样品汇总表';
  620. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."ID" IS 'id';
  621. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."PLAN_FILE_NAME" IS '计划名称';
  622. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."PLAN_ID" IS '计划id';
  623. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."CITY" IS '盟市';
  624. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."TYPE" IS '类型(表名)';
  625. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."FILLING_UNIT" IS '填报单位';
  626. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."LIBRARY_POINT_NAME" IS '库点名称';
  627. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."WAREHOUSE" IS '扦样处所';
  628. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."SAMPLE_NUMBER" IS '样品编号';
  629. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."REPRESENTATIVES_NUMBER" IS '代表数量';
  630. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."NATURE" IS '储粮性质';
  631. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."VARIETIES" IS '品种';
  632. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."PLACE_ORIGIN" IS '产地/生产厂家';
  633. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."HARVEST_LIFE" IS '收获年限';
  634. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."STORAGE_TIME" IS '入库时间';
  635. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."UNQUALIFIED_ITEMS" IS '不达标项目';
  636. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."DETECTION_VALUE" IS '检测值';
  637. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."FINDINGS_AUDIT" IS '审核结果';
  638. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE"."AUDIT_OPINIONS" IS '审核意见';
  639. CREATE TABLE "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE" (
  640. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  641. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  642. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  643. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  644. "DELETE_TIME" TIMESTAMP(6) NULL ,
  645. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  646. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  647. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  648. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  649. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  650. "PLAN_FILE_NAME" VARCHAR2(200 BYTE) NULL ,
  651. "PLAN_ID" VARCHAR2(50 BYTE) NULL ,
  652. "CITY" VARCHAR2(50 BYTE) NULL ,
  653. "TYPE" VARCHAR2(50 BYTE) NULL ,
  654. "FILLING_UNIT" VARCHAR2(200 BYTE) NULL ,
  655. "CHECK_LIBRARY_POINTS" VARCHAR2(200 BYTE) NULL ,
  656. "WAREHOUSE" VARCHAR2(200 BYTE) NULL ,
  657. "FOOD_NATURE" VARCHAR2(200 BYTE) NULL ,
  658. "VARIETIES" VARCHAR2(200 BYTE) NULL ,
  659. "REPRESENTATIVES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  660. "PROJECT" VARCHAR2(200 BYTE) NULL ,
  661. "TEST_VALUE" VARCHAR2(200 BYTE) NULL ,
  662. "SEVERE_INAPPROPRIATE_SURVIVAL" VARCHAR2(200 BYTE) NULL ,
  663. "MILD_UNSUITABLE_STORAGE" VARCHAR2(200 BYTE) NULL ,
  664. "FINDINGS_AUDIT" VARCHAR2(200 BYTE) NULL ,
  665. "AUDIT_OPINIONS" VARCHAR2(200 BYTE) NULL ,
  666. "PROCESS_ID" VARCHAR2(50 BYTE) NULL ,
  667. "STATE_NAME" VARCHAR2(50 BYTE) NULL ,
  668. "BATCH" VARCHAR2(50 BYTE) NULL
  669. );
  670. COMMENT ON TABLE "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE" IS '储存品质不宜存样品汇总表';
  671. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."ID" IS 'id';
  672. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."PLAN_FILE_NAME" IS '计划名称';
  673. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."PLAN_ID" IS '计划id';
  674. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."CITY" IS '盟市';
  675. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."TYPE" IS '类型(表名)';
  676. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."FILLING_UNIT" IS '填报单位';
  677. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."CHECK_LIBRARY_POINTS" IS '检查库点名称';
  678. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."WAREHOUSE" IS '扦样处所';
  679. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."FOOD_NATURE" IS '粮食性质';
  680. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."VARIETIES" IS '样品名称';
  681. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."REPRESENTATIVES_NUMBER" IS '代表数量';
  682. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."PROJECT" IS '项目';
  683. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."TEST_VALUE" IS '检验值';
  684. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."SEVERE_INAPPROPRIATE_SURVIVAL" IS '是否为重度不宜存样品';
  685. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."MILD_UNSUITABLE_STORAGE" IS '是否为轻度不宜存样品';
  686. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."FINDINGS_AUDIT" IS '审核结果';
  687. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE"."AUDIT_OPINIONS" IS '审核意见';
  688. CREATE TABLE "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT" (
  689. "ID" VARCHAR2(50 BYTE) NOT NULL ,
  690. "CREATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  691. "CREATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  692. "DELETE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  693. "DELETE_TIME" TIMESTAMP(6) NULL ,
  694. "UPDATE_BY" VARCHAR2(36 BYTE) DEFAULT -1 NULL ,
  695. "UPDATE_TIME" TIMESTAMP(6) DEFAULT null NULL ,
  696. "ORG_ID" VARCHAR2(50 BYTE) NULL ,
  697. "DEPT_ID" VARCHAR2(50 BYTE) NULL ,
  698. "AREA_CODE" VARCHAR2(50 BYTE) NULL ,
  699. "PLAN_FILE_NAME" VARCHAR2(200 BYTE) NOT NULL ,
  700. "PLAN_ID" VARCHAR2(50 BYTE) NULL ,
  701. "CITY" VARCHAR2(50 BYTE) NULL ,
  702. "TYPE" VARCHAR2(50 BYTE) NULL ,
  703. "FILLING_UNIT" VARCHAR2(200 BYTE) NULL ,
  704. "FOOD_NATURE" VARCHAR2(200 BYTE) NULL ,
  705. "CHECK_POINT" VARCHAR2(200 BYTE) NULL ,
  706. "INSPECTION_AREA" VARCHAR2(200 BYTE) NULL ,
  707. "COMPANY_NUMBER" VARCHAR2(200 BYTE) NULL ,
  708. "SAMPLES_TOTAL" VARCHAR2(200 BYTE) NULL ,
  709. "REPRESENTATIVES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  710. "SURVIVABILITY_RATE" VARCHAR2(200 BYTE) NULL ,
  711. "MILD_UNSUITABLE_STORAGE" VARCHAR2(200 BYTE) NULL ,
  712. "SEVERE_INAPPROPRIATE_SURVIVAL" VARCHAR2(200 BYTE) NULL ,
  713. "PADDY_SAMPLES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  714. "PADDY_SURVIVABILITY_RATE" VARCHAR2(200 BYTE) NULL ,
  715. "PADDY_MILD_UNSUITABLE_STORAGE" VARCHAR2(200 BYTE) NULL ,
  716. "PADDY_SEVERE_INAPPROPRIATE_SUR" VARCHAR2(200 BYTE) NULL ,
  717. "WHEAT_SAMPLES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  718. "WHEAT_SURVIVABILITY_RATE" VARCHAR2(200 BYTE) NULL ,
  719. "WHEAT_MILD_UNSUITABLE_STORAGE" VARCHAR2(200 BYTE) NULL ,
  720. "WHEAT_SEVERE_INAPPROPRIATE_SUR" VARCHAR2(200 BYTE) NULL ,
  721. "CORN_SAMPLES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  722. "CORN_SURVIVABILITY_RATE" VARCHAR2(200 BYTE) NULL ,
  723. "CORN_MILD_UNSUITABLE_STORAGE" VARCHAR2(200 BYTE) NULL ,
  724. "CORN_SEVERE_INAPPROPRIATE_SURV" VARCHAR2(200 BYTE) NULL ,
  725. "SOYBEAN_SAMPLES_NUMBER" VARCHAR2(200 BYTE) NULL ,
  726. "SOYBEAN_SURVIVABILITY_RATE" VARCHAR2(200 BYTE) NULL ,
  727. "SOYBEAN_MILD_UNSUITABLE_STORAG" VARCHAR2(200 BYTE) NULL ,
  728. "SOYBEAN_SEVERE_INAPPROPRIATE_S" VARCHAR2(200 BYTE) NULL ,
  729. "FINDINGS_AUDIT" VARCHAR2(200 BYTE) NULL ,
  730. "AUDIT_OPINIONS" VARCHAR2(200 BYTE) NULL ,
  731. "PROCESS_ID" VARCHAR2(50 BYTE) NULL ,
  732. "STATE_NAME" VARCHAR2(50 BYTE) NULL ,
  733. "BATCH" VARCHAR2(50 BYTE) NULL
  734. );
  735. COMMENT ON TABLE "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT" IS '粮食储存品质检验结果汇总表';
  736. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."ID" IS 'id';
  737. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."PLAN_FILE_NAME" IS '计划名称';
  738. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."PLAN_ID" IS '计划id';
  739. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."CITY" IS '盟市';
  740. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."TYPE" IS '类型(表名)';
  741. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."FILLING_UNIT" IS '填报单位';
  742. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."FOOD_NATURE" IS '粮食性质';
  743. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."CHECK_POINT" IS '检查时点';
  744. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."INSPECTION_AREA" IS '检查地区';
  745. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."COMPANY_NUMBER" IS '检查企业个数';
  746. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."SAMPLES_TOTAL" IS '样品总数';
  747. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."REPRESENTATIVES_NUMBER" IS '代表数量';
  748. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."SURVIVABILITY_RATE" IS '宜存率';
  749. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."MILD_UNSUITABLE_STORAGE" IS '轻度不宜存';
  750. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."SEVERE_INAPPROPRIATE_SURVIVAL" IS '重度不宜存';
  751. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."PADDY_SAMPLES_NUMBER" IS '稻谷-样品数';
  752. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."PADDY_SURVIVABILITY_RATE" IS '稻谷-宜存率';
  753. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."PADDY_MILD_UNSUITABLE_STORAGE" IS '稻谷-轻度不宜存率';
  754. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."PADDY_SEVERE_INAPPROPRIATE_SUR" IS '稻谷-重度不宜存率';
  755. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."WHEAT_SAMPLES_NUMBER" IS '小麦-样品数';
  756. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."WHEAT_SURVIVABILITY_RATE" IS '小麦-宜存率';
  757. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."WHEAT_MILD_UNSUITABLE_STORAGE" IS '小麦-轻度不宜存率';
  758. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."WHEAT_SEVERE_INAPPROPRIATE_SUR" IS '小麦-重度不宜存率';
  759. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."CORN_SAMPLES_NUMBER" IS '玉米-样品数';
  760. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."CORN_SURVIVABILITY_RATE" IS '玉米-宜存率';
  761. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."CORN_MILD_UNSUITABLE_STORAGE" IS '玉米-轻度不宜存率';
  762. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."CORN_SEVERE_INAPPROPRIATE_SURV" IS '玉米-重度不宜存率';
  763. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."SOYBEAN_SAMPLES_NUMBER" IS '大豆-样品数';
  764. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."SOYBEAN_SURVIVABILITY_RATE" IS '大豆宜存率';
  765. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."SOYBEAN_MILD_UNSUITABLE_STORAG" IS '大豆-轻度不宜存率';
  766. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."SOYBEAN_SEVERE_INAPPROPRIATE_S" IS '大豆-重度不宜存率';
  767. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."FINDINGS_AUDIT" IS '审核结果';
  768. COMMENT ON COLUMN "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT"."AUDIT_OPINIONS" IS '审核意见';
  769. CREATE TABLE "QUALITY"."CCFA" (
  770. "ID" VARCHAR2(36 BYTE) NOT NULL ,
  771. "WTID" VARCHAR2(36 BYTE) NULL ,
  772. "CREATE_BY" VARCHAR2(36 BYTE) NULL ,
  773. "CREATE_TIME" TIMESTAMP(6) NULL ,
  774. "UPDATE_BY" VARCHAR2(36 BYTE) NULL ,
  775. "UPDATE_TIME" TIMESTAMP(6) NULL ,
  776. "DELETE_BY" VARCHAR2(36 BYTE) NULL ,
  777. "DELETE_TIME" TIMESTAMP(6) NULL ,
  778. "FABH" VARCHAR2(36 BYTE) NULL ,
  779. "FABT" VARCHAR2(36 BYTE) NULL ,
  780. "ND" VARCHAR2(36 BYTE) NULL ,
  781. "FQSJ" TIMESTAMP(6) NULL ,
  782. "JSSJ" TIMESTAMP(6) NULL ,
  783. "FAXQ" VARCHAR2(500 BYTE) NULL ,
  784. "FJID" VARCHAR2(36 BYTE) NULL ,
  785. "ZT" NUMBER NULL ,
  786. "AREA_CODE" VARCHAR2(36 BYTE) NULL ,
  787. "ORG_ID" VARCHAR2(36 BYTE) NULL ,
  788. "DEPT_ID" VARCHAR2(36 BYTE) NULL
  789. );
  790. COMMENT ON COLUMN "QUALITY"."CCFA"."CREATE_BY" IS '创建人';
  791. COMMENT ON COLUMN "QUALITY"."CCFA"."CREATE_TIME" IS '创建时间';
  792. COMMENT ON COLUMN "QUALITY"."CCFA"."UPDATE_BY" IS '编辑人';
  793. COMMENT ON COLUMN "QUALITY"."CCFA"."UPDATE_TIME" IS '编辑时间';
  794. COMMENT ON COLUMN "QUALITY"."CCFA"."DELETE_BY" IS '删除人';
  795. COMMENT ON COLUMN "QUALITY"."CCFA"."DELETE_TIME" IS '删除时间';
  796. COMMENT ON COLUMN "QUALITY"."CCFA"."FABH" IS '方案编号';
  797. COMMENT ON COLUMN "QUALITY"."CCFA"."FABT" IS '方案标题';
  798. COMMENT ON COLUMN "QUALITY"."CCFA"."ND" IS '年度';
  799. COMMENT ON COLUMN "QUALITY"."CCFA"."FQSJ" IS '发起时间';
  800. COMMENT ON COLUMN "QUALITY"."CCFA"."JSSJ" IS '结束时间';
  801. COMMENT ON COLUMN "QUALITY"."CCFA"."FAXQ" IS '方案详情';
  802. COMMENT ON COLUMN "QUALITY"."CCFA"."FJID" IS '附件id';
  803. COMMENT ON COLUMN "QUALITY"."CCFA"."ZT" IS '状态';
  804. COMMENT ON COLUMN "QUALITY"."CCFA"."AREA_CODE" IS '行政区划';
  805. COMMENT ON COLUMN "QUALITY"."CCFA"."ORG_ID" IS '机构id';
  806. COMMENT ON COLUMN "QUALITY"."CCFA"."DEPT_ID" IS '部门id';
  807. CREATE TABLE "QUALITY"."CYD" (
  808. "ID" VARCHAR2(36 BYTE) NOT NULL ,
  809. "CYPZID" VARCHAR2(36 BYTE) NULL ,
  810. "XZQHMC" VARCHAR2(36 BYTE) NULL ,
  811. "XZQHBM" VARCHAR2(36 BYTE) NULL ,
  812. "GJCYS" VARCHAR2(36 BYTE) NULL ,
  813. "SJCYS" VARCHAR2(36 BYTE) NULL
  814. );
  815. COMMENT ON COLUMN "QUALITY"."CYD"."ID" IS 'ID';
  816. COMMENT ON COLUMN "QUALITY"."CYD"."CYPZID" IS '采样品种ID';
  817. COMMENT ON COLUMN "QUALITY"."CYD"."XZQHMC" IS '行政区划名称';
  818. COMMENT ON COLUMN "QUALITY"."CYD"."XZQHBM" IS '行政区划编码';
  819. COMMENT ON COLUMN "QUALITY"."CYD"."GJCYS" IS '国家取样数';
  820. COMMENT ON COLUMN "QUALITY"."CYD"."SJCYS" IS '省级采样数';
  821. CREATE TABLE "QUALITY"."CYJH" (
  822. "ID" VARCHAR2(36 BYTE) NOT NULL ,
  823. "CYFAID" VARCHAR2(36 BYTE) NULL ,
  824. "JHBH" VARCHAR2(36 BYTE) NULL ,
  825. "JHMC" VARCHAR2(36 BYTE) NULL
  826. );
  827. COMMENT ON COLUMN "QUALITY"."CYJH"."ID" IS 'ID';
  828. COMMENT ON COLUMN "QUALITY"."CYJH"."CYFAID" IS '抽样方案ID';
  829. COMMENT ON COLUMN "QUALITY"."CYJH"."JHBH" IS '计划编号';
  830. COMMENT ON COLUMN "QUALITY"."CYJH"."JHMC" IS '计划名称';
  831. CREATE TABLE "QUALITY"."CYPZ" (
  832. "ID" VARCHAR2(36 BYTE) NOT NULL ,
  833. "CYJHID" VARCHAR2(36 BYTE) NULL ,
  834. "YPJBBM" CHAR(10 BYTE) NULL ,
  835. "YPJBMC" CHAR(10 BYTE) NULL ,
  836. "CYPZLXBM" VARCHAR2(36 BYTE) NULL ,
  837. "CYPZLXMC" VARCHAR2(36 BYTE) NULL ,
  838. "CYPZBM" VARCHAR2(36 BYTE) NULL ,
  839. "CYPZMC" VARCHAR2(96 BYTE) NULL
  840. );
  841. COMMENT ON COLUMN "QUALITY"."CYPZ"."ID" IS 'ID';
  842. COMMENT ON COLUMN "QUALITY"."CYPZ"."CYJHID" IS '采样计划ID';
  843. COMMENT ON COLUMN "QUALITY"."CYPZ"."YPJBBM" IS '样品级别编码';
  844. COMMENT ON COLUMN "QUALITY"."CYPZ"."YPJBMC" IS '样品级别名称';
  845. COMMENT ON COLUMN "QUALITY"."CYPZ"."CYPZLXBM" IS '采样品种类型编码';
  846. COMMENT ON COLUMN "QUALITY"."CYPZ"."CYPZLXMC" IS '采样品种类型名称';
  847. COMMENT ON COLUMN "QUALITY"."CYPZ"."CYPZBM" IS '采样品种编码';
  848. COMMENT ON COLUMN "QUALITY"."CYPZ"."CYPZMC" IS '采样品种名称';
  849. CREATE TABLE "QUALITY"."QYD" (
  850. "ID" VARCHAR2(36 BYTE) NOT NULL ,
  851. "WTID" VARCHAR2(36 BYTE) NULL ,
  852. "CYDID" VARCHAR2(36 BYTE) NULL ,
  853. "DD" VARCHAR2(96 BYTE) NULL ,
  854. "XXDZ" VARCHAR2(500 BYTE) NULL ,
  855. "LXR" VARCHAR2(96 BYTE) NULL ,
  856. "LXDH" NUMBER NULL ,
  857. "BZ" VARCHAR2(500 BYTE) NULL
  858. );
  859. COMMENT ON COLUMN "QUALITY"."QYD"."WTID" IS '委托ID';
  860. COMMENT ON COLUMN "QUALITY"."QYD"."CYDID" IS '采样地ID';
  861. COMMENT ON COLUMN "QUALITY"."QYD"."DD" IS '地点';
  862. COMMENT ON COLUMN "QUALITY"."QYD"."XXDZ" IS '详细地址';
  863. COMMENT ON COLUMN "QUALITY"."QYD"."LXR" IS '联系人';
  864. COMMENT ON COLUMN "QUALITY"."QYD"."LXDH" IS '联系电话';
  865. COMMENT ON COLUMN "QUALITY"."QYD"."BZ" IS '备注';
  866. CREATE TABLE "QUALITY"."WT" (
  867. "ID" VARCHAR2(36 BYTE) NOT NULL ,
  868. "CREATE_BY" VARCHAR2(36 BYTE) NULL ,
  869. "CREATE_TIME" TIMESTAMP(6) NULL ,
  870. "UPDATE_BY" VARCHAR2(36 BYTE) NULL ,
  871. "UPDATE_TIME" TIMESTAMP(6) NULL ,
  872. "DELETE_BY" VARCHAR2(36 BYTE) NULL ,
  873. "DELETE_TIME" TIMESTAMP(6) NULL ,
  874. "WTBH" VARCHAR2(36 BYTE) NULL ,
  875. "WTBT" VARCHAR2(36 BYTE) NULL ,
  876. "ZJBH" VARCHAR2(36 BYTE) NULL ,
  877. "WTLXBM" VARCHAR2(36 BYTE) NULL ,
  878. "WTLX" VARCHAR2(36 BYTE) NULL ,
  879. "ND" VARCHAR2(36 BYTE) NULL ,
  880. "WTR" VARCHAR2(36 BYTE) NULL ,
  881. "WTSJ" TIMESTAMP(6) NULL ,
  882. "FQSJ" TIMESTAMP(6) NULL ,
  883. "JSSJ" TIMESTAMP(6) NULL ,
  884. "CCDW" VARCHAR2(96 BYTE) NULL ,
  885. "WTNR" VARCHAR2(500 BYTE) NULL ,
  886. "FJID" VARCHAR2(36 BYTE) NULL ,
  887. "LCID" VARCHAR2(36 BYTE) NULL ,
  888. "AREA_CODE" VARCHAR2(36 BYTE) NULL ,
  889. "ORG_ID" VARCHAR2(36 BYTE) NULL ,
  890. "DEPT_ID" VARCHAR2(36 BYTE) NULL
  891. );
  892. COMMENT ON COLUMN "QUALITY"."WT"."ID" IS 'ID';
  893. COMMENT ON COLUMN "QUALITY"."WT"."CREATE_BY" IS '创建人';
  894. COMMENT ON COLUMN "QUALITY"."WT"."CREATE_TIME" IS '创建时间';
  895. COMMENT ON COLUMN "QUALITY"."WT"."UPDATE_BY" IS '编辑人';
  896. COMMENT ON COLUMN "QUALITY"."WT"."UPDATE_TIME" IS '编辑时间';
  897. COMMENT ON COLUMN "QUALITY"."WT"."DELETE_BY" IS '删除人';
  898. COMMENT ON COLUMN "QUALITY"."WT"."DELETE_TIME" IS '删除时间';
  899. COMMENT ON COLUMN "QUALITY"."WT"."WTBH" IS '委托编号';
  900. COMMENT ON COLUMN "QUALITY"."WT"."WTBT" IS '委托标题';
  901. COMMENT ON COLUMN "QUALITY"."WT"."ZJBH" IS '质检编号';
  902. COMMENT ON COLUMN "QUALITY"."WT"."WTLXBM" IS '委托类型编码';
  903. COMMENT ON COLUMN "QUALITY"."WT"."WTLX" IS '委托类型';
  904. COMMENT ON COLUMN "QUALITY"."WT"."ND" IS '年度';
  905. COMMENT ON COLUMN "QUALITY"."WT"."WTR" IS '委托人';
  906. COMMENT ON COLUMN "QUALITY"."WT"."WTSJ" IS '委托时间';
  907. COMMENT ON COLUMN "QUALITY"."WT"."FQSJ" IS '发起时间';
  908. COMMENT ON COLUMN "QUALITY"."WT"."JSSJ" IS '结束时间';
  909. COMMENT ON COLUMN "QUALITY"."WT"."CCDW" IS '承储单位';
  910. COMMENT ON COLUMN "QUALITY"."WT"."WTNR" IS '委托内容';
  911. COMMENT ON COLUMN "QUALITY"."WT"."FJID" IS '附件Id';
  912. COMMENT ON COLUMN "QUALITY"."WT"."LCID" IS '流程ID';
  913. ALTER TABLE "QUALITY"."BIZ_ORGANIZATION" ADD CHECK ("ID" IS NOT NULL);
  914. ALTER TABLE "QUALITY"."BIZ_EQUIPMENT" ADD CHECK ("ID" IS NOT NULL);
  915. ALTER TABLE "QUALITY"."BIZ_PERSONNEL_MANAGEMENT" ADD CHECK ("ID" IS NOT NULL);
  916. ALTER TABLE "QUALITY"."BIZ_TEST_PARAMETERS" ADD CHECK ("ID" IS NOT NULL);
  917. ALTER TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_PLANNED" ADD CHECK ("ID" IS NOT NULL);
  918. ALTER TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_AUDIT" ADD CHECK ("ID" IS NOT NULL);
  919. ALTER TABLE "QUALITY"."BIZ_QUALITY_PREDICTION_ITEMS" ADD CHECK ("ID" IS NOT NULL);
  920. ALTER TABLE "QUALITY"."BIZ_FOOD_STOCK" ADD CHECK ("ID" IS NOT NULL);
  921. ALTER TABLE "QUALITY"."BIZ_FOOD_STOCK_ITEMS" ADD CHECK ("ID" IS NOT NULL);
  922. ALTER TABLE "QUALITY"."BIZ_FOOD_STOCK_ITEMS" ADD CHECK ("FOOD_STOCK_ID" IS NOT NULL);
  923. ALTER TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS" ADD CHECK ("ID" IS NOT NULL);
  924. ALTER TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS" ADD CHECK ("FOOD_STOCK_ID" IS NOT NULL);
  925. ALTER TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS" ADD CHECK ("ID" IS NOT NULL);
  926. ALTER TABLE "QUALITY"."BIZ_SUMMARY_RESULTS" ADD CHECK ("ID" IS NOT NULL);
  927. ALTER TABLE "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS" ADD CHECK ("ID" IS NOT NULL);
  928. ALTER TABLE "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE" ADD CHECK ("ID" IS NOT NULL);
  929. ALTER TABLE "QUALITY"."BIZ_SUMMARY_NOT_SUITABLE" ADD CHECK ("ID" IS NOT NULL);
  930. ALTER TABLE "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT" ADD CHECK ("ID" IS NOT NULL);
  931. ALTER TABLE "QUALITY"."BIZ_SUMMARY_INSPECTION_RESULT" ADD CHECK ("PLAN_FILE_NAME" IS NOT NULL);
  932. ALTER TABLE "QUALITY"."CCFA" ADD CHECK ("ID" IS NOT NULL);
  933. ALTER TABLE "QUALITY"."CYD" ADD CHECK ("ID" IS NOT NULL);
  934. ALTER TABLE "QUALITY"."CYJH" ADD CHECK ("ID" IS NOT NULL);
  935. ALTER TABLE "QUALITY"."CYPZ" ADD CHECK ("ID" IS NOT NULL);
  936. ALTER TABLE "QUALITY"."QYD" ADD CHECK ("ID" IS NOT NULL);
  937. ALTER TABLE "QUALITY"."WT" ADD CHECK ("ID" IS NOT NULL);
  938. ALTER TABLE "QUALITY"."BIZ_FOOD_STOCK" ADD PRIMARY KEY ("ID");
  939. ALTER TABLE "QUALITY"."BIZ_FOOD_STOCK_ITEMS" ADD PRIMARY KEY ("ID");
  940. ALTER TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS" ADD PRIMARY KEY ("ID");
  941. ALTER TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS" ADD PRIMARY KEY ("ID");
  942. ALTER TABLE "QUALITY"."BIZ_SUMMARY_RESULTS" ADD PRIMARY KEY ("ID");
  943. ALTER TABLE "QUALITY"."BIZ_SUMMARY_RESULTS_ITEMS" ADD PRIMARY KEY ("ID");
  944. ALTER TABLE "QUALITY"."BIZ_SUMMARY_SUBSTANDARD_SAMPLE" ADD PRIMARY KEY ("ID");
  945. ALTER TABLE "QUALITY"."CCFA" ADD PRIMARY KEY ("ID");
  946. ALTER TABLE "QUALITY"."CYD" ADD PRIMARY KEY ("ID");
  947. ALTER TABLE "QUALITY"."CYJH" ADD PRIMARY KEY ("ID");
  948. ALTER TABLE "QUALITY"."CYPZ" ADD PRIMARY KEY ("ID");
  949. ALTER TABLE "QUALITY"."QYD" ADD PRIMARY KEY ("ID");
  950. ALTER TABLE "QUALITY"."WT" ADD PRIMARY KEY ("ID");
  951. ALTER TABLE "QUALITY"."BIZ_FOOD_STOCK_ITEMS" ADD FOREIGN KEY ("FOOD_STOCK_ID") REFERENCES "QUALITY"."BIZ_FOOD_STOCK" ("ID") DISABLE;
  952. ALTER TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS" ADD FOREIGN KEY ("FOOD_STOCK_ID") REFERENCES "QUALITY"."BIZ_FOOD_STOCK" ("ID") DISABLE;
  953. ALTER TABLE "QUALITY"."BIZ_GRADE_TEST_RESULTS_ITEMS" ADD FOREIGN KEY ("GRADE_TEST_RESULTS_ID") REFERENCES "QUALITY"."BIZ_GRADE_TEST_RESULTS" ("ID") DISABLE;
  954. ALTER TABLE "QUALITY"."CCFA" ADD FOREIGN KEY ("WTID") REFERENCES "QUALITY"."WT" ("ID");
  955. ALTER TABLE "QUALITY"."CYD" ADD FOREIGN KEY ("CYPZID") REFERENCES "QUALITY"."CYPZ" ("ID");
  956. ALTER TABLE "QUALITY"."CYJH" ADD FOREIGN KEY ("CYFAID") REFERENCES "QUALITY"."CCFA" ("ID");
  957. ALTER TABLE "QUALITY"."CYPZ" ADD FOREIGN KEY ("CYJHID") REFERENCES "QUALITY"."CYJH" ("ID");
  958. ALTER TABLE "QUALITY"."QYD" ADD FOREIGN KEY ("CYDID") REFERENCES "QUALITY"."CYD" ("ID");
  959. ALTER TABLE "QUALITY"."QYD" ADD FOREIGN KEY ("WTID") REFERENCES "QUALITY"."WT" ("ID");
  960. --扦样地表结构
  961. alter table QYD add (ORG_ID VARCHAR2(36) null);
  962. alter table QYD add (DEPT_ID VARCHAR2(36) null);
  963. alter table QYD add (AREA_CODE VARCHAR2(36) null);
  964. alter table QYD add (CREATE_BY VARCHAR2(36) null);
  965. alter table QYD add (CREATE_TIME TIMESTAMP);
  966. alter table QYD add (UPDATE_BY VARCHAR2(36) null);
  967. alter table QYD add (UPDATE_TIME TIMESTAMP);
  968. alter table QYD add (DELETE_BY VARCHAR2(36) null);
  969. alter table QYD add (DELETE_TIME TIMESTAMP);
  970. comment on column QYD.ORG_ID is '组织机构id';
  971. comment on column QYD.DEPT_ID is '部门ID';
  972. comment on column QYD.AREA_CODE is '行政区划code';
  973. comment on column QYD.CREATE_BY is '创建人';
  974. comment on column QYD.CREATE_TIME is '创建时间';
  975. comment on column QYD.UPDATE_BY is '修改人';
  976. comment on column QYD.UPDATE_TIME is '修改时间';
  977. comment on column QYD.DELETE_BY is '删除人';
  978. comment on column QYD.DELETE_TIME is '删除时间';
  979. --抽查方案表结构
  980. alter table CCFA add (FJMC VARCHAR2(200) null);
  981. alter table CCFA add (WTLX VARCHAR2(50) null);
  982. comment on column CCFA.FJMC is '附件名称';
  983. comment on column CCFA.WTLX is '委托类型';
  984. --采样品种字段类型长度修改
  985. alter table CYPZ modify (YPJBBM VARCHAR2(36));
  986. alter table CYPZ modify (YPJBMC VARCHAR2(36));
  987. --机构基本信息表
  988. alter table BIZ_ORGANIZATION add ( INSTITUTIONAL VARCHAR2(36) null);
  989. alter table BIZ_ORGANIZATION add ( UNIT VARCHAR2(50) null);
  990. alter table BIZ_ORGANIZATION add ( FUND_SOURCES VARCHAR2(50) null);
  991. alter table BIZ_ORGANIZATION add ( LINK_MAN VARCHAR2(50) null);
  992. alter table BIZ_ORGANIZATION add ( CONTACT_INFORMATION VARCHAR2(50) null);
  993. alter table BIZ_ORGANIZATION add ( UNIT_ADDRESS VARCHAR2(200) null);
  994. alter table BIZ_ORGANIZATION add ( REMIT VARCHAR2(200) null);
  995. comment on column BIZ_ORGANIZATION.INSTITUTIONAL is '机构性质--天津';
  996. comment on column BIZ_ORGANIZATION.UNIT is '所属单位--天津';
  997. comment on column BIZ_ORGANIZATION.FUND_SOURCES is '经费来源--天津';
  998. comment on column BIZ_ORGANIZATION.LINK_MAN is '联系人--天津';
  999. comment on column BIZ_ORGANIZATION.CONTACT_INFORMATION is '联系方式--天津';
  1000. comment on column BIZ_ORGANIZATION.UNIT_ADDRESS is '单位地址--天津';
  1001. comment on column BIZ_ORGANIZATION.REMIT is '职责权限--天津';
  1002. --人员基本信息
  1003. alter table BIZ_PERSONNEL_MANAGEMENT add ( NATION VARCHAR2(36) null);
  1004. alter table BIZ_PERSONNEL_MANAGEMENT add ( UNIT VARCHAR2(200) null);
  1005. alter table BIZ_PERSONNEL_MANAGEMENT add ( BIRTHDAY VARCHAR2(36) null);
  1006. alter table BIZ_PERSONNEL_MANAGEMENT add ( ID_CARD VARCHAR2(36) null);
  1007. alter table BIZ_PERSONNEL_MANAGEMENT add ( VOCATIONAL_GRADE VARCHAR2(36) null);
  1008. comment on column BIZ_PERSONNEL_MANAGEMENT.NATION is '民族--天津';
  1009. comment on column BIZ_PERSONNEL_MANAGEMENT.UNIT is '工作单位--天津';
  1010. comment on column BIZ_PERSONNEL_MANAGEMENT.BIRTHDAY is '出生年月--天津';
  1011. comment on column BIZ_PERSONNEL_MANAGEMENT.ID_CARD is '身份证号码--天津';
  1012. comment on column BIZ_PERSONNEL_MANAGEMENT.VOCATIONAL_GRADE is '职业等级--天津';
  1013. --机构设备管理
  1014. alter table BIZ_EQUIPMENT add ( UNIT VARCHAR2(50) null);
  1015. alter table BIZ_EQUIPMENT add ( DOMESTIC_IMPORT VARCHAR2(36) null);
  1016. alter table BIZ_EQUIPMENT add ( MODEL VARCHAR2(36) null);
  1017. alter table BIZ_EQUIPMENT add ( VALUE VARCHAR2(36) null);
  1018. alter table BIZ_EQUIPMENT add ( FACTORY_CODE VARCHAR2(50) null);
  1019. alter table BIZ_EQUIPMENT add ( ENABLE_DATE TIMESTAMP null);
  1020. alter table BIZ_EQUIPMENT add ( RECEIPT_DATE TIMESTAMP null);
  1021. alter table BIZ_EQUIPMENT add ( RECEIVING_STATE VARCHAR2(36) null);
  1022. alter table BIZ_EQUIPMENT add ( PLACE_POINT VARCHAR2(100) null);
  1023. alter table BIZ_EQUIPMENT add ( WHETHER_CERTIFY VARCHAR2(36) null);
  1024. alter table BIZ_EQUIPMENT add ( SOFTWARE_NAME VARCHAR2(200) null);
  1025. alter table BIZ_EQUIPMENT add ( TECHNICAL_PARAMETER VARCHAR2(200) null);
  1026. comment on column BIZ_EQUIPMENT.UNIT is '所在单位--天津';
  1027. comment on column BIZ_EQUIPMENT.DOMESTIC_IMPORT is '国产/进口--天津';
  1028. comment on column BIZ_EQUIPMENT.MODEL is '型号--天津';
  1029. comment on column BIZ_EQUIPMENT.VALUE is '价值--天津';
  1030. comment on column BIZ_EQUIPMENT.FACTORY_CODE is '出厂编码--天津';
  1031. comment on column BIZ_EQUIPMENT.ENABLE_DATE is '启用日期--天津';
  1032. comment on column BIZ_EQUIPMENT.RECEIPT_DATE is '收获日期--天津';
  1033. comment on column BIZ_EQUIPMENT.RECEIVING_STATE is '接收状态--天津';
  1034. comment on column BIZ_EQUIPMENT.PLACE_POINT is '放置点--天津';
  1035. comment on column BIZ_EQUIPMENT.WHETHER_CERTIFY is '是否造册--天津';
  1036. comment on column BIZ_EQUIPMENT.SOFTWARE_NAME is '软件名称--天津';
  1037. comment on column BIZ_EQUIPMENT.TECHNICAL_PARAMETER is '技术参数--天津';