Survey Entity
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
|||||||
|
export interface ISurvey {
|
||||||
|
_id: string;
|
||||||
|
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
|
||||||
|
//투표 시작 시간
|
||||||
|
startTime: Date;
|
||||||
|
//투표 종료 시간
|
||||||
|
endTime?: Date;
|
||||||
|
|
||||||
|
multipleOptions: number;
|
||||||
|
|
||||||
|
options: string[];
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import type { GeneralID, NationID } from "@/defs.js";
|
||||||
|
|
||||||
|
export interface ISurveyResponse {
|
||||||
|
_id: string;
|
||||||
|
surveyID: string;
|
||||||
|
|
||||||
|
//투표자
|
||||||
|
generalID: GeneralID;
|
||||||
|
|
||||||
|
nationID: NationID;
|
||||||
|
|
||||||
|
//투표한 선택지
|
||||||
|
selectedOption: number[];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user