@@ -25,18 +25,18 @@ drop table statistics;
25
25
26
26
create table if not exists blocks
27
27
(
28
- statehash varchar (200 ) not null ,
28
+ statehash varchar (400 ) not null ,
29
29
canonical bool not null ,
30
- previousstatehash varchar (200 ) not null ,
31
- snarkedledgerhash varchar (200 ) not null ,
32
- stagedledgerhash varchar (200 ) not null ,
33
- coinbase int not null ,
30
+ previousstatehash varchar (400 ) not null ,
31
+ snarkedledgerhash varchar (400 ) not null ,
32
+ stagedledgerhash varchar (400 ) not null ,
33
+ coinbase numeric not null ,
34
34
creator varchar (200 ) not null ,
35
35
slot int not null ,
36
36
height int not null ,
37
37
epoch int not null ,
38
38
ts timestamp not null ,
39
- totalcurrency int not null ,
39
+ totalcurrency numeric not null ,
40
40
usercommandscount int not null ,
41
41
snarkjobscount int not null ,
42
42
feetransfercount int not null ,
@@ -48,7 +48,7 @@ create index idx_blocks_height on blocks (height);
48
48
49
49
create table if not exists snarkjobs
50
50
(
51
- blockstatehash varchar (200 ) not null ,
51
+ blockstatehash varchar (400 ) not null ,
52
52
canonical bool not null ,
53
53
index int not null ,
54
54
jobids int [] not null ,
@@ -60,7 +60,7 @@ create index idx_snarkjobs_prover on snarkjobs (prover);
60
60
61
61
create table if not exists feetransfers
62
62
(
63
- blockstatehash varchar (200 ) not null ,
63
+ blockstatehash varchar (400 ) not null ,
64
64
canonical bool not null ,
65
65
index int not null ,
66
66
recipient varchar (200 ) not null ,
@@ -71,27 +71,27 @@ create index idx_feetransfers_recipient on feetransfers (recipient);
71
71
72
72
create table if not exists userjobs
73
73
(
74
- blockstatehash varchar (200 ) not null ,
75
- canonical bool not null ,
76
- index int not null ,
77
- id varchar ( 1000 ) not null ,
78
- sender varchar (200 ) not null ,
79
- recipient varchar (200 ) not null ,
80
- memo varchar (200 ) not null ,
81
- fee int not null ,
82
- amount int not null ,
83
- nonce varchar (200 ) not null ,
84
- delegation bool not null ,
74
+ blockstatehash varchar (400 ) not null ,
75
+ canonical bool not null ,
76
+ index int not null ,
77
+ id text not null ,
78
+ sender varchar (200 ) not null ,
79
+ recipient varchar (200 ) not null ,
80
+ memo varchar (200 ) not null ,
81
+ fee numeric not null ,
82
+ amount numeric not null ,
83
+ nonce varchar (200 ) not null ,
84
+ delegation bool not null ,
85
85
primary key (blockstatehash, index)
86
86
);
87
87
create index idx_userjobs_id on userjobs (id);
88
88
89
89
create table if not exists accounts
90
90
(
91
91
publickey varchar (200 ) not null primary key ,
92
- balance int not null ,
92
+ balance numeric not null ,
93
93
nonce int not null ,
94
- receiptchainhash varchar (200 ) not null ,
94
+ receiptchainhash varchar (400 ) not null ,
95
95
delegate varchar (200 ) not null ,
96
96
votingfor varchar (200 ) not null ,
97
97
txsent int not null ,
@@ -113,9 +113,9 @@ create index idx_accounts_snarkjobs on accounts (snarkjobs);
113
113
create table if not exists accounttransactions
114
114
(
115
115
publickey varchar (200 ) not null ,
116
- blockstatehash varchar (200 ) not null ,
116
+ blockstatehash varchar (400 ) not null ,
117
117
canonical bool not null ,
118
- id varchar ( 1000 ) not null ,
118
+ id text not null ,
119
119
ts timestamp not null ,
120
120
primary key (publickey, ts, blockstatehash, id)
121
121
);
@@ -131,11 +131,11 @@ create table if not exists daemonstatus
131
131
slotsperepoch int not null ,
132
132
consensusmechanism varchar (200 ) not null ,
133
133
highestblocklengthreceived int not null ,
134
- ledgermerkleroot varchar (200 ) not null ,
134
+ ledgermerkleroot varchar (400 ) not null ,
135
135
numaccounts int not null ,
136
136
peers text [] not null ,
137
137
peerscount int not null ,
138
- statehash varchar (200 ) not null ,
138
+ statehash varchar (400 ) not null ,
139
139
syncstatus varchar (200 ) not null ,
140
140
uptime int not null
141
141
);
0 commit comments