-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmongooseschemas.js
41 lines (36 loc) · 977 Bytes
/
mongooseschemas.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const { NumberInput } = require("@mantine/core");
const mongoose = require("mongoose");
const userSchema = new mongoose.Schema({
userid: String,
email: String,
balance: Number,
});
const minesgameSchema = new mongoose.Schema({
userid: String,
email: String,
betamount: Number,
opened: String,
mines: String,
});
const storeColorThemeSchema = new mongoose.Schema({
color: String,
price: Number,
name: String,
});
const hilogameSchea = new mongoose.Schema({
userid: String,
email: String,
betamount: Number,
allcards: String,
notskipped: String,
});
module.exports = {
DB_User: mongoose.models.User || mongoose.model("User", userSchema),
MinesGame:
mongoose.models.MinesGame || mongoose.model("MinesGame", minesgameSchema),
StoreColorTheme:
mongoose.models.StoreColorTheme ||
mongoose.model("StoreColorTheme", storeColorThemeSchema),
HiloGame:
mongoose.models.HiloGame || mongoose.model("HiloGame", hilogameSchea),
};