Compare commits
19 Commits
Author | SHA1 | Date |
---|---|---|
|
05900b7e46 | 1 year ago |
|
fcb0651579 | 1 year ago |
|
aca336e8ef | 1 year ago |
|
669a5bca18 | 1 year ago |
|
14513b1c93 | 1 year ago |
|
4eeca06bbf | 1 year ago |
|
d94f373a3d | 1 year ago |
|
c021b9ebe8 | 1 year ago |
|
971c21cdee | 1 year ago |
|
6a1f2d0f61 | 1 year ago |
![]() |
5c5312ff14 | 4 years ago |
![]() |
fcdb04683d | 4 years ago |
![]() |
7f6460ade3 | 4 years ago |
![]() |
1ffed1c220 | 4 years ago |
![]() |
fd4cbd01e0 | 4 years ago |
![]() |
52d3b33bef | 4 years ago |
![]() |
22a2783e92 | 4 years ago |
![]() |
5be1b1fe48 | 4 years ago |
![]() |
1c27fa6758 | 4 years ago |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,26 @@
|
|||||||
|
const { Schema, model } = require('mongoose')
|
||||||
|
|
||||||
|
const brackets = new Schema({
|
||||||
|
name: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
name_arabic: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
name_jpn: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
event: {
|
||||||
|
type: Schema.Types.ObjectId,
|
||||||
|
ref: 'Event',
|
||||||
|
},
|
||||||
|
matches: [{
|
||||||
|
type: Schema.Types.ObjectId,
|
||||||
|
ref: 'Matches',
|
||||||
|
}],
|
||||||
|
})
|
||||||
|
|
||||||
|
const Bracket = model('Brackets', brackets)
|
||||||
|
|
||||||
|
module.exports = Bracket
|
@ -0,0 +1,67 @@
|
|||||||
|
const { Schema, model } = require('mongoose')
|
||||||
|
|
||||||
|
const stats = new Schema({
|
||||||
|
name: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
name_arabic: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
name_jpn: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
image: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
image_full: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
win_name: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
win: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
goals_name: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
goals: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
shots_name: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
shots: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
saves_name: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
saves: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
assists_name: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
assists: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
const Stat = model('Stats', stats)
|
||||||
|
|
||||||
|
module.exports = Stat
|
Loading…
Reference in New Issue