github.com/condensat/bank-core@v0.1.0/database/model/batchwithdraw.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 BatchWithdraw struct { 8 BatchID BatchID `gorm:"unique_index:idx_batch_withdraw;index;not null"` // [FK] Reference to Batch table 9 WithdrawID WithdrawID `gorm:"unique_index:idx_withdraw;unique_index:idx_batch_withdraw;not null"` // [FK] Reference to Withdraw table 10 }