The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/server/models/raw/EmailInbox.ts

15 lines
566 B

import type { IEmailInbox, RocketChatRecordDeleted } from '@rocket.chat/core-typings';
import type { IEmailInboxModel } from '@rocket.chat/model-typings';
import type { Collection, Db, IndexDescription } from 'mongodb';
import { BaseRaw } from './BaseRaw';
export class EmailInboxRaw extends BaseRaw<IEmailInbox> implements IEmailInboxModel {
constructor(db: Db, trash?: Collection<RocketChatRecordDeleted<IEmailInbox>>) {
super(db, 'email_inbox', trash);
}
protected modelIndexes(): IndexDescription[] {
return [{ key: { email: 1 }, unique: true }];
}
}