mirror of
https://github.com/farcasclaudiu/learn-build-apps-copilot-agent.git
synced 2026-06-22 07:01:37 +03:00
16 lines
660 B
JavaScript
16 lines
660 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.UserModel = void 0;
|
|
const mongoose_1 = require("mongoose");
|
|
const userSchema = new mongoose_1.Schema({
|
|
username: { type: String, required: true, trim: true },
|
|
email: { type: String, required: true, unique: true, lowercase: true, trim: true },
|
|
age: { type: Number, required: true, min: 13 },
|
|
heightCm: { type: Number, required: true, min: 100 },
|
|
weightKg: { type: Number, required: true, min: 30 },
|
|
fitnessGoal: { type: String, required: true, trim: true },
|
|
}, {
|
|
timestamps: true,
|
|
});
|
|
exports.UserModel = (0, mongoose_1.model)("User", userSchema);
|