docs: general fixes and improvements (#7918)
* docs improvements and changes * updated module definition * modules + dml changes * fix build * fix vale error * fix lint errors * fixes to stripe docs * fix condition * fix condition * fix module defintion * fix checkout * disable UI action * change oas preview action * flatten provider module options * fix lint errors * add module link docs * pr comments fixes * fix vale error * change node engine version * links -> linkable * add note about database name * small fixes * link fixes * fix response code in api reference * added migrations step
This commit is contained in:
@@ -8,7 +8,7 @@ In this chapter, you’ll learn how to define indices on a data model.
|
||||
|
||||
## Define Index on Property
|
||||
|
||||
Define an index on a property using the `model` utility's `index` method.
|
||||
Use the `index` method on a property's definition to define an index.
|
||||
|
||||
For example:
|
||||
|
||||
@@ -38,12 +38,12 @@ In this example, you define an index on the `name` property.
|
||||
|
||||
## Define Index on Data Model
|
||||
|
||||
A data model has an `indexes` method that defines indices on the data model.
|
||||
A data model has an `indexes` method that defines indices on its properties.
|
||||
|
||||
The index can be on multiple columns (composite index). For example:
|
||||
|
||||
export const dataModelIndexHighlights = [
|
||||
["7", "indexes", "Define indices on the data model."],
|
||||
["7", "indexes", "Define indices on the data model's properties."],
|
||||
["9", "on", "Specify the properties to define the index on."]
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user