Skip to content

Commit

Permalink
add id to stake model
Browse files Browse the repository at this point in the history
  • Loading branch information
daniildulin committed Apr 23, 2019
1 parent a0237f1 commit 23281c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions models/stake.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package models

type Stake struct {
OwnerAddressID uint64 `json:"owner_address_id" sql:",pk"`
ValidatorID uint64 `json:"validator_id" sql:",pk"`
CoinID uint64 `json:"coin_id" sql:",pk"`
ID uint64 `json:"id" sql:",pk"`
OwnerAddressID uint64 `json:"owner_address_id"`
ValidatorID uint64 `json:"validator_id"`
CoinID uint64 `json:"coin_id"`
Value string `json:"value" sql:"type:numeric(70)"`
BipValue string `json:"bip_value" sql:"type:numeric(70)"`
Coin *Coin `json:"coins"` //Relation has one to Coins
Expand Down

0 comments on commit 23281c1

Please sign in to comment.