diff --git a/README.md b/README.md index 793a497a..4c05133e 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,7 @@ schema. For example the Post model for a blog might look like this: #[model] #[derive(Default)] struct Post { - #[auto] - id: i64, + id: AutoPk, title: String, body: String, published: bool, diff --git a/docs/getting-started.md b/docs/getting-started.md index 32e68237..251b2424 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -111,8 +111,7 @@ Now let's add a model to represent a blog post, and in the process take a look a ``` rust #[model] pub struct Post { - #[auto] - pub id: i32, + pub id: AutoPk, pub title: String, pub body: String, pub published: bool, @@ -436,8 +435,7 @@ making the full model ``` rust #[model] pub struct Post { - #[auto] - pub id: i32, + pub id: AutoPk, pub title: String, pub body: String, pub published: bool,