UNPKG

949 BTypeScriptView Raw
1/// <reference types="mongoose" />
2export default class BotsTelegramImpressionModel extends Model {
3 static schema: {
4 type: {
5 type: StringConstructor;
6 required: boolean;
7 enum: string[];
8 };
9 chatId: {
10 type: typeof import("mongoose").Schema.Types.ObjectId;
11 required: boolean;
12 };
13 userId: {
14 type: typeof import("mongoose").Schema.Types.ObjectId;
15 required: boolean;
16 };
17 message_id: {
18 type: StringConstructor;
19 required: boolean;
20 };
21 meta: {
22 type: ObjectConstructor;
23 };
24 info: {
25 type: ObjectConstructor;
26 };
27 private: {
28 type: ObjectConstructor;
29 };
30 };
31 static options: {
32 model: string;
33 collection: string;
34 timestamps: boolean;
35 };
36}
37import Model from "@lskjs/db/Model";