1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import {Collection, collection, index} from 'mongot'; import {PatronDocument} from './documents/PatronDocument'; /** * Patron Collection */ @index('id', {unique: true}) @index('deleted') @index('discord_id') @index('pledge.id') @collection('patrons', PatronDocument) export class PatronCollection extends Collection<PatronDocument> { } |