somesql.sql 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. create table anon40(
  2. anon41 anon42 primary key default anon43(),
  3. anon44 text unique not null,
  4. anon45 text unique not null,
  5. anon46 text not null,
  6. anon47 text not null,
  7. anon48 text default null,
  8. anon49 text default null,
  9. anon50 text default null,
  10. anon51 text default null,
  11. anon52 text default null,
  12. anon53 text default null,
  13. anon54 text default null,
  14. anon55 text default null,
  15. anon56 text default null,
  16. anon57 text default null,
  17. anon58 text default null,
  18. anon59 text default null,
  19. anon60 text default null,
  20. anon61 text default null,
  21. anon62 varchar(30) default null,
  22. anon63 varchar(30) default null);
  23. create table anon64(
  24. anon41 serial primary key,
  25. anon65 varchar(30) not null unique,
  26. anon46 varchar(30) not null,
  27. anon66 varchar(30) not null,
  28. anon47 varchar(30) not null,
  29. anon67 text not null,
  30. anon55 varchar(30) not null unique,
  31. anon68 varchar(30) default 'o',
  32. anon69 boolean default true,
  33. anon70 int not null references anon40(anon41));
  34. create table anon71(
  35. anon72 varchar(30) not null primary key,
  36. anon73 varchar(30) not null unique,
  37. anon70 int not null references anon40(anon41));
  38. create table anon74(
  39. anon72 varchar(30) not null primary key,
  40. anon73 varchar(30) not null unique,
  41. anon75 varchar(30) not null,
  42. anon70 int not null references anon40(anon41),
  43. foreign key(anon75) references anon71(anon72));
  44. create table anon76(
  45. anon41 serial primary key,
  46. anon72 varchar(30) not null unique,
  47. anon73 varchar(30) not null unique,
  48. anon77 varchar(30) not null,
  49. anon70 int not null references anon40(anon41),
  50. foreign key(anon77) references anon74(anon72));
  51. create table anon78(
  52. anon41 serial primary key,
  53. anon72 varchar(30) not null unique,
  54. anon73 varchar(30) not null unique,
  55. anon79 int not null,
  56. anon80 varchar(30) default null,
  57. anon81 int not null,
  58. anon69 boolean not null default true,
  59. anon70 int not null references anon40(anon41),
  60. foreign key(anon79) references anon78(anon41),
  61. foreign key(anon81) references anon76(anon41));
  62. create table anon82(
  63. anon41 serial primary key,
  64. anon72 varchar(30) not null unique,
  65. anon73 text not null unique,
  66. anon79 int not null,
  67. anon80 text default null,
  68. anon83 varchar(30) not null default 'd',
  69. anon84 decimal default 0.00,
  70. anon69 boolean not null default true,
  71. anon85 decimal default 0.00,
  72. anon86 decimal default 0.00,
  73. anon87 decimal default 0.00,
  74. anon70 int not null references anon40(anon41),
  75. foreign key(anon79) references anon78(anon41));
  76. create table anon88(
  77. anon41 serial primary key,
  78. anon72 varchar(30) not null unique,
  79. anon80 text default '',
  80. anon69 boolean not null default true,
  81. anon70 int not null references anon40(anon41));
  82. create table anon89(
  83. anon90 int not null primary key,
  84. anon91 anon92 default 0.00,
  85. anon93 varchar(30),
  86. anon69 boolean not null default true,
  87. anon70 int not null references anon40(anon41),
  88. foreign key(anon90) references anon82(anon41));
  89. create table anon94(
  90. anon41 serial primary key,
  91. anon73 text unique not null,
  92. anon80 text default null,
  93. anon69 boolean not null default true,
  94. anon70 int not null references anon40(anon41));
  95. create table anon95(
  96. anon41 serial primary key,
  97. anon73 text unique not null,
  98. anon96 int not null references anon94(anon41),
  99. anon80 text default null,
  100. anon69 boolean not null default true,
  101. anon70 int not null references anon40(anon41));
  102. create table anon97(
  103. anon41 serial primary key,
  104. anon73 text unique not null,
  105. anon98 int not null references anon95(anon41),
  106. anon80 text default null,
  107. anon69 boolean not null default true,
  108. anon70 int not null references anon40(anon41));
  109. create table anon99(
  110. anon41 serial primary key,
  111. anon73 varchar(30) unique not null,
  112. anon100 varchar(30) default null,
  113. anon101 anon102 default 0,
  114. anon103 varchar(30) default 'g',
  115. anon104 int not null,
  116. anon105 decimal not null default 1,
  117. anon69 boolean not null default true,
  118. anon70 int not null references anon40(anon41));
  119. create table anon106(
  120. anon107 varchar(30) default 'g',
  121. anon108 int references anon99(anon41) not null,
  122. anon109 decimal default 1,
  123. anon110 int references anon99(anon41) not null,
  124. anon70 int not null references anon40(anon41));
  125. create table anon111(
  126. anon41 serial primary key,
  127. anon112 text unique not null,
  128. anon73 text unique not null,
  129. anon113 anon102 references anon97(anon41) not null,
  130. anon114 varchar(30) not null,
  131. anon115 int not null references anon88(anon41),
  132. anon116 int not null references anon82(anon41),
  133. anon117 int not null references anon82(anon41),
  134. anon118 int not null references anon82(anon41),
  135. anon119 int not null references anon82(anon41),
  136. anon120 int not null references anon82(anon41),
  137. anon121 int not null references anon82(anon41),
  138. anon122 int references anon99(anon41) not null,
  139. anon123 decimal default 0.00,
  140. anon124 decimal default 0.00,
  141. anon69 boolean default true,
  142. anon70 int not null references anon40(anon41));
  143. create table anon125(
  144. anon41 serial primary key,
  145. anon126 int references anon111(anon41) not null,
  146. anon80 text not null,
  147. anon127 varchar(30) not null,
  148. anon128 decimal default 0.00,
  149. anon129 decimal default 0,
  150. anon130 decimal default 0,
  151. anon131 decimal default 0,
  152. anon132 decimal default 0,
  153. anon133 decimal default 0.00,
  154. anon134 decimal default 0.00,
  155. anon135 decimal default 0.00,
  156. anon70 int not null references anon40(anon41), constraint anon136 check anon137(anon126, anon127, anon129));
  157. create table anon138(
  158. anon41 serial primary key,
  159. anon126 int references anon111(anon41) not null,
  160. anon80 text not null,
  161. anon127 varchar(30) not null,
  162. anon139 date not null,
  163. anon129 decimal default 0,
  164. anon130 decimal default 0,
  165. anon131 decimal default 0,
  166. anon132 decimal default 0,
  167. anon70 int not null references anon40(anon41), constraint anon136 check anon137(anon127, anon129));
  168. create table anon140(
  169. anon41 serial primary key,
  170. anon141 text unique not null,
  171. anon46 text default null,
  172. anon47 text default null,
  173. anon57 varchar(30) default null,
  174. anon142 text default null,
  175. anon51 text default null,
  176. anon143 varchar(30) default null,
  177. anon53 text default null,
  178. anon54 text default null,
  179. anon55 text default null,
  180. anon45 text default null,
  181. anon69 boolean default true,
  182. anon70 int not null references anon40(anon41));
  183. create table anon144(
  184. anon41 serial primary key,
  185. anon72 varchar(30) unique not null,
  186. anon73 varchar(30) unique not null,
  187. anon80 varchar(30) default null,
  188. anon69 boolean default true,
  189. anon70 int not null references anon40(anon41));
  190. create table anon145(
  191. anon41 serial primary key,
  192. anon72 varchar(30) unique not null,
  193. anon73 varchar(30) unique not null,
  194. anon146 int not null,
  195. anon147 anon92 default 1,
  196. anon148 anon92 default 9999999,
  197. anon80 varchar(30) default null,
  198. anon69 boolean default true,
  199. anon149 int default 0,
  200. anon150 int not null,
  201. anon151 anon92 default 0,
  202. anon70 int not null references anon40(anon41),
  203. foreign key(anon150) references anon82(anon41),
  204. foreign key(anon146) references anon144(anon41));
  205. create table anon152(
  206. anon41 serial primary key,
  207. anon73 varchar(30) not null unique,
  208. anon153 varchar(30) not null unique,
  209. anon80 text default null,
  210. anon69 boolean not null default true,
  211. anon70 int not null references anon40(anon41));
  212. create table anon154(
  213. anon41 serial primary key not null,
  214. anon155 int not null unique,
  215. date date default anon156 not null,
  216. anon157 anon102 references anon140(anon41) not null,
  217. anon158 anon102 references anon64(anon41) not null,
  218. anon159 decimal default 0 not null,
  219. anon160 decimal default 0 not null,
  220. anon161 decimal default 0 not null,
  221. anon162 decimal default 0 not null,
  222. anon163 decimal default 0 not null,
  223. anon164 decimal default 0 not null,
  224. anon165 decimal default 0.00,
  225. anon166 decimal default 0 not null,
  226. anon167 decimal default 0.00,
  227. anon168 decimal default 0 not null,
  228. anon169 boolean default false,
  229. anon170 varchar(30) default 'ca',
  230. anon171 varchar(30) default 'n',
  231. anon172 varchar(30) not null default 'd',
  232. anon173 decimal default 0.00,
  233. anon174 decimal default 0.00,
  234. anon175 int,
  235. anon176 varchar(30) default null,
  236. anon177 varchar(30) default '',
  237. anon178 varchar(30) default null,
  238. anon70 int not null references anon40(anon41));
  239. create table anon179(
  240. anon41 serial primary key not null,
  241. anon180 anon102 references anon154(anon41) not null,
  242. anon181 int references anon125(anon41) not null,
  243. anon182 int references anon82(anon41) not null,
  244. anon122 int references anon99(anon41) not null,
  245. anon183 decimal not null,
  246. anon184 decimal default 0.00,
  247. anon174 decimal default 0,
  248. anon160 decimal default 0.00,
  249. anon185 decimal default 0,
  250. anon162 decimal default 0.00,
  251. anon186 decimal default 0,
  252. anon163 decimal default 0.00,
  253. anon187 decimal default 0,
  254. anon164 decimal default 0.00,
  255. anon188 decimal default 0,
  256. anon161 decimal default 0.00,
  257. anon189 decimal default 0.00,
  258. anon168 decimal default 0.00,
  259. anon190 decimal not null,
  260. anon191 decimal default 0,
  261. anon83 varchar(30) not null default 't',
  262. anon192 decimal default 0,
  263. anon193 decimal not null,
  264. anon194 decimal not null,
  265. anon70 int not null references anon40(anon41));
  266. create table anon195(
  267. anon41 serial not null,
  268. anon196 int not null,
  269. anon175 char not null,
  270. anon90 int not null references anon82,
  271. anon165 decimal default 0.00,
  272. anon70 int not null references anon40(anon41), primary key(anon196, anon175));
  273. create table anon197(
  274. anon41 serial not null,
  275. anon196 int not null,
  276. anon175 char not null,
  277. anon198 int not null,
  278. anon189 decimal default 0.00,
  279. anon199 varchar(30) default null,
  280. anon200 varchar(30) default null,
  281. anon70 int not null references anon40(anon41),
  282. primary key(anon196, anon175),
  283. foreign key(anon198) references anon145(anon41));
  284. create table anon201(
  285. anon41 serial primary key,
  286. anon202 varchar(30) not null,
  287. anon203 varchar(30) not null,
  288. anon204 varchar(30) not null,
  289. anon205 varchar(30) not null,
  290. anon206 boolean default null,
  291. anon70 int not null references anon40(anon41));
  292. create table anon207(
  293. anon41 serial primary key,
  294. anon208 varchar(30) not null,
  295. anon209 varchar(30) not null,
  296. anon204 varchar(30) default null,
  297. anon70 int not null references anon40(anon41));
  298. select * from anon207 where anon41 in (1, 2, 3);