docs: improved data model docs (#11884)
* docs: improved data model docs * fix build errors
This commit is contained in:
@@ -1063,7 +1063,7 @@ const MyCustom = model.define("my_custom", {
|
||||
})
|
||||
```
|
||||
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/property-types).
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/properties).
|
||||
|
||||
### Set Primary Key
|
||||
|
||||
@@ -1106,7 +1106,7 @@ const MyCustom = model.define("my_custom", {
|
||||
export default MyCustom
|
||||
```
|
||||
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/primary-key).
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/properties#set-primary-key-property).
|
||||
|
||||
### Default Property Value
|
||||
|
||||
@@ -1128,7 +1128,7 @@ const MyCustom = model.define("my_custom", {
|
||||
export default MyCustom
|
||||
```
|
||||
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/configure-properties).
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/properties#property-default-value).
|
||||
|
||||
### Nullable Property
|
||||
|
||||
@@ -1145,7 +1145,7 @@ const MyCustom = model.define("my_custom", {
|
||||
export default MyCustom
|
||||
```
|
||||
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/configure-properties#nullable-property).
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/properties#make-property-optional).
|
||||
|
||||
### Unique Property
|
||||
|
||||
@@ -1162,7 +1162,7 @@ const User = model.define("user", {
|
||||
export default User
|
||||
```
|
||||
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/configure-properties#unique-property).
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/properties#unique-property).
|
||||
|
||||
### Define Database Index on Property
|
||||
|
||||
@@ -1181,7 +1181,7 @@ const MyCustom = model.define("my_custom", {
|
||||
export default MyCustom
|
||||
```
|
||||
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/index#define-database-index-on-property).
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/properties#define-database-index-on-property).
|
||||
|
||||
### Define Composite Index on Data Model
|
||||
|
||||
@@ -1208,7 +1208,7 @@ const MyCustom = model.define("my_custom", {
|
||||
export default MyCustom
|
||||
```
|
||||
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/index#define-database-index-on-data-model).
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/index).
|
||||
|
||||
### Make a Property Searchable
|
||||
|
||||
@@ -1239,7 +1239,7 @@ const myCustoms = await helloModuleService.listMyCustoms({
|
||||
})
|
||||
```
|
||||
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/searchable-property).
|
||||
Learn more in [this documentation](!docs!/learn/fundamentals/data-models/properties#searchable-property).
|
||||
|
||||
### Create One-to-One Relationship
|
||||
|
||||
|
||||
Reference in New Issue
Block a user