37 lines
829 B
TypeScript
37 lines
829 B
TypeScript
export interface User {
|
|
id: string
|
|
email: string
|
|
firstName: string
|
|
lastName: string
|
|
password: string
|
|
phone?: string
|
|
role: 'admin' | 'client'
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}
|
|
|
|
export interface Client {
|
|
id: string
|
|
userId: string
|
|
membershipType: 'basic' | 'premium' | 'vip'
|
|
membershipStatus: 'active' | 'inactive' | 'expired'
|
|
joinDate: Date
|
|
}
|
|
|
|
export interface FitnessProfile {
|
|
userId: string
|
|
height: string
|
|
weight: string
|
|
age: string
|
|
gender: 'male' | 'female' | 'other'
|
|
activityLevel: 'sedentary' | 'light' | 'moderate' | 'active' | 'very_active'
|
|
fitnessGoals: string[]
|
|
exerciseHabits: string
|
|
dietHabits: string
|
|
medicalConditions: string
|
|
}
|
|
|
|
// In-memory database
|
|
export const users: User[] = []
|
|
export const clients: Client[] = []
|
|
export const fitnessProfiles: FitnessProfile[] = [] |