import {Schema, Types, model} from 'mongoose'; export interface Token{ _id: Types.ObjectId; token: string; guildId: string; exp: number; }; const tokenSchema = new Schema({ token: {type: String, required: true}, guildId: {type: String, required: true}, exp: {type: Number, required: true} }); export const tokenModel = model( 'tokenModel', tokenSchema );