Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-05-10 03:26:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ef6b2e6833b812b95bb28f23bae4537c74c0a1bf
ef6b2e68
1 parent
7b0e118c
db. model method is going
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
server/src/models/bottle.js
server/src/models/hub.js
server/src/models/bottle.js
View file @
ef6b2e6
...
...
@@ -3,7 +3,7 @@ const mongoose = require('mongoose');
const
Schema
=
mongoose
.
Schema
;
const
BottleSchema
=
new
Schema
({
bottleId
:
{
type
:
String
,
required
:
true
,
unique
:
true
},
bottleId
:
{
type
:
Number
,
required
:
true
,
unique
:
true
},
temperature
:
{
type
:
Number
,
default
:
0
},
humidity
:
{
type
:
Number
,
default
:
0
},
balance
:
{
type
:
Number
,
default
:
0
},
...
...
server/src/models/hub.js
View file @
ef6b2e6
...
...
@@ -4,7 +4,7 @@ const Schema = mongoose.Schema;
const
HubSchema
=
new
Schema
({
hubId
:
{
type
:
Number
,
required
:
true
,
unique
:
true
},
hosting
:
Object
,
hosting
:
{
type
:
Object
,
default
:
null
}
,
userId
:
{
type
:
String
,
default
:
null
},
});
...
...
Please
register
or
login
to post a comment