Last Sync: 2022-08-11 08:00:04
This commit is contained in:
parent
4caf69e2c9
commit
a3950994ad
1 changed files with 2 additions and 4 deletions
|
@ -85,7 +85,7 @@ const courseSchema = new mongoose.Schema({
|
|||
author: String,
|
||||
tags: [String],
|
||||
data: {type: Date, default: Date.now}, // if unspecified, entry will default to current date
|
||||
isPublished: boolean
|
||||
isPublished: Boolean
|
||||
});
|
||||
|
||||
```
|
||||
|
@ -117,6 +117,4 @@ const course = new Course({
|
|||
tags: ["node", "backend"],
|
||||
});
|
||||
```
|
||||

|
||||
|
||||
// TODO: diagram schema - model - object
|
||||

|
||||
|
|
Loading…
Add table
Reference in a new issue