15 lines
426 B
JavaScript
15 lines
426 B
JavaScript
import mongoose from 'mongoose'
|
|
const { Schema } = mongoose
|
|
|
|
export const PlayerSchema = new Schema({
|
|
username: String,
|
|
password: String,
|
|
email: String,
|
|
uuid: String,
|
|
textures: {
|
|
skin: String,
|
|
cape: String,
|
|
},
|
|
registerDate: Number,
|
|
permissions: [{ node: String, allowed: Boolean, duration: Number, eternal: Boolean, startDate: Number, highPriority: Boolean }], // ban -> true
|
|
}) |