Skip to content

Commit

Permalink
docs: update generators
Browse files Browse the repository at this point in the history
  • Loading branch information
jannyHou committed Sep 23, 2019
1 parent a6863e5 commit b6bc637
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/site/Model-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ blank one is entered. Properties will be prompted for as follows:
as the `id` for the Model.
- **Required.** Defaults to **no**. If the property is required, enter **Y** or
**yes**.
- **Generated.** Defaults to **Yes**. If the property is not generated by
database, enter **N** or **no**.
- **Default value.** Set a default value for the property if one isn't supplied.
Leave blank otherwise.

Expand Down
1 change: 1 addition & 0 deletions docs/site/tutorials/todo/todo-tutorial-controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Controller Todo will be created in src/controllers/todo.controller.ts
? What is the name of your CRUD repository? TodoRepository
? What is the name of ID property? id
? What is the type of your ID? number
? Is the id omitted when creating a new instance? Yes
? What is the base HTTP path name of the CRUD operations? /todos
create src/controllers/todo.controller.ts
update src/controllers/index.ts
Expand Down
1 change: 1 addition & 0 deletions docs/site/tutorials/todo/todo-tutorial-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Enter an empty property name when done
? Property type: number
? Is id the ID property? Yes
? Is it required?: No
? Is id generated automatically? No
? Default value [leave blank for none]:
Let's add another property to Todo
Expand Down

0 comments on commit b6bc637

Please sign in to comment.