Commit be135196 authored by Yoon, Daeki's avatar Yoon, Daeki 😅
Browse files

포스트 모델 옵션 변경

parent d1179528
......@@ -2,11 +2,11 @@ import { model, Schema, Types } from "mongoose";
export interface PostType {
title: string;
text?: string;
text: string;
theme: string;
city: string;
user?: Types.ObjectId | string;
date?: Date;
user: Types.ObjectId | string;
date: Date;
counts?: number;
}
......@@ -35,6 +35,7 @@ const PostSchema = new Schema<PostType>({
},
counts: {
type: Number,
default: 0,
},
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment