Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update generators #3791

Merged
merged 1 commit into from
Sep 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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