UNPKG

714 BTypeScriptView Raw
1export default class BotsTelegramUserStorageModel extends Model {
2 static schema: {
3 telegramChatId: {
4 type: StringConstructor;
5 required: boolean;
6 };
7 telegramUserId: {
8 type: StringConstructor;
9 required: boolean;
10 };
11 storage: {
12 type: ObjectConstructor;
13 };
14 meta: {
15 type: ObjectConstructor;
16 };
17 info: {
18 type: ObjectConstructor;
19 };
20 private: {
21 type: ObjectConstructor;
22 };
23 };
24 static options: {
25 model: string;
26 collection: string;
27 timestamps: boolean;
28 };
29}
30import Model from "@lskjs/db/Model";