- Add tsconfig.json for TypeScript compilation with declaration and source map generation - Generate .d.ts declaration files for all modules, services, controllers, and models - Update package.json with NestJS dependencies and TypeScript development tools - Include database files in the distribution output for persistence
27 lines
831 B
TypeScript
27 lines
831 B
TypeScript
import { Model } from 'sequelize-typescript';
|
|
import { Meal } from './meal.model';
|
|
import { WeightLog } from './weight-log.model';
|
|
import { WaterLog } from './water-log.model';
|
|
import { MealPlan } from './meal-plan.model';
|
|
import { UserGoal } from './user-goal.model';
|
|
import { DailySummary } from './daily-summary.model';
|
|
export declare class User extends Model {
|
|
username: string;
|
|
password: string;
|
|
name: string;
|
|
age: number;
|
|
gender: string;
|
|
height_cm: number;
|
|
weight_kg: number;
|
|
activity_level: string;
|
|
target_daily_calories: number;
|
|
meals: Meal[];
|
|
weightLogs: WeightLog[];
|
|
waterLogs: WaterLog[];
|
|
mealPlans: MealPlan[];
|
|
goal: UserGoal;
|
|
dailySummaries: DailySummary[];
|
|
validPassword(password: string): boolean;
|
|
static hashPassword(user: User): Promise<void>;
|
|
}
|