Skip to content

Loans model feature#11

Open
amaugosomto wants to merge 2 commits into
masterfrom
loans_model_feature
Open

Loans model feature#11
amaugosomto wants to merge 2 commits into
masterfrom
loans_model_feature

Conversation

@amaugosomto

Copy link
Copy Markdown
Collaborator

Changed the first letter of the file name to capitals and edited my schema.

@amaugosomto amaugosomto requested a review from wilforlan June 15, 2018 14:25
Comment thread models/Loans.js
maxlength: 11
},
guarantor_id: {
type: int,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot be integer.
Create a ref link to the Guarantor model
Refer to this
https://alexanderzeitler.com/articles/mongoose-referencing-schema-in-properties-and-arrays/

Comment thread models/Loans.js

let loanSchema = new mongoose.Schema({
users_id: {
type: mongoose.Schema.Types.ObjectId,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants