"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RefreshToken = void 0;
const tslib_1 = require("tslib");
const repository_1 = require("@loopback/repository");
const _1 = require(".");
let RefreshToken = class RefreshToken extends repository_1.Entity {
    constructor(data) {
        super(data);
    }
};
exports.RefreshToken = RefreshToken;
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        id: 1,
        generated: true,
    }),
    tslib_1.__metadata("design:type", Number)
], RefreshToken.prototype, "id", void 0);
tslib_1.__decorate([
    (0, repository_1.belongsTo)(() => _1.User),
    tslib_1.__metadata("design:type", String)
], RefreshToken.prototype, "userId", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'string',
        required: true,
    }),
    tslib_1.__metadata("design:type", String)
], RefreshToken.prototype, "refreshToken", void 0);
exports.RefreshToken = RefreshToken = tslib_1.__decorate([
    (0, repository_1.model)({ settings: { strict: false } }),
    tslib_1.__metadata("design:paramtypes", [Object])
], RefreshToken);
//# sourceMappingURL=refresh-token.model.js.map