Toggle navigation
Toggle navigation
This project
Loading...
Sign in
송용우
/
oss-Jaksimsamil
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
JJuOn
2020-08-20 17:56:33 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
32808e4ad6f12af20df2d609fe1f659f510fe6ad
32808e4a
1 parent
53e17546
Add a new column to problem model
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
jaksimsamil-server/src/models/problem.js
jaksimsamil-server/src/models/problem.js
View file @
32808e4
...
...
@@ -8,6 +8,7 @@ const ProblemSchema=new Schema({
solvedacLevel
:
{
type
:
Number
},
sumbitNum
:
{
type
:
Number
,
required
:
true
},
correctNum
:
{
type
:
Number
,
required
:
true
},
count
:
{
type
:
Number
},
category
:
{
type
:[
String
]}
});
...
...
@@ -46,6 +47,10 @@ ProblemSchema.methods.getCorrectNum=function(){
return
this
.
correctNum
;
}
ProblemSchema
.
methods
.
getCount
=
function
(){
return
this
.
count
;
}
ProblemSchema
.
methods
.
getCategory
=
function
(){
return
this
.
category
;
}
...
...
Please
register
or
login
to post a comment