OSDN Git Service

rename dir (#283)
[bytom/vapor.git] / toolbar / federation / database / orm / asset.go
diff --git a/toolbar/federation/database/orm/asset.go b/toolbar/federation/database/orm/asset.go
new file mode 100644 (file)
index 0000000..61c0287
--- /dev/null
@@ -0,0 +1,15 @@
+package orm
+
+import (
+       "github.com/vapor/toolbar/federation/types"
+)
+
+type Asset struct {
+       ID              uint64          `gorm:"primary_key;foreignkey:ID" json:"-"`
+       AssetID         string          `json:"asset_id"`
+       IssuanceProgram string          `json:"-"`
+       VMVersion       uint64          `json:"-"`
+       Definition      string          `json:"-"`
+       CreatedAt       types.Timestamp `json:"-"`
+       UpdatedAt       types.Timestamp `json:"-"`
+}