"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BankIntegration = exports.BankIntegrationSchema = void 0;
const mongoose_1 = __importDefault(require("mongoose"));
const _models_1 = require("./_models");
exports.BankIntegrationSchema = new mongoose_1.default.Schema({
    provider: {
        type: String,
    },
    accessToken: {
        type: String,
    },
    refreshToken: {
        type: String,
    },
    tokenType: {
        type: String,
        required: false,
    },
    tokenId: {
        type: String,
        required: false,
    },
    expiresAt: {
        type: Date,
    },
    scopes: {
        type: String,
    },
    connectedAt: {
        type: Date,
    },
    lastSyncAt: {
        type: Date,
    },
}, { timestamps: true });
exports.BankIntegration = mongoose_1.default.model(_models_1.MODEL_NAMES.bankIntegrations, exports.BankIntegrationSchema);
