create sql tables (#40)

Co-authored-by: Eduard S <eduard@iden3.io>
This commit is contained in:
a_bennassar
2020-08-11 16:25:55 +02:00
committed by GitHub
parent 1313a5aabd
commit 428dcd7590
10 changed files with 780 additions and 14 deletions

View File

@@ -8,8 +8,7 @@ import (
// Block represents of an Ethereum block
type Block struct {
EthBlockNum uint64
Timestamp time.Time
Hash eth.Hash
PrevHash eth.Hash
EthBlockNum uint64 `meddler:"eth_block_num"`
Timestamp time.Time `meddler:"timestamp"`
Hash eth.Hash `meddler:"hash"`
}