From cbc85c85cb039f9b5f95ce5497469ce961c10adb Mon Sep 17 00:00:00 2001 From: Wo-ogie <siwall0105@gmail.com> Date: Mon, 27 Nov 2023 17:34:37 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=95=BD=EC=86=8D(`meeting`)=20model?= =?UTF-8?q?=EC=97=90=20=ED=99=95=EC=A0=95=EB=90=9C=20=EC=95=BD=EC=86=8D=20?= =?UTF-8?q?=EC=8B=9C=EA=B0=84=20field=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dto/response/meetingResponse.js | 3 +++ dto/response/meetingWithParticipantsResponse.js | 3 +++ models/meeting.js | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/dto/response/meetingResponse.js b/dto/response/meetingResponse.js index ab8ee10..e4eb9a5 100644 --- a/dto/response/meetingResponse.js +++ b/dto/response/meetingResponse.js @@ -9,6 +9,7 @@ class MeetingResponse { maxParticipants, voteExpiresAt, isClosed, + confirmedTime, ) { this.id = id; this.title = title; @@ -19,6 +20,7 @@ class MeetingResponse { this.maxParticipants = maxParticipants; this.voteExpiresAt = voteExpiresAt; this.isClosed = isClosed; + this.confirmedTime = confirmedTime; } static from(meeting) { @@ -32,6 +34,7 @@ class MeetingResponse { meeting.maxParticipants, meeting.voteExpiresAt, meeting.isClosed, + meeting.confirmedTime, ); } } diff --git a/dto/response/meetingWithParticipantsResponse.js b/dto/response/meetingWithParticipantsResponse.js index 4a00559..b733aaa 100644 --- a/dto/response/meetingWithParticipantsResponse.js +++ b/dto/response/meetingWithParticipantsResponse.js @@ -11,6 +11,7 @@ class MeetingWithParticipantsResponse { maxParticipants, voteExpiresAt, isClosed, + confirmedTime, participants, ) { this.id = id; @@ -22,6 +23,7 @@ class MeetingWithParticipantsResponse { this.maxParticipants = maxParticipants; this.voteExpiresAt = voteExpiresAt; this.isClosed = isClosed; + this.confirmedTime = confirmedTime; this.participants = participants; } @@ -36,6 +38,7 @@ class MeetingWithParticipantsResponse { meeting.maxParticipants, meeting.voteExpiresAt, meeting.isClosed, + meeting.confirmedTime, meeting.Participants.map((participant) => ParticipantWithSchedulesResponse.from(participant), ), diff --git a/models/meeting.js b/models/meeting.js index 6172eca..b1e6323 100644 --- a/models/meeting.js +++ b/models/meeting.js @@ -48,6 +48,10 @@ class Meeting extends Sequelize.Model { allowNull: false, defaultValue: false, }, + confirmedTime: { + type: Sequelize.DATE, + allowNull: true, + }, }, { sequelize, -- GitLab