github.com/condensat/bank-core@v0.1.0/database/model/asseticon.go (about) 1 // Copyright 2020 Condensat Tech. All rights reserved. 2 // Use of this source code is governed by a MIT 3 // license that can be found in the LICENSE file. 4 5 package model 6 7 import ( 8 "time" 9 ) 10 11 // AssetIcon from https://assets.blockstream.info/icons.json 12 type AssetIcon struct { 13 AssetID AssetID `gorm:"unique_index;not null"` // [FK] Reference to Asset table 14 LastUpdate time.Time `gorm:"index;not null;type:timestamp"` // Last update timestamp 15 Data []byte `gorm:"type:MEDIUMBLOB;default:null"` // Decoded data byte 16 }