X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=federation%2Fdatabase%2Form%2Fcross_transaction.go;h=ddb0841411f291cc4d2fc58a840044c019468e0d;hp=345074b8dbb48b440fa2a729175b6b2d12d28f7e;hb=4c43de6c51c2f266b6671cf6ff724aae4ca6c8fa;hpb=f47413c46121216dae3b1a905fbe53ae559adee2 diff --git a/federation/database/orm/cross_transaction.go b/federation/database/orm/cross_transaction.go index 345074b8..ddb08414 100644 --- a/federation/database/orm/cross_transaction.go +++ b/federation/database/orm/cross_transaction.go @@ -1,6 +1,8 @@ package orm import ( + "database/sql" + "github.com/vapor/federation/types" ) @@ -13,10 +15,10 @@ type CrossTransaction struct { SourceMuxID string SourceTxHash string SourceRawTransaction string - DestBlockHeight uint64 - DestBlockHash string - DestTxIndex uint64 - DestTxHash string + DestBlockHeight sql.NullInt64 + DestBlockHash sql.NullString + DestTxIndex sql.NullInt64 + DestTxHash sql.NullString Status uint8 CreatedAt types.Timestamp UpdatedAt types.Timestamp