Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
travel
Commits
be135196
Commit
be135196
authored
2 years ago
by
Yoon, Daeki
😅
Browse files
Options
Download
Email Patches
Plain Diff
포스트 모델 옵션 변경
parent
d1179528
main
MK28
MK29
sb0815
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/models/post.model.ts
+4
-3
src/models/post.model.ts
with
4 additions
and
3 deletions
+4
-3
src/models/post.model.ts
View file @
be135196
...
...
@@ -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
,
},
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help