table_create.sql 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. create table if not exists aoid_config_data(
  2. jh text primary key,
  3. bj real,
  4. bs real,
  5. hsl real,
  6. smd real,
  7. ymd real,
  8. qyb real,
  9. dym real,
  10. yy real,
  11. ty real,
  12. hy real,
  13. totalgtnum integer);
  14. create table if not exists aoid_daily_yield(
  15. well_common_name text,
  16. well_id text,
  17. prod_date text,
  18. liq_prod_daily real,
  19. oil_prod_daily real,
  20. water_prod_daily real,
  21. gas_prod_daily real,
  22. bx real,
  23. llpl real,
  24. prod_time real,
  25. clxs real,
  26. stroke real,
  27. frequence real,
  28. water_cut real,
  29. bj real,
  30. bs real,
  31. cmd real,
  32. yz real,
  33. scsj real,
  34. yy real,
  35. hy real,
  36. ty real,
  37. bz text,
  38. sfyc real,
  39. dym real,
  40. rcy2 real,
  41. rcu2 real,
  42. rcs2 real,
  43. a2_liq_prod_daily real,
  44. a2_oil_prod_daily real,
  45. a2_water_prod_daily real,
  46. yxgts real,
  47. errorgts real,
  48. zdjg text,
  49. djdy real,
  50. zyq text,
  51. jlz text,
  52. hjwd real,
  53. ybdl real,
  54. sbh text,
  55. xhqd real,
  56. yl real,
  57. rzbz text);
  58. create unique index if not exists aoid_daily_yield_well_id_prod_date_uindex on aoid_daily_yield (well_id,prod_date);
  59. create table if not exists aoid_gk_model(
  60. gkxs real,
  61. result text);
  62. create table if not exists aoid_singlegt_yield(
  63. well_id text,
  64. well_common_name text,
  65. prod_date text,
  66. stroke real,
  67. frequence real,
  68. bj real,
  69. bs real,
  70. cmd real,
  71. yzzj real,
  72. sxzh real,
  73. xxzh real,
  74. sgt text,
  75. bgt text,
  76. zdjg text,
  77. refrencewell_id text,
  78. refrencecjsj text,
  79. liq_prod_daily real,
  80. oil_prod_daily real,
  81. gas_prod_daily real,
  82. eczdjg text,
  83. bx real,
  84. hsl real,
  85. flag real,
  86. bdxs real,
  87. llpl real,
  88. zcc real,
  89. ycc real,
  90. sjcc real,
  91. yxcc real,
  92. ccss real,
  93. lsss real,
  94. gyss real,
  95. pumpdepth real,
  96. hy real,
  97. yy real,
  98. ty real,
  99. water_prod_daily real,
  100. refrencesgt text,
  101. scsj real,
  102. qyb real,
  103. stroke_ratio real,
  104. djdy real,
  105. hjwd real,
  106. ybdl real,
  107. xhqd real,
  108. sbh text);
  109. create unique index if not exists aoid_singlegt_yield_well_id_prod_date_uindex on aoid_singlegt_yield (well_id,prod_date);
  110. create table if not exists aoid_singlewell_config(
  111. id real primary key,
  112. gradient_1 real,
  113. gradient_2 real,
  114. gradient_3 real,
  115. gradient_4 real,
  116. gradient_5 real,
  117. gradient_6 real,
  118. gradient_7 real,
  119. gradient_8 real,
  120. gradient_9 real,
  121. gradient_10 real,
  122. dividenum_1 real,
  123. dividenum_2 real,
  124. dividenum_3 real,
  125. dividenum_4 real,
  126. dividenum_5 real,
  127. dividenum_6 real,
  128. dividenum_7 real,
  129. dividenum_8 real,
  130. dividenum_9 real,
  131. dividenum_10 real);
  132. create table if not exists dgns_gtbaseparam(
  133. id text,
  134. createtime text,
  135. recivetime text,
  136. wellname text,
  137. sgt text,
  138. s_max real,
  139. s_min real,
  140. l_max real,
  141. l_min real,
  142. l_mid real,
  143. l_fistdownturnpoint real,
  144. s real,
  145. s_pre real,
  146. n real,
  147. l real,
  148. s_effect real,
  149. area real,
  150. upload real,
  151. download real,
  152. islegal integer,
  153. remark text,
  154. sgtpointnum integer,
  155. s_max_point_location integer,
  156. s_min_point_location integer,
  157. l_max_point_location integer,
  158. l_min_point_location integer);
  159. create unique index if not exists dgns_gtbaseparam_wellname_recivetime_uindex on dgns_gtbaseparam (wellname,recivetime);
  160. create table if not exists dgns_gtcard_lib(
  161. id text primary key,
  162. well_id text,
  163. pro_date text,
  164. tvec text,
  165. indicator_diagram text,
  166. result text,
  167. jh text,
  168. effectonjh integer,
  169. effectonqk integer,
  170. effectonall integer,
  171. maxload real,
  172. minload real,
  173. dload real,
  174. create_time text,
  175. code integer);
  176. create table if not exists dgns_gtcvrparam(
  177. paramid integer primary key,
  178. paramitemname text,
  179. paramcontent text);
  180. create table if not exists dgns_gtcvrresult(
  181. id text,
  182. result1 text,
  183. result2 text,
  184. wellname text,
  185. sgt text,
  186. processparam text,
  187. remark text,
  188. createtime text,
  189. userconfirmtime text,
  190. userconfirmcontent text,
  191. isproblem text,
  192. isexpected integer);
  193. create table if not exists dgns_gtgktype(
  194. id integer primary key,
  195. gkname text,
  196. dec text,
  197. modbustranscode text,
  198. remark text);
  199. create table if not exists dgns_gtmloutcode(
  200. gkcode integer,
  201. gkdec text);
  202. create table if not exists dgns_gtserverrunlog(
  203. time text,
  204. contents text,
  205. item text,
  206. code integer);
  207. create table if not exists dgns_gtstandard(
  208. sgtprodate text,
  209. createtime text,
  210. id text,
  211. future text,
  212. appearcounter integer,
  213. graphicfeatureinterpretation text,
  214. maxsemblance real,
  215. minsemblance real,
  216. wellname text,
  217. latestupdatedtime text);
  218. create unique index if not exists dgns_gtstandard_wellname_sgtprodate_uindex on dgns_gtstandard (wellname,sgtprodate);