Skip to content

Commit

Permalink
Generate entity with extra derives and attributes for model struct (S…
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Feb 3, 2023
1 parent 0f0b961 commit ab3f516
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SeaORM/docs/04-generate-entity/01-sea-orm-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Command line options:
- `--serde-skip-hidden-column`: generate entity model with hidden column (column name starts with `_`) field labeled as `#[serde(skip)]`
- `--date-time-crate`: the datetime crate to use for generating entities (`chrono`, `time`) (default: `chrono`)
- `--max-connections`: maximum number of database connections to be initialized in the connection pool (default: `1`)
- `--model-extra-derives`: append extra derive macros to the generated model struct
- `--model-extra-attributes`: append extra attributes to generated model struct

```shell
# Generate entity files of database `bakery` to `entity/src`
Expand Down

0 comments on commit ab3f516

Please sign in to comment.