"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "RefreshToken", {
    enumerable: true,
    get: function() {
        return RefreshToken;
    }
});
const _mongoose = require("mongoose");
const RefreshTokenSchema = new _mongoose.Schema({
    userId: {
        type: _mongoose.Schema.Types.ObjectId,
        ref: "User",
        required: true,
        unique: false
    },
    createdAt: {
        required: true,
        type: Date,
        default: Date.now
    },
    expiresAt: {
        required: true,
        type: Number
    },
    refreshToken: {
        type: String,
        unique: true,
        trim: true,
        required: true
    },
    refreshAttemptsUsed: {
        type: Number,
        required: true
    }
});
const RefreshToken = (0, _mongoose.model)("RefreshToken", RefreshTokenSchema);

//# sourceMappingURL=RefreshToken.js.map