OSDN Git Service

mv timestamp type def
[bytom/vapor.git] / toolbar / federation / database / orm / chain.go
index afbdbe8..92656eb 100644 (file)
@@ -1,14 +1,14 @@
 package orm
 
 import (
-       "github.com/vapor/toolbar/federation/types"
+       "github.com/vapor/toolbar/common"
 )
 
 type Chain struct {
-       ID          uint64          `gorm:"primary_key" json:"-"`
-       Name        string          `json:"name"`
-       BlockHeight uint64          `json:"block_height"`
-       BlockHash   string          `json:"block_hash"`
-       CreatedAt   types.Timestamp `json:"-"`
-       UpdatedAt   types.Timestamp `json:"-"`
+       ID          uint64           `gorm:"primary_key" json:"-"`
+       Name        string           `json:"name"`
+       BlockHeight uint64           `json:"block_height"`
+       BlockHash   string           `json:"block_hash"`
+       CreatedAt   common.Timestamp `json:"-"`
+       UpdatedAt   common.Timestamp `json:"-"`
 }