"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Favorite = void 0;
const mongoose_1 = require("mongoose");
const FavoriteSchema = new mongoose_1.Schema({
    user: {
        type: mongoose_1.Types.ObjectId,
        ref: 'User',
        required: true,
    },
    reel: {
        type: mongoose_1.Types.ObjectId,
        ref: 'Reel',
        required: true,
    },
    at: {
        type: Date,
        default: Date
    },
}, { versionKey: false });
exports.Favorite = (0, mongoose_1.model)('Favorite', FavoriteSchema, 'favorites');
