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