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