docs: improved data model docs (#11884)

* docs: improved data model docs

* fix build errors
This commit is contained in:
Shahed Nasser
2025-03-18 11:45:21 +02:00
committed by GitHub
parent aa6d5aa3cf
commit 3f2bdb59cb
23 changed files with 10642 additions and 10522 deletions
+8 -8
View File
@@ -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