Skip to content

Commit 873f900

Browse files
Add block time to state
1 parent 1846d02 commit 873f900

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

database/state.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ type State struct {
1010
//nolint
1111
tableName struct{} `gorm:"-" pg:"dipdup_state" json:"-"`
1212

13-
IndexName string `gorm:"primaryKey" pg:",pk" json:"index_name"`
14-
IndexType string `json:"index_type"`
15-
Hash string `json:"hash,omitempty"`
16-
Level uint64 `json:"level"`
17-
UpdatedAt int `gorm:"autoUpdateTime"`
13+
IndexName string `gorm:"primaryKey" pg:",pk" json:"index_name"`
14+
IndexType string `json:"index_type"`
15+
Hash string `json:"hash"`
16+
Timestamp time.Time `json:"timestamp"`
17+
Level uint64 `json:"level"`
18+
UpdatedAt int `gorm:"autoUpdateTime"`
1819
}
1920

2021
// BeforeInsert -

0 commit comments

Comments
 (0)