github.com/condensat/bank-core@v0.1.0/database/model/credential.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 Credential struct { 8 UserID UserID `gorm:"unique_index"` 9 LoginHash Base58 `gorm:"size:64;not null;index"` 10 PasswordHash Base58 `gorm:"size:64;not null;index"` 11 TOTPSecret String `gorm:"size:64;not null"` 12 }