1 | [
|
2 | {
|
3 | "table": "blocks",
|
4 | "alias": "b",
|
5 | "type": "table",
|
6 | "tableFields": [
|
7 | {
|
8 | "name": "id",
|
9 | "type": "String",
|
10 | "length": 21,
|
11 | "not_null": true,
|
12 | "unique": true,
|
13 | "primary_key": true
|
14 | },
|
15 | {
|
16 | "name": "timestamp",
|
17 | "type": "BigInt",
|
18 | "not_null": true
|
19 | },
|
20 | {
|
21 | "name": "height",
|
22 | "type": "BigInt",
|
23 | "not_null": true
|
24 | },
|
25 | {
|
26 | "name": "payloadLength",
|
27 | "type": "BigInt",
|
28 | "not_null": true
|
29 | },
|
30 | {
|
31 | "name": "payloadHash",
|
32 | "type": "String",
|
33 | "length": 64,
|
34 | "not_null": true
|
35 | },
|
36 | {
|
37 | "name": "prevBlockId",
|
38 | "type": "String",
|
39 | "length": 21
|
40 | },
|
41 | {
|
42 | "name": "pointId",
|
43 | "type": "String",
|
44 | "length": 21
|
45 | },
|
46 | {
|
47 | "name": "pointHeight",
|
48 | "type": "BigInt"
|
49 | },
|
50 | {
|
51 | "name": "delegate",
|
52 | "type": "String",
|
53 | "length": 64,
|
54 | "not_null": true
|
55 | },
|
56 | {
|
57 | "name": "signature",
|
58 | "type": "String",
|
59 | "length": 128,
|
60 | "not_null": true
|
61 | },
|
62 | {
|
63 | "name": "count",
|
64 | "type": "BigInt",
|
65 | "not_null": true
|
66 | }
|
67 | ],
|
68 | "join": [
|
69 | {
|
70 | "type": "left outer",
|
71 | "table": "transactions",
|
72 | "alias": "t",
|
73 | "on": {
|
74 | "b.\"id\"": "t.\"blockId\""
|
75 | }
|
76 | },
|
77 | {
|
78 | "type": "left outer",
|
79 | "table": "asset_dapptransfer",
|
80 | "alias": "t_dt",
|
81 | "on": {
|
82 | "t.id": "t_dt.\"transactionId\""
|
83 | }
|
84 | },
|
85 | {
|
86 | "type": "left outer",
|
87 | "table": "asset_myasset",
|
88 | "alias": "t_ma",
|
89 | "on": {
|
90 | "t.id": "t_ma.\"transactionId\""
|
91 | }
|
92 | },
|
93 | {
|
94 | "type": "left outer",
|
95 | "table": "asset_delegates",
|
96 | "alias": "t_d",
|
97 | "on": {
|
98 | "t.id": "t_d.\"transactionId\""
|
99 | }
|
100 | },
|
101 | {
|
102 | "type": "left outer",
|
103 | "table": "asset_token",
|
104 | "alias": "t_t",
|
105 | "on": {
|
106 | "t.id": "t_t.\"transactionId\""
|
107 | }
|
108 | }
|
109 | ]
|
110 | },
|
111 | {
|
112 | "table": "transactions",
|
113 | "alias": "t",
|
114 | "type": "table",
|
115 | "tableFields": [
|
116 | {
|
117 | "name": "id",
|
118 | "type": "String",
|
119 | "length": 21,
|
120 | "not_null": true,
|
121 | "unique": true,
|
122 | "primary_key": true
|
123 | },
|
124 | {
|
125 | "name": "type",
|
126 | "type": "BigInt",
|
127 | "not_null": true
|
128 | },
|
129 | {
|
130 | "name": "senderId",
|
131 | "type": "String",
|
132 | "length": 21,
|
133 | "not_null": true
|
134 | },
|
135 | {
|
136 | "name": "senderPublicKey",
|
137 | "type": "String",
|
138 | "length": 64,
|
139 | "not_null": true
|
140 | },
|
141 | {
|
142 | "name": "recipientId",
|
143 | "type": "String",
|
144 | "length": 21
|
145 | },
|
146 | {
|
147 | "name": "amount",
|
148 | "type": "BigInt",
|
149 | "not_null": true
|
150 | },
|
151 | {
|
152 | "name": "fee",
|
153 | "type": "BigInt",
|
154 | "not_null": true
|
155 | },
|
156 | {
|
157 | "name": "timestamp",
|
158 | "type": "BigInt",
|
159 | "not_null": true
|
160 | },
|
161 | {
|
162 | "name": "signature",
|
163 | "type": "String",
|
164 | "length": 128,
|
165 | "not_null": true
|
166 | },
|
167 | {
|
168 | "name": "blockId",
|
169 | "type": "String",
|
170 | "length": 21,
|
171 | "not_null": true
|
172 | },
|
173 | {
|
174 | "name": "token",
|
175 | "type": "String",
|
176 | "length": 21
|
177 | }
|
178 | ],
|
179 | "foreignKeys": [
|
180 | {
|
181 | "field": "blockId",
|
182 | "table": "blocks",
|
183 | "table_field": "id",
|
184 | "on_delete": "cascade"
|
185 | }
|
186 | ]
|
187 | },
|
188 | {
|
189 | "table": "asset_dapptransfer",
|
190 | "alias": "t_dt",
|
191 | "type": "table",
|
192 | "tableFields": [
|
193 | {
|
194 | "name": "src_id",
|
195 | "type": "String",
|
196 | "length": 21,
|
197 | "not_null": true,
|
198 | "unique": true
|
199 | },
|
200 | {
|
201 | "name": "transactionId",
|
202 | "type": "String",
|
203 | "length": 21,
|
204 | "not_null": true
|
205 | }
|
206 | ],
|
207 | "foreignKeys": [
|
208 | {
|
209 | "field": "transactionId",
|
210 | "table": "transactions",
|
211 | "table_field": "id",
|
212 | "on_delete": "cascade"
|
213 | }
|
214 | ]
|
215 | },
|
216 | {
|
217 | "table": "asset_myasset",
|
218 | "alias": "t_ma",
|
219 | "type": "table",
|
220 | "tableFields": [
|
221 | {
|
222 | "name": "text",
|
223 | "type": "String",
|
224 | "length": 255,
|
225 | "not_null": true
|
226 | },
|
227 | {
|
228 | "name": "transactionId",
|
229 | "type": "String",
|
230 | "length": 21,
|
231 | "not_null": true
|
232 | }
|
233 | ],
|
234 | "foreignKeys": [
|
235 | {
|
236 | "field": "transactionId",
|
237 | "table": "transactions",
|
238 | "table_field": "id",
|
239 | "on_delete": "cascade"
|
240 | }
|
241 | ]
|
242 | },
|
243 | {
|
244 | "table": "asset_delegates",
|
245 | "alias": "t_d",
|
246 | "type": "table",
|
247 | "tableFields": [
|
248 | {
|
249 | "name": "delegates",
|
250 | "type": "Text",
|
251 | "not_null": true
|
252 | },
|
253 | {
|
254 | "name": "transactionId",
|
255 | "type": "String",
|
256 | "length": 21,
|
257 | "not_null": true
|
258 | }
|
259 | ],
|
260 | "foreignKeys": [
|
261 | {
|
262 | "field": "transactionId",
|
263 | "table": "transactions",
|
264 | "table_field": "id",
|
265 | "on_delete": "cascade"
|
266 | }
|
267 | ]
|
268 | },
|
269 | {
|
270 | "table": "asset_token",
|
271 | "alias": "t_t",
|
272 | "type": "table",
|
273 | "tableFields": [
|
274 | {
|
275 | "name": "name",
|
276 | "type": "String",
|
277 | "length": 16,
|
278 | "not_null": true
|
279 | },
|
280 | {
|
281 | "name": "description",
|
282 | "type": "Text",
|
283 | "not_null": true
|
284 | },
|
285 | {
|
286 | "name": "fund",
|
287 | "type": "BigInt",
|
288 | "not_null": true
|
289 | },
|
290 | {
|
291 | "name": "transactionId",
|
292 | "type": "String",
|
293 | "length": 21,
|
294 | "not_null": true
|
295 | }
|
296 | ],
|
297 | "foreignKeys": [
|
298 | {
|
299 | "field": "transactionId",
|
300 | "table": "transactions",
|
301 | "table_field": "id",
|
302 | "on_delete": "cascade"
|
303 | }
|
304 | ]
|
305 | }
|
306 | ]
|