File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
examples/showcase/enterprise-erp Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 8181│ └── index.ts
8282│
8383├── extensions/ # Custom Extensions/Overrides
84- │ ├── user.extension .object.yml
84+ │ ├── user_extension .object.yml
8585│ └── README.md
8686│
8787├── shared/ # Shared Utilities
@@ -251,7 +251,7 @@ fields:
251251 email: { type: text }
252252` ` `
253253
254- **Extension** (`extensions/user.extension .object.yml`):
254+ **Extension** (`extensions/user_extension .object.yml`):
255255` ` ` yaml
256256name: user # Same name triggers merge
257257fields:
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Extensions use ObjectQL's **Schema Merging** feature. When you define an object
88
99## Example: Extending the User Object
1010
11- The ` user.extension .object.yml` file extends the core ` user ` object with company-specific customizations:
11+ The ` user_extension .object.yml` file extends the core ` user ` object with company-specific customizations:
1212
13131 . ** Adding fields** - Links to employee record, office location
14142 . ** Overriding properties** - Making email required and unique
@@ -30,12 +30,12 @@ The `user.extension.object.yml` file extends the core `user` object with company
3030## File Naming Convention
3131
3232```
33- [object_name].extension .object.yml
33+ [object_name]_extension .object.yml
3434```
3535
3636Examples:
37- - ` user.extension .object.yml` - Extends the ` user ` object
38- - ` organization.extension .object.yml` - Extends the ` organization ` object
37+ - ` user_extension .object.yml` - Extends the ` user ` object
38+ - ` organization_extension .object.yml` - Extends the ` organization ` object
3939
4040## Loading Order
4141
Original file line number Diff line number Diff line change 1- # File: user.extension .object.yml
2- # Object name is inferred from filename as ' user'
1+ # File: user_extension .object.yml
2+ # Explicitly set name to 'user' to extend the core user object
33# This extends the core user object with company-specific fields
4+ name : user
45label : System User (Extended)
56
67ai_context :
You can’t perform that action at this time.
0 commit comments