github.com/condensat/bank-core@v0.1.0/database/model/operationstatus.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 "time" 8 9 type OperationStatus struct { 10 OperationInfoID OperationInfoID `gorm:"unique_index;not null"` // [FK] Reference to OperationInfo table 11 LastUpdate time.Time `gorm:"index;not null;type:timestamp"` // Last update timestamp 12 State string `gorm:"index;not null;type:varchar(16)"` // [enum] Operation synchroneous state (received, confirmed, settled) 13 Accounted string `gorm:"index;not null;type:varchar(16)"` // Accounted state (see State) 14 }