feat: add settings and reports pages
- Add settings page with organization, sites, courts, and users tabs - Add reports page with revenue charts and statistics - Add users API endpoint - Add sites/[id] API endpoint for CRUD operations - Add tabs UI component - Fix sites API to return isActive field Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,22 +12,32 @@ interface Client {
|
||||
phone: string | null;
|
||||
avatar?: string | null;
|
||||
level: string | null;
|
||||
notes: string | null;
|
||||
isActive: boolean;
|
||||
createdAt: string;
|
||||
memberships?: Array<{
|
||||
id: string;
|
||||
status: string;
|
||||
remainingHours: number | null;
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
remainingHours: number | null;
|
||||
plan: {
|
||||
id: string;
|
||||
name: string;
|
||||
price: number | string;
|
||||
durationMonths: number;
|
||||
courtHours: number | null;
|
||||
discountPercent: number | string | null;
|
||||
};
|
||||
}>;
|
||||
_count?: {
|
||||
bookings: number;
|
||||
};
|
||||
stats?: {
|
||||
totalBookings: number;
|
||||
totalSpent: number;
|
||||
balance: number;
|
||||
};
|
||||
}
|
||||
|
||||
interface ClientTableProps {
|
||||
|
||||
Reference in New Issue
Block a user