From 3952a87f40d658d828eb76fa006e0fc1c5239c1e Mon Sep 17 00:00:00 2001 From: Hein Date: Wed, 30 Oct 2024 12:02:06 +0200 Subject: [PATCH 1/2] Add id snippet --- .gitignore | 1 + usage/installation/client-side-setup/define-your-schema.mdx | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..485dee64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/usage/installation/client-side-setup/define-your-schema.mdx b/usage/installation/client-side-setup/define-your-schema.mdx index 03ed8c7b..2345c6cc 100644 --- a/usage/installation/client-side-setup/define-your-schema.mdx +++ b/usage/installation/client-side-setup/define-your-schema.mdx @@ -11,6 +11,11 @@ This schema represents a "view" of the downloaded data. No migrations are requir In the [PowerSync Dashboard](/usage/tools/powersync-dashboard), the schema can be generated based off your [Sync Rules](/usage/sync-rules) by right-clicking on an instance and selecting **Generate client-side schema**. Currently, the schema can be generated in JavaScript or Dart. Support for Kotlin is coming soon. Similar functionality exists in the PowerSync [CLI](/usage/tools/cli). + + The generated schema will exclude the `id` column, as the client SDK automatically creates an `id` column of type `text`. + Consequently, it is not necessary to specify an `id` column in your schema. + For additional information on IDs, refer to [Client ID](/usage/sync-rules/client-id). + ## Example implementation From 1df97a6c42445d7bc51c4934f77b2fe338b70567 Mon Sep 17 00:00:00 2001 From: Hein Date: Wed, 30 Oct 2024 14:13:51 +0200 Subject: [PATCH 2/2] Modify note format --- .../installation/client-side-setup/define-your-schema.mdx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/usage/installation/client-side-setup/define-your-schema.mdx b/usage/installation/client-side-setup/define-your-schema.mdx index 2345c6cc..7520c61e 100644 --- a/usage/installation/client-side-setup/define-your-schema.mdx +++ b/usage/installation/client-side-setup/define-your-schema.mdx @@ -11,11 +11,8 @@ This schema represents a "view" of the downloaded data. No migrations are requir In the [PowerSync Dashboard](/usage/tools/powersync-dashboard), the schema can be generated based off your [Sync Rules](/usage/sync-rules) by right-clicking on an instance and selecting **Generate client-side schema**. Currently, the schema can be generated in JavaScript or Dart. Support for Kotlin is coming soon. Similar functionality exists in the PowerSync [CLI](/usage/tools/cli). - - The generated schema will exclude the `id` column, as the client SDK automatically creates an `id` column of type `text`. - Consequently, it is not necessary to specify an `id` column in your schema. - For additional information on IDs, refer to [Client ID](/usage/sync-rules/client-id). - + +**Note:** The generated schema will exclude the `id` column, as the client SDK automatically creates an `id` column of type `text`. Consequently, it is not necessary to specify an `id` column in your schema. For additional information on IDs, refer to [Client ID](/usage/sync-rules/client-id). ## Example implementation