"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MutualFollow = void 0;
const mongoose_1 = require("mongoose");
const MutualFollowSchema = new mongoose_1.Schema({
    users: {
        type: [mongoose_1.Types.ObjectId],
        ref: 'User',
        required: true,
        validate: (v) => v.length === 2
    },
    at: {
        type: Date,
        default: Date
    }
}, { versionKey: false });
exports.MutualFollow = (0, mongoose_1.model)('MutualFollow', MutualFollowSchema, 'mutual-follows');
