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