feat(tenant): 按租户隔离用户身份与后台权限
This commit is contained in:
@@ -8,7 +8,8 @@ import (
|
||||
|
||||
type UserPaymentAccount struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
UserID uint64 `gorm:"not null;index" json:"user_id"`
|
||||
TenantID uint64 `gorm:"not null;default:0;index:idx_user_payment_accounts_tenant_user" json:"tenant_id"`
|
||||
UserID uint64 `gorm:"not null;index:idx_user_payment_accounts_tenant_user" json:"user_id"`
|
||||
AccountType string `gorm:"size:32;not null" json:"account_type"`
|
||||
AccountName string `gorm:"size:128;not null" json:"account_name"`
|
||||
AccountNo string `gorm:"size:255;not null" json:"account_no"`
|
||||
|
||||
Reference in New Issue
Block a user