Moved code to src folder
This commit is contained in:
9
src/schemas/guildAppSchema.js
Normal file
9
src/schemas/guildAppSchema.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const { Schema, model } = require("mongoose")
|
||||
|
||||
const guildAppSchema = new Schema({
|
||||
_id: Schema.Types.ObjectId,
|
||||
userID: { type: String, required: true },
|
||||
uuid: { type: String, required: true },
|
||||
})
|
||||
|
||||
module.exports = model("guildapp", guildAppSchema, "guildapp")
|
||||
9
src/schemas/settingsSchema.js
Normal file
9
src/schemas/settingsSchema.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const { Schema, model } = require("mongoose")
|
||||
|
||||
const settingsSchema = new Schema({
|
||||
_id: Schema.Types.ObjectId,
|
||||
name: { type: String, required: true },
|
||||
value: { type: String, required: true },
|
||||
})
|
||||
|
||||
module.exports = model("settings", settingsSchema, "settings")
|
||||
9
src/schemas/staffAppSchema.js
Normal file
9
src/schemas/staffAppSchema.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const { Schema, model } = require("mongoose")
|
||||
|
||||
const staffAppSchema = new Schema({
|
||||
_id: Schema.Types.ObjectId,
|
||||
userID: { type: String, required: true },
|
||||
uuid: { type: String, required: true },
|
||||
})
|
||||
|
||||
module.exports = model("staffapp", staffAppSchema, "staffapp")
|
||||
9
src/schemas/verifySchema.js
Normal file
9
src/schemas/verifySchema.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const { Schema, model } = require("mongoose")
|
||||
|
||||
const verifySchema = new Schema({
|
||||
_id: Schema.Types.ObjectId,
|
||||
userID: { type: String, required: true },
|
||||
uuid: { type: String, required: true },
|
||||
})
|
||||
|
||||
module.exports = model("verify", verifySchema, "verify")
|
||||
11
src/schemas/waitinglistSchema.js
Normal file
11
src/schemas/waitinglistSchema.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const { Schema, model } = require("mongoose")
|
||||
|
||||
const waitinglistSchema = new Schema({
|
||||
_id: Schema.Types.ObjectId,
|
||||
userID: { type: String, required: true },
|
||||
uuid: { type: String, required: true },
|
||||
IGN: { type: String, required: true },
|
||||
timestamp: { type: String, required: true }
|
||||
})
|
||||
|
||||
module.exports = model("waitinglist", waitinglistSchema, "waitinglist")
|
||||
Reference in New Issue
Block a user