1+ CREATE TABLE IF NOT EXISTS inserts_null_table
2+ (
3+ chain_id UInt256,
4+ block Tuple(
5+ block_number UInt256,
6+ block_timestamp DateTime,
7+ hash FixedString(66 ),
8+ parent_hash FixedString(66 ),
9+ sha3_uncles FixedString(66 ),
10+ nonce FixedString(18 ),
11+ mix_hash FixedString(66 ),
12+ miner FixedString(42 ),
13+ state_root FixedString(66 ),
14+ transactions_root FixedString(66 ),
15+ receipts_root FixedString(66 ),
16+ logs_bloom String,
17+ size UInt64,
18+ extra_data String,
19+ difficulty UInt256,
20+ total_difficulty UInt256,
21+ transaction_count UInt64,
22+ gas_limit UInt256,
23+ gas_used UInt256,
24+ withdrawals_root FixedString(66 ),
25+ base_fee_per_gas Nullable(UInt64)),
26+ transactions Array(Tuple(
27+ hash FixedString(66 ),
28+ nonce UInt64,
29+ block_hash FixedString(66 ),
30+ block_number UInt256,
31+ block_timestamp DateTime,
32+ transaction_index UInt64,
33+ from_address FixedString(42 ),
34+ to_address FixedString(42 ),
35+ value UInt256,
36+ gas UInt64,
37+ gas_price UInt256,
38+ data String,
39+ function_selector FixedString(10 ),
40+ max_fee_per_gas UInt128,
41+ max_priority_fee_per_gas UInt128,
42+ max_fee_per_blob_gas UInt256,
43+ blob_versioned_hashes Array(String),
44+ transaction_type UInt8,
45+ r UInt256,
46+ s UInt256,
47+ v UInt256,
48+ access_list Nullable(String),
49+ authorization_list Nullable(String),
50+ contract_address Nullable(FixedString(42 )),
51+ gas_used Nullable(UInt64),
52+ cumulative_gas_used Nullable(UInt64),
53+ effective_gas_price Nullable(UInt256),
54+ blob_gas_used Nullable(UInt64),
55+ blob_gas_price Nullable(UInt256),
56+ logs_bloom Nullable(String),
57+ status Nullable(UInt64))),
58+ logs Array(Tuple(
59+ block_number UInt256,
60+ block_hash FixedString(66 ),
61+ block_timestamp DateTime,
62+ transaction_hash FixedString(66 ),
63+ transaction_index UInt64,
64+ log_index UInt64,
65+ address FixedString(42 ),
66+ data String,
67+ topic_0 String,
68+ topic_1 String,
69+ topic_2 String,
70+ topic_3 String)),
71+ traces Array(Tuple(
72+ block_number UInt256,
73+ block_hash FixedString(66 ),
74+ block_timestamp DateTime,
75+ transaction_hash FixedString(66 ),
76+ transaction_index UInt64,
77+ subtraces Int64,
78+ trace_address Array(Int64),
79+ type LowCardinality(String),
80+ call_type LowCardinality(String),
81+ error Nullable(String),
82+ from_address FixedString(42 ),
83+ to_address FixedString(42 ),
84+ gas UInt64,
85+ gas_used UInt64,
86+ input String,
87+ output Nullable(String),
88+ value UInt256,
89+ author Nullable(FixedString(42 )),
90+ reward_type LowCardinality(Nullable(String)),
91+ refund_address Nullable(FixedString(42 )))),
92+ token_transfers Array(Tuple(
93+ token_type LowCardinality(String),
94+ token_address FixedString(42 ),
95+ token_id UInt256,
96+ from_address FixedString(42 ),
97+ to_address FixedString(42 ),
98+ block_number UInt256,
99+ block_timestamp DateTime,
100+ transaction_hash FixedString(66 ),
101+ transaction_index UInt64,
102+ amount UInt256,
103+ log_index UInt64,
104+ batch_index Nullable(UInt16))),
105+ insert_timestamp DateTime DEFAULT now(),
106+ is_deleted UInt8 DEFAULT 0 ,
107+ sign Int8 DEFAULT 1
108+ )
109+ ENGINE = Null
0 commit comments