interface MongodbDatabaseAdapterOptions {
    giveawayEntriesModel?: Model<{
        chance: number;
        createdAt: Date;
        giveawayId: string;
        id: string;
        userId: string;
    }, {}, {}, {}, Document<unknown, {}, {
        chance: number;
        createdAt: Date;
        giveawayId: string;
        id: string;
        userId: string;
    }> & {
        chance: number;
        createdAt: Date;
        giveawayId: string;
        id: string;
        userId: string;
    } & {
        _id: ObjectId;
    }, any>;
    giveawaysModel?: Model<{
        channelId: string;
        createdAt: Date;
        description: undefined | null | string;
        dueDate: Date;
        ended: boolean;
        guildId: string;
        hostId: undefined | null | string;
        id: string;
        messageId: string;
        name: string;
        paused: boolean;
        remaining: undefined | null | number;
        riggedUsersId: undefined | null | string[];
        winnerCount: number;
        winnersEntryId: string[];
    }, {}, {}, {}, Document<unknown, {}, {
        channelId: string;
        createdAt: Date;
        description: undefined | null | string;
        dueDate: Date;
        ended: boolean;
        guildId: string;
        hostId: undefined | null | string;
        id: string;
        messageId: string;
        name: string;
        paused: boolean;
        remaining: undefined | null | number;
        riggedUsersId: undefined | null | string[];
        winnerCount: number;
        winnersEntryId: string[];
    }> & {
        channelId: string;
        createdAt: Date;
        description: undefined | null | string;
        dueDate: Date;
        ended: boolean;
        guildId: string;
        hostId: undefined | null | string;
        id: string;
        messageId: string;
        name: string;
        paused: boolean;
        remaining: undefined | null | number;
        riggedUsersId: undefined | null | string[];
        winnerCount: number;
        winnersEntryId: string[];
    } & {
        _id: ObjectId;
    }, any>;
    mongooseConnection: string | __module;
}

Properties

giveawayEntriesModel?: Model<{
    chance: number;
    createdAt: Date;
    giveawayId: string;
    id: string;
    userId: string;
}, {}, {}, {}, Document<unknown, {}, {
    chance: number;
    createdAt: Date;
    giveawayId: string;
    id: string;
    userId: string;
}> & {
    chance: number;
    createdAt: Date;
    giveawayId: string;
    id: string;
    userId: string;
} & {
    _id: ObjectId;
}, any>

Type declaration

  • chance: number
  • createdAt: Date
  • giveawayId: string
  • id: string
  • userId: string

Type declaration

    Type declaration

      Type declaration

        giveawaysModel?: Model<{
            channelId: string;
            createdAt: Date;
            description: undefined | null | string;
            dueDate: Date;
            ended: boolean;
            guildId: string;
            hostId: undefined | null | string;
            id: string;
            messageId: string;
            name: string;
            paused: boolean;
            remaining: undefined | null | number;
            riggedUsersId: undefined | null | string[];
            winnerCount: number;
            winnersEntryId: string[];
        }, {}, {}, {}, Document<unknown, {}, {
            channelId: string;
            createdAt: Date;
            description: undefined | null | string;
            dueDate: Date;
            ended: boolean;
            guildId: string;
            hostId: undefined | null | string;
            id: string;
            messageId: string;
            name: string;
            paused: boolean;
            remaining: undefined | null | number;
            riggedUsersId: undefined | null | string[];
            winnerCount: number;
            winnersEntryId: string[];
        }> & {
            channelId: string;
            createdAt: Date;
            description: undefined | null | string;
            dueDate: Date;
            ended: boolean;
            guildId: string;
            hostId: undefined | null | string;
            id: string;
            messageId: string;
            name: string;
            paused: boolean;
            remaining: undefined | null | number;
            riggedUsersId: undefined | null | string[];
            winnerCount: number;
            winnersEntryId: string[];
        } & {
            _id: ObjectId;
        }, any>

        Type declaration

        • channelId: string
        • createdAt: Date
        • description: undefined | null | string
        • dueDate: Date
        • ended: boolean
        • guildId: string
        • hostId: undefined | null | string
        • id: string
        • messageId: string
        • name: string
        • paused: boolean
        • remaining: undefined | null | number
        • riggedUsersId: undefined | null | string[]
        • winnerCount: number
        • winnersEntryId: string[]

        Type declaration

          Type declaration

            Type declaration

              mongooseConnection: string | __module