2023-10-19 14:17:55 +01:00
|
|
|
import mongoose from "mongoose";
|
|
|
|
import { ScoresaberSchema } from "./scoresaberAccount";
|
|
|
|
const { Schema } = mongoose;
|
|
|
|
|
|
|
|
const playerSchema = new Schema({
|
|
|
|
_id: String,
|
2023-10-19 16:50:28 +01:00
|
|
|
profilePicture: String,
|
2023-10-19 14:17:55 +01:00
|
|
|
name: String,
|
|
|
|
country: String,
|
|
|
|
|
|
|
|
scoresaber: ScoresaberSchema,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const PlayerSchema =
|
|
|
|
mongoose.models.Player || mongoose.model("Player", playerSchema);
|