initial commit

This commit is contained in:
2024-10-13 14:50:19 +00:00
commit dbdbf16bfe
34 changed files with 3035 additions and 0 deletions

18
models/Token.ts Normal file
View File

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