From ab3f516e1e7c7c1119b6e7fb5b63bb6e71626e24 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Fri, 3 Feb 2023 11:45:43 +0800 Subject: [PATCH] Generate entity with extra derives and attributes for model struct (SeaQL/sea-orm#1124, SeaQL/sea-orm#1321) --- SeaORM/docs/04-generate-entity/01-sea-orm-cli.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SeaORM/docs/04-generate-entity/01-sea-orm-cli.md b/SeaORM/docs/04-generate-entity/01-sea-orm-cli.md index 03bbe4213a6..d730a3f4fb0 100644 --- a/SeaORM/docs/04-generate-entity/01-sea-orm-cli.md +++ b/SeaORM/docs/04-generate-entity/01-sea-orm-cli.md @@ -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`