DietaModel: Model<
{} & {
caloriasTotales?: number;
fechaFin?: NativeDate;
fechaInicio: NativeDate;
menuSemanal: DocumentArray<
{
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<
ObjectId,
any,
{ calorias: number; nombre: string; tipo: string },
> & { calorias: number; nombre: string; tipo: string },
>;
dia: string;
},
Subdocument<
ObjectId,
any,
{
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<ObjectId, any, { calorias: ...; nombre: ...; tipo: ... }> & {
calorias: number;
nombre: string;
tipo: string;
},
>;
dia: string;
},
> & {
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<
ObjectId,
any,
{ calorias: number; nombre: string; tipo: string },
> & { calorias: number; nombre: string; tipo: string },
>;
dia: string;
},
>;
nombre: string;
userId?: any;
},
{},
{},
{},
Document<
unknown,
{},
{} & {
caloriasTotales?: number;
fechaFin?: NativeDate;
fechaInicio: NativeDate;
menuSemanal: DocumentArray<
{
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<ObjectId, any, { calorias: ...; nombre: ...; tipo: ... }> & {
calorias: number;
nombre: string;
tipo: string;
},
>;
dia: string;
},
Subdocument<
ObjectId,
any,
{
comidas: DocumentArray<
{ calorias: ...; nombre: ...; tipo: ... },
(...) & (...),
>;
dia: string;
},
> & {
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<(...), (...), (...)> & {
calorias: ...;
nombre: ...;
tipo: ...;
},
>;
dia: string;
},
>;
nombre: string;
userId?: any;
},
{},
> & {} & {
caloriasTotales?: number;
fechaFin?: NativeDate;
fechaInicio: NativeDate;
menuSemanal: DocumentArray<
{
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<
ObjectId,
any,
{ calorias: number; nombre: string; tipo: string },
> & { calorias: number; nombre: string; tipo: string },
>;
dia: string;
},
Subdocument<
ObjectId,
any,
{
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<ObjectId, any, { calorias: ...; nombre: ...; tipo: ... }> & {
calorias: number;
nombre: string;
tipo: string;
},
>;
dia: string;
},
> & {
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<
ObjectId,
any,
{ calorias: number; nombre: string; tipo: string },
> & { calorias: number; nombre: string; tipo: string },
>;
dia: string;
},
>;
nombre: string;
userId?: any;
} & {} & {},
Schema<
any,
Model<any, any, any, any, any, any>,
{},
{},
{},
{},
{ timestamps: true },
{} & {
caloriasTotales?: number;
fechaFin?: NativeDate;
fechaInicio: NativeDate;
menuSemanal: DocumentArray<
{
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<
ObjectId,
any,
{ calorias: number; nombre: string; tipo: string },
> & { calorias: number; nombre: string; tipo: string },
>;
dia: string;
},
Subdocument<
ObjectId,
any,
{
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<(...), (...), (...)> & {
calorias: ...;
nombre: ...;
tipo: ...;
},
>;
dia: string;
},
> & {
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<ObjectId, any, { calorias: ...; nombre: ...; tipo: ... }> & {
calorias: number;
nombre: string;
tipo: string;
},
>;
dia: string;
},
>;
nombre: string;
userId?: any;
},
Document<
unknown,
{},
FlatRecord<
{} & {
caloriasTotales?: number;
fechaFin?: NativeDate;
fechaInicio: NativeDate;
menuSemanal: DocumentArray<
{
comidas: DocumentArray<
{ calorias: ...; nombre: ...; tipo: ... },
(...) & (...),
>;
dia: string;
},
Subdocument<ObjectId, any, { comidas: ...; dia: ... }> & {
comidas: DocumentArray<(...), (...)>;
dia: string;
},
>;
nombre: string;
userId?: any;
},
>,
{},
> & FlatRecord<
{} & {
caloriasTotales?: number;
fechaFin?: NativeDate;
fechaInicio: NativeDate;
menuSemanal: DocumentArray<
{
comidas: DocumentArray<
{ calorias: number; nombre: string; tipo: string },
Subdocument<(...), (...), (...)> & {
calorias: ...;
nombre: ...;
tipo: ...;
},
>;
dia: string;
},
Subdocument<
ObjectId,
any,
{ comidas: DocumentArray<(...), (...)>; dia: string },
> & {
comidas: DocumentArray<
{ calorias: ...; nombre: ...; tipo: ... },
(...) & (...),
>;
dia: string;
},
>;
nombre: string;
userId?: any;
},
> & {} & {},
>,
> = ...
Modelo de Mongoose para la colección "Dietas". Permite realizar operaciones CRUD sobre planes alimenticios estructurados.