github.com/condensat/bank-core@v0.1.0/database/model/fee.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 type FeeID ID 8 type FeeData String 9 10 type Fee struct { 11 ID FeeID `gorm:"primary_key"` 12 WithdrawID WithdrawID `gorm:"unique_index;not null"` // [FK] Reference to Withdraw table 13 Amount ZeroFloat `gorm:"default:0;not null"` // Operation amount (can be negative) 14 Data FeeData `gorm:"type:blob;not null;default:'{}'"` // Fee data 15 }