Skip to content
Open
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
12 changes: 12 additions & 0 deletions templates/en/docs/db/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ Writing the files by hand is not the most efficient way to work. Soda (and Buffa

<%= partial("en/docs/db/model.md") %>

You can specify each column of the model to soda in order for it to generate the code for you, like this:

```bash
$ soda generate model [name] [column1]:[type] [column2]:[type]
```

This is how you would generate a person-model with columns for the persons name, age and bio:

```bash
$ soda generate model person name:string age:int bio:text
```

You can remove generated model by running:

```bash
Expand Down