many many many many changes
This commit is contained in:
.env-example
.gitea/workflows
Dockerfilenext.config.jspackage-lock.jsonpackage.jsonsrc
yarn.lock
15
src/database/schemas/player.ts
Normal file
15
src/database/schemas/player.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import mongoose from "mongoose";
|
||||
import { ScoresaberSchema } from "./scoresaberAccount";
|
||||
const { Schema } = mongoose;
|
||||
|
||||
const playerSchema = new Schema({
|
||||
_id: String,
|
||||
avatar: String,
|
||||
name: String,
|
||||
country: String,
|
||||
|
||||
scoresaber: ScoresaberSchema,
|
||||
});
|
||||
|
||||
export const PlayerSchema =
|
||||
mongoose.models.Player || mongoose.model("Player", playerSchema);
|
Reference in New Issue
Block a user