16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
|
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);
|