switched to gorm..
This commit is contained in:
@@ -3,11 +3,14 @@ package models
|
||||
import "time"
|
||||
|
||||
type BankAccount struct {
|
||||
MandateDateSigned time.Time `json:"mandate_date_signed"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
MandateDateSigned time.Time `gorm:"not null" json:"mandate_date_signed"`
|
||||
Bank string `json:"bank_name"`
|
||||
AccountHolderName string `json:"account_holder_name"`
|
||||
IBAN string `json:"iban"`
|
||||
IBAN string `gorm:"not null" json:"iban"`
|
||||
BIC string `json:"bic"`
|
||||
MandateReference string `json:"mandate_reference"`
|
||||
UserID int `json:"id"`
|
||||
MandateReference string `gorm:"not null" json:"mandate_reference"`
|
||||
ID int64 `gorm:"primaryKey"`
|
||||
UserID int64 `json:"user_id"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user