OSDN Git Service

fix
authorHAOYUatHZ <haoyu@protonmail.com>
Fri, 2 Aug 2019 08:51:46 +0000 (16:51 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Fri, 2 Aug 2019 08:51:46 +0000 (16:51 +0800)
toolbar/precog/database/orm/chain.go
toolbar/precog/database/orm/node.go

index 3ddfb45..284795f 100644 (file)
@@ -1,5 +1,11 @@
 package orm
 
+import (
+       "time"
+)
+
 type Chain struct {
        BestHeight uint64
+       CreatedAt  time.Time
+       UpdatedAt  time.Time
 }
index bdd7c1f..ba44fdc 100644 (file)
@@ -1,9 +1,15 @@
 package orm
 
+import (
+       "time"
+)
+
 type Node struct {
        Alias      string       `json:"alias"`
        HostPort   string       `json:"host_port"`
        PubKey     chainkd.XPub `json:"pubkey"`
        BestHeight uint64       `json:"best_height"`
        LantencyMS uint64       `json:"lantency_ms"` // TODO:
+       CreatedAt  time.Time
+       UpdatedAt  time.Time
 }