OSDN Git Service

fix asset foreign key (#229)
[bytom/vapor.git] / federation / database / orm / asset.go
index a2448ba..f1fbb05 100644 (file)
@@ -5,7 +5,7 @@ import (
 )
 
 type Asset struct {
-       ID                uint64          `gorm:"primary_key" json:"-"`
+       ID                uint64          `gorm:"primary_key;foreignkey:ID" json:"-"`
        AssetID           string          `json:"asset_id"`
        IssuanceProgram   string          `json:"-"`
        VMVersion         uint64          `json:"-"`