OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
feat: add fed orm (#136)
[bytom/vapor.git]
/
federation
/
database
/
orm
/
cross_transaction.go
1
package orm
2
3
import (
4
"github.com/vapor/federation/types"
5
)
6
7
type CrossTransaction struct {
8
ID uint64 `gorm:"primary_key"`
9
ChainID uint64
10
BlockHeight uint64
11
BlockHash string
12
TxIndex uint64
13
MuxID string
14
TxHash string
15
RawTransaction string
16
Status uint8
17
CreatedAt types.Timestamp
18
UpdatedAt types.Timestamp
19
20
Chain *Chain `gorm:"foreignkey:ChainID"`
21
}