From d94f373a3d28fba2f4d8f04d419fe3d87331ad81 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Thu, 16 Nov 2023 13:23:21 +0530 Subject: [PATCH] feat: add secondary names for shit --- src/models/casters.js | 10 +++++++++- src/models/events.js | 8 ++++++++ src/models/rosters.js | 18 +++++++++++++++++- src/models/streams.js | 10 +++++++++- 4 files changed, 43 insertions(+), 3 deletions(-) diff --git a/src/models/casters.js b/src/models/casters.js index f47ab3f..ee3dd2d 100644 --- a/src/models/casters.js +++ b/src/models/casters.js @@ -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 \ No newline at end of file +module.exports = Caster diff --git a/src/models/events.js b/src/models/events.js index bcec7e3..4a448d1 100644 --- a/src/models/events.js +++ b/src/models/events.js @@ -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', diff --git a/src/models/rosters.js b/src/models/rosters.js index 6241d7b..64b9e81 100644 --- a/src/models/rosters.js +++ b/src/models/rosters.js @@ -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 \ No newline at end of file +module.exports = Roster diff --git a/src/models/streams.js b/src/models/streams.js index afd6dc2..4d4298e 100644 --- a/src/models/streams.js +++ b/src/models/streams.js @@ -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 \ No newline at end of file +module.exports = Stream