feat: add secondary names for shit

main
Ayush Mukherjee 1 year ago
parent c021b9ebe8
commit d94f373a3d

@ -9,6 +9,14 @@ const casters = new Schema({
type: String,
required: true,
},
name_arabic: {
type: String,
required: true,
},
name_jpn: {
type: String,
required: true,
},
twitter: {
type: String,
required: true,
@ -20,4 +28,4 @@ const casters = new Schema({
const Caster = model('Casters', casters)
module.exports = Caster
module.exports = Caster

@ -6,6 +6,14 @@ const events = new mongoose.Schema({
required: true,
unique: true,
},
name_arabic: {
type: String,
required: true,
},
name_jpn: {
type: String,
required: true,
},
streams: [{
type: mongoose.Schema.Types.ObjectId,
ref: 'Streams',

@ -28,6 +28,14 @@ const players = new Schema({
type: String,
required: true,
},
name_arabic: {
type: String,
required: true,
},
name_jpn: {
type: String,
required: true,
},
account: {
type: String,
required: true,
@ -39,6 +47,14 @@ const rosters = new Schema({
type: String,
required: true,
},
name_arabic: {
type: String,
required: true,
},
name_jpn: {
type: String,
required: true,
},
logo: {
type: String,
required: true,
@ -53,4 +69,4 @@ const rosters = new Schema({
const Roster = model('Rosters', rosters)
module.exports = Roster
module.exports = Roster

@ -5,6 +5,14 @@ const streams = new Schema({
type: String,
required: true,
},
name_arabic: {
type: String,
required: true,
},
name_jpn: {
type: String,
required: true,
},
event: {
type: Schema.Types.ObjectId,
ref: 'Event',
@ -25,4 +33,4 @@ const streams = new Schema({
const Stream = model('Streams', streams)
module.exports = Stream
module.exports = Stream

Loading…
Cancel
Save