UNPKG

@tonytruong/chatbot-ai-lib

Version:

AI-powered healthcare automation, document parsing, OpenAI, embeddings, RAG, vector DB, Facebook OAuth.

15 lines 605 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Message = void 0; const tslib_1 = require("tslib"); const mongoose_1 = tslib_1.__importDefault(require("mongoose")); const messageSchema = new mongoose_1.default.Schema({ pageId: String, senderId: String, senderName: String, message: String, from: { type: String, enum: ["user", "bot"] }, createdAt: { type: Date, default: Date.now }, }); exports.Message = mongoose_1.default.models.Message || mongoose_1.default.model("Message", messageSchema); //# sourceMappingURL=index.js.map