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-09-19 00:59:33 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
da5ca6e03f375b8f58509ccb7b1f6d78c201563a
da5ca6e0
2 parents
6ad5e234
9f7bd49c
Merge branch 'server' into web
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
server/src/models/bottleMedicine.js
server/src/models/doctorInfo.js
server/src/models/feedback.js
server/src/models/hub.js
server/src/models/patientInfo.js
server/src/models/profile.js
server/src/models/bottleMedicine.js
View file @
da5ca6e
...
...
@@ -17,6 +17,7 @@ const BottleMedicineSchema = new Schema({
type
:
String
,
ref
:
'User'
,
required
:
true
,
lowercase
:
true
,
},
dosage
:
{
type
:
Number
,
...
...
server/src/models/doctorInfo.js
View file @
da5ca6e
...
...
@@ -3,7 +3,7 @@ const mongoose = require('mongoose');
const
Schema
=
mongoose
.
Schema
;
const
DoctorInfoSchema
=
new
Schema
({
doctorId
:
{
type
:
String
,
required
:
true
,
},
doctorId
:
{
type
:
String
,
required
:
true
,
lowercase
:
true
,
},
info
:
{
doctorLicense
:
{
type
:
String
,
required
:
true
,
},
validateDoctorLicense
:
{
type
:
String
,
default
:
null
},
...
...
server/src/models/feedback.js
View file @
da5ca6e
...
...
@@ -10,7 +10,7 @@ const FeedbackSchema = new Schema({
required
:
true
,
ref
:
'BottleMedicine'
,
},
doctorId
:
{
type
:
String
,
required
:
true
,
ref
:
'User'
,
},
doctorId
:
{
type
:
String
,
required
:
true
,
ref
:
'User'
,
lowercase
:
true
,
},
feedback
:
{
type
:
String
,
required
:
true
,
},
});
...
...
server/src/models/hub.js
View file @
da5ca6e
...
...
@@ -5,7 +5,7 @@ const Schema = mongoose.Schema;
const
HubSchema
=
new
Schema
({
hubId
:
{
type
:
Number
,
required
:
true
,
unique
:
true
},
hosting
:
{
type
:
Object
,
default
:
null
},
userId
:
{
type
:
String
,
default
:
null
,
ref
:
'User'
},
userId
:
{
type
:
String
,
default
:
null
,
ref
:
'User'
,
lowercase
:
true
,
},
});
HubSchema
.
statics
.
findByHubId
=
function
(
hubId
)
{
...
...
server/src/models/patientInfo.js
View file @
da5ca6e
...
...
@@ -5,8 +5,8 @@ require('moment-timezone');
const
Schema
=
mongoose
.
Schema
;
const
PatientInfoSchema
=
new
Schema
({
patientId
:
{
type
:
String
,
required
:
true
,
ref
:
'User'
,
},
doctorId
:
{
type
:
String
,
required
:
true
,
ref
:
'User'
,
},
patientId
:
{
type
:
String
,
required
:
true
,
ref
:
'User'
,
lowercase
:
true
,
},
doctorId
:
{
type
:
String
,
required
:
true
,
ref
:
'User'
,
lowercase
:
true
,
},
info
:
{
type
:
String
,
required
:
true
,
},
useYn
:
{
type
:
String
,
required
:
true
,
default
:
'W'
,
},
});
...
...
server/src/models/profile.js
View file @
da5ca6e
...
...
@@ -3,7 +3,7 @@ const mongoose = require('mongoose');
const
Schema
=
mongoose
.
Schema
;
const
ProfileSchema
=
new
Schema
({
userId
:
{
type
:
String
,
required
:
true
,
ref
:
'User'
,
},
userId
:
{
type
:
String
,
required
:
true
,
ref
:
'User'
,
lowercase
:
true
,
},
userNm
:
{
type
:
String
,
required
:
true
,
},
birth
:
{
type
:
String
,
required
:
true
,
},
contact
:
{
type
:
String
,
required
:
true
,
},
...
...
Please
register
or
login
to post a comment