OSDN Git Service

add filter asset
[bytom/vapor.git] / toolbar / federation / database / orm / asset.go
index 1d39d49..5f05ab7 100644 (file)
@@ -10,6 +10,12 @@ type Asset struct {
        IssuanceProgram string           `json:"-"`
        VMVersion       uint64           `json:"-"`
        Definition      string           `json:"-"`
+       IsFilter        bool             `json:"_"`
        CreatedAt       common.Timestamp `json:"-"`
        UpdatedAt       common.Timestamp `json:"-"`
 }
+
+type FilterAsset struct {
+       ID      uint64 `gorm:"primary_key" json:"-"`
+       AssetID string `json:"asset_id"`
+}