OSDN Git Service

ddb0841411f291cc4d2fc58a840044c019468e0d
[bytom/vapor.git] / federation / database / orm / cross_transaction.go
1 package orm
2
3 import (
4         "database/sql"
5
6         "github.com/vapor/federation/types"
7 )
8
9 type CrossTransaction struct {
10         ID                   uint64 `gorm:"primary_key"`
11         ChainID              uint64
12         SourceBlockHeight    uint64
13         SourceBlockHash      string
14         SourceTxIndex        uint64
15         SourceMuxID          string
16         SourceTxHash         string
17         SourceRawTransaction string
18         DestBlockHeight      sql.NullInt64
19         DestBlockHash        sql.NullString
20         DestTxIndex          sql.NullInt64
21         DestTxHash           sql.NullString
22         Status               uint8
23         CreatedAt            types.Timestamp
24         UpdatedAt            types.Timestamp
25
26         Chain *Chain `gorm:"foreignkey:ChainID"`
27 }