From 8784f3ce54fd2361af4d3b2b71d43aa543884c93 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Mon, 14 Sep 2020 20:07:39 +0300
Subject: feat: add description field to Poll model

---
 models/polls/poll.schema.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'models/polls/poll.schema.ts')

diff --git a/models/polls/poll.schema.ts b/models/polls/poll.schema.ts
index 3a57c28..dc52c12 100644
--- a/models/polls/poll.schema.ts
+++ b/models/polls/poll.schema.ts
@@ -11,6 +11,7 @@ export interface PollSchema extends Document {
   };
   createdAt: Date;
   authorId: string;
+  description: string;
   vote: (userId: string, which: 'left' | 'right') => PollSchema;
 }
 
@@ -26,6 +27,7 @@ export const pollSchema = new Schema({
   authorId: {
     type: Types.ObjectId,
     ref: 'User'
-  }
+  },
+  description: String
 }, { timestamps: true });
 
-- 
cgit v1.2.3