Files
full/module/finance/wallet/internal/models/wallet_bank.go

39 lines
1.7 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
package models
import (
"git.apinb.com/bsm-sdk/core/database"
"git.apinb.com/bsm-sdk/core/types"
"gorm.io/gorm"
)
/*
* WalletBank
* Comment: 银行卡信息表
* Version: 10
* Created: 2022-04-14 22:17:01 , Updated:0001-01-01 00:00:00
*/
type WalletBank struct {
gorm.Model
types.Std_Identity
types.Std_Passport
WalletIdentity string `gorm:"column:wallet_identity;type:varchar(36);not null;" json:"wallet_identity"` // 钱包唯一码
CardNo string `gorm:"column:card_no;type:varchar(255);not null;" json:"card_no"` // 银行卡号
BankName string `gorm:"column:bank_name;type:varchar(255);not null;" json:"bank_name"` // 银行名
CardOwner string `gorm:"column:card_owner;type:varchar(255);not null;" json:"card_owner"` // 持卡人姓名
IDCard string `gorm:"column:id_card;type:varchar(255);not null;" json:"id_card"` // 持卡人身份证号
Phone string `gorm:"column:phone;type:varchar(20);not null;" json:"phone"` // 银行预留的手机号
BindID string `gorm:"column:bind_id;type:varchar(20);default:'';" json:"bind_id"` // 绑定银行卡返回的绑定id
BankType string `gorm:"column:bank_type;type:varchar(20);default:'';" json:"bank_type"` // 银行卡类型 DC为储蓄卡CC为信用卡
Bank string `gorm:"column:bank;type:varchar(64);not null;" json:"bank"` // 银行卡所属行
}
func init() {
database.AppendMigrate(&WalletBank{})
}
// TableName .
func (table *WalletBank) TableName() string {
return "wallet_bank" //对应数据库表名
}