"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.View = void 0;
const mongoose_1 = require("mongoose");
const ViewSchema = 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.View = (0, mongoose_1.model)('View', ViewSchema, 'views');
