feat(tenant): 按租户隔离用户身份与后台权限
This commit is contained in:
@@ -5,7 +5,8 @@ import "time"
|
||||
type WithdrawalRequest struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
WithdrawNo string `gorm:"size:64;not null;uniqueIndex" json:"withdraw_no"`
|
||||
UserID uint64 `gorm:"not null;index:idx_withdrawal_user_site" json:"user_id"`
|
||||
TenantID uint64 `gorm:"not null;default:0;index:idx_withdrawal_tenant_user_created" json:"tenant_id"`
|
||||
UserID uint64 `gorm:"not null;index:idx_withdrawal_user_site;index:idx_withdrawal_tenant_user_created" json:"user_id"`
|
||||
DistributionSiteID uint64 `gorm:"not null;default:0;index:idx_withdrawal_user_site" json:"distribution_site_id"`
|
||||
AmountCent int64 `gorm:"not null;default:0" json:"-"`
|
||||
FeeCent int64 `gorm:"not null;default:0" json:"-"`
|
||||
|
||||
Reference in New Issue
Block a user