Survey Entity

This commit is contained in:
2024-03-11 12:35:43 +00:00
parent 9a9f41c784
commit 1537e8a137
3 changed files with 44 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
export interface ISurvey {
_id: string;
title: string;
description: string;
//투표 시작 시간
startTime: Date;
//투표 종료 시간
endTime?: Date;
multipleOptions: number;
options: string[];
}
+15
View File
@@ -0,0 +1,15 @@
import type { GeneralID, GeneralName, NationID, NationName } from "@/defs.js";
export interface ISurveyComment {
_id: string;
surveyID: string;
generalID: GeneralID;
nationID: NationID;
generalName: GeneralName;
nationName: NationName;
comment: string;
createdAt: Date;
}
+14
View File
@@ -0,0 +1,14 @@
import type { GeneralID, NationID } from "@/defs.js";
export interface ISurveyResponse {
_id: string;
surveyID: string;
//투표자
generalID: GeneralID;
nationID: NationID;
//투표한 선택지
selectedOption: number[];
}