UNPKG

3.55 kBJSONView Raw
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_delegates",
88 "alias": "t_d",
89 "on": {
90 "t.id": "t_d.transactionId"
91 }
92 }
93 ]
94 },
95 {
96 "table": "transactions",
97 "alias": "t",
98 "type": "table",
99 "tableFields": [
100 {
101 "name": "id",
102 "type": "String",
103 "length": 21,
104 "not_null": true,
105 "unique": true,
106 "primary_key": true
107 },
108 {
109 "name": "type",
110 "type": "BigInt",
111 "not_null": true
112 },
113 {
114 "name": "senderId",
115 "type": "String",
116 "length": 21,
117 "not_null": true
118 },
119 {
120 "name": "senderPublicKey",
121 "type": "String",
122 "length": 64,
123 "not_null": true
124 },
125 {
126 "name": "recipientId",
127 "type": "String",
128 "length": 21
129 },
130 {
131 "name": "amount",
132 "type": "BigInt",
133 "not_null": true
134 },
135 {
136 "name": "fee",
137 "type": "BigInt",
138 "not_null": true
139 },
140 {
141 "name": "timestamp",
142 "type": "BigInt",
143 "not_null": true
144 },
145 {
146 "name": "signature",
147 "type": "String",
148 "length": 128,
149 "not_null": true
150 },
151 {
152 "name": "blockId",
153 "type": "String",
154 "length": 21,
155 "not_null": true
156 },
157 {
158 "name": "token",
159 "type": "String",
160 "length": 21
161 }
162 ],
163 "foreignKeys": [
164 {
165 "field": "blockId",
166 "table": "blocks",
167 "table_field": "id",
168 "on_delete": "cascade"
169 }
170 ]
171 },
172 {
173 "table": "asset_dapptransfer",
174 "alias": "t_dt",
175 "type": "table",
176 "tableFields": [
177 {
178 "name": "src_id",
179 "type": "String",
180 "length": 21,
181 "not_null": true,
182 "unique": true
183 },
184 {
185 "name": "transactionId",
186 "type": "String",
187 "length": 21,
188 "not_null": true
189 }
190 ],
191 "foreignKeys": [
192 {
193 "field": "transactionId",
194 "table": "transactions",
195 "table_field": "id",
196 "on_delete": "cascade"
197 }
198 ]
199 },
200 {
201 "table": "asset_delegates",
202 "alias": "t_d",
203 "type": "table",
204 "tableFields": [
205 {
206 "name": "delegates",
207 "type": "Text",
208 "not_null": true
209 },
210 {
211 "name": "transactionId",
212 "type": "String",
213 "length": 21,
214 "not_null": true
215 }
216 ],
217 "foreignKeys": [
218 {
219 "field": "transactionId",
220 "table": "transactions",
221 "table_field": "id",
222 "on_delete": "cascade"
223 }
224 ]
225 }
226]