mirror of
https://github.com/farcasclaudiu/learn-build-apps-copilot-agent.git
synced 2026-06-22 07:01:37 +03:00
16 lines
645 B
JavaScript
16 lines
645 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.WorkoutModel = void 0;
|
|
const mongoose_1 = require("mongoose");
|
|
const workoutSchema = new mongoose_1.Schema({
|
|
title: { type: String, required: true, trim: true },
|
|
category: { type: String, required: true, trim: true },
|
|
difficulty: { type: String, required: true, trim: true },
|
|
durationMinutes: { type: Number, required: true, min: 1 },
|
|
equipment: { type: [String], required: true },
|
|
targetMuscles: { type: [String], required: true },
|
|
}, {
|
|
timestamps: true,
|
|
});
|
|
exports.WorkoutModel = (0, mongoose_1.model)("Workout", workoutSchema);
|