Skip to content

Commit e1edddc

Browse files
committed
doc(data): support for serial identifiers
1 parent 29376f6 commit e1edddc

File tree

1 file changed

+2
-2
lines changed
  • src/pages/[platform]/build-a-backend/data/data-modeling/identifiers

1 file changed

+2
-2
lines changed

src/pages/[platform]/build-a-backend/data/data-modeling/identifiers/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ print("New Todo created: \(createdTodo)")
6666
</InlineFilter>
6767

6868
If you want, you can use Amplify Data to define single-field and composite identifiers:
69-
- Single-field identifier with a consumer-provided value (type: `id` or `string`, and must be marked `required`)
70-
- Composite identifier with a set of consumer-provided values (type: `id` or `string`, and must be marked `required`)
69+
- Single-field identifier with a consumer-provided value (type: `id` or `string` marked `required`, or for a [serial identifier](/[platform]/build-a-backend/data/data-modeling/add-fields/#assign-default-values-for-fields), type: `integer` marked `default`)
70+
- Composite identifier with a set of consumer-provided values (type: `id` or `string` marked `required`, or for a [serial identifier](/[platform]/build-a-backend/data/data-modeling/add-fields/#assign-default-values-for-fields), type: `integer` marked `default`)
7171

7272
## Single-field identifier
7373

0 commit comments

Comments
 (0)