Files
boursecu_admin/src/model/customer.ts
T
mohmdsdgandCursor de97d7caa6 Add customer multi-level referral profit editor and related settings UI.
Expose enable_customer_level_profit in config and let admins edit per-customer level percents from the customers table/mobile sheets.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 16:48:53 +03:30

53 lines
1.2 KiB
TypeScript

import type { User } from '@/model/user'
import type { Wallet } from '@/model/wallet'
export interface AddId {
id: number
}
export interface Customer {
id: number
fname: string
lname: string
name: string
mobile: string
password: string
avatar_id: number
active: boolean
// email: string
birth_date: string
created_at: string
gram: number
shop_name: string
phone_number: string
referral_to_id: string
referral_id: string
referral: Customer
city: string
province: string
wallet: Wallet
wallet_cash?: number
wallet_gold?: number
wallet_metal_gold?: Record<string, number>
n_code: string | number
last_seen_at:string
profit_amount: number
add_user_limit: number
trade_active: boolean
conditional_order_active?: boolean
conditional_order_limit?: number | null
type?: number
type_str: string
gold: number
moshtari_code?: string | number | null
pargar_account_id?: string | number | null
/** درصد سود چندسطحی از کارمزد زیرمجموعه‌ها — `{ level, present }` */
profit_amount_by_lvl?: ProfitByLevel[]
// print_name: string
}
export interface ProfitByLevel {
level: number
present: number
}