UNPKG

1.8 kBSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/models/BotsTelegramImpressionModel.js"],"names":["BotsTelegramImpressionModel","Model","schema","type","String","required","chatId","Types","ObjectId","userId","message_id","meta","Object","info","options","model","collection","timestamps"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;IAEqBA,2B;;;;;;;;;;;EAAoCC,kB;;;AAApCD,2B,CACZE,M,GAAS;AACdC,EAAAA,IAAI,EAAE;AACJA,IAAAA,IAAI,EAAEC,MADF;AAEJC,IAAAA,QAAQ,EAAE,IAFN;AAGJ,YAAM,CAAC,MAAD,EAAS,UAAT;AAHF,GADQ;AAMdC,EAAAA,MAAM,EAAE;AACNH,IAAAA,IAAI,EAAEF,mBAAMM,KAAN,CAAYC,QADZ;AAENH,IAAAA,QAAQ,EAAE;AAFJ,GANM;AAUdI,EAAAA,MAAM,EAAE;AACNN,IAAAA,IAAI,EAAEF,mBAAMM,KAAN,CAAYC,QADZ;AAENH,IAAAA,QAAQ,EAAE;AAFJ,GAVM;AAcdK,EAAAA,UAAU,EAAE;AACVP,IAAAA,IAAI,EAAEC,MADI;AAEVC,IAAAA,QAAQ,EAAE;AAFA,GAdE;AAkBdM,EAAAA,IAAI,EAAE;AAAER,IAAAA,IAAI,EAAES;AAAR,GAlBQ;AAmBdC,EAAAA,IAAI,EAAE;AAAEV,IAAAA,IAAI,EAAES;AAAR,GAnBQ;AAoBd,aAAS;AAAET,IAAAA,IAAI,EAAES;AAAR;AApBK,C;AADGZ,2B,CAwBZc,O,GAAU;AACfC,EAAAA,KAAK,EAAE,6BADQ;AAEfC,EAAAA,UAAU,EAAE,0BAFG;AAGfC,EAAAA,UAAU,EAAE;AAHG,C","sourcesContent":["import Model from '@lskjs/db/Model';\n\nexport default class BotsTelegramImpressionModel extends Model {\n static schema = {\n type: {\n type: String,\n required: true,\n enum: ['like', 'disslike'],\n },\n chatId: {\n type: Model.Types.ObjectId,\n required: true,\n },\n userId: {\n type: Model.Types.ObjectId,\n required: true,\n },\n message_id: {\n type: String,\n required: true,\n },\n meta: { type: Object },\n info: { type: Object },\n private: { type: Object },\n };\n\n static options = {\n model: 'BotsTelegramImpressionModel',\n collection: 'bots_telegram_impression',\n timestamps: true,\n };\n}\n"],"file":"BotsTelegramImpressionModel.js"}
\No newline at end of file