@famgia/omnify 1.0.59 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai-guides/schema-guide.md +28 -0
- package/package.json +9 -9
|
@@ -23,6 +23,7 @@ options:
|
|
|
23
23
|
softDelete: true # Enable soft delete (deleted_at column)
|
|
24
24
|
timestamps: true # Enable created_at, updated_at
|
|
25
25
|
tableName: custom_name # Custom table name
|
|
26
|
+
hidden: false # Hide from model generation (default: false)
|
|
26
27
|
properties:
|
|
27
28
|
# Property definitions here
|
|
28
29
|
```
|
|
@@ -147,6 +148,33 @@ comments:
|
|
|
147
148
|
morphName: commentable # Matches MorphTo property name
|
|
148
149
|
```
|
|
149
150
|
|
|
151
|
+
## Hidden Schemas
|
|
152
|
+
|
|
153
|
+
For system tables that only need migrations (no models), use `hidden: true`:
|
|
154
|
+
|
|
155
|
+
```yaml
|
|
156
|
+
# Cache table - migrations only, no Laravel/TypeScript models
|
|
157
|
+
name: Cache
|
|
158
|
+
options:
|
|
159
|
+
id: false
|
|
160
|
+
timestamps: false
|
|
161
|
+
hidden: true # Skip model generation
|
|
162
|
+
properties:
|
|
163
|
+
key:
|
|
164
|
+
type: String
|
|
165
|
+
primary: true
|
|
166
|
+
value:
|
|
167
|
+
type: Text
|
|
168
|
+
expiration:
|
|
169
|
+
type: Int
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Use cases for `hidden: true`:
|
|
173
|
+
- Laravel cache tables (`cache`, `cache_locks`)
|
|
174
|
+
- Job queues (`jobs`, `failed_jobs`)
|
|
175
|
+
- Session tables
|
|
176
|
+
- System tables that don't need application models
|
|
177
|
+
|
|
150
178
|
## Custom Primary Keys
|
|
151
179
|
|
|
152
180
|
For tables without auto-generated id (like cache, sessions, pivot tables):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@famgia/omnify",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"description": "Schema-driven database migration system with TypeScript types and Laravel migrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"README.md"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@famgia/omnify-cli": "0.0.
|
|
29
|
-
"@famgia/omnify-
|
|
30
|
-
"@famgia/omnify-typescript": "0.0.
|
|
31
|
-
"@famgia/omnify-
|
|
32
|
-
"@famgia/omnify-
|
|
33
|
-
"@famgia/omnify-
|
|
34
|
-
"@famgia/omnify-
|
|
35
|
-
"@famgia/omnify-japan": "0.0.
|
|
28
|
+
"@famgia/omnify-cli": "0.0.57",
|
|
29
|
+
"@famgia/omnify-types": "0.0.49",
|
|
30
|
+
"@famgia/omnify-typescript": "0.0.39",
|
|
31
|
+
"@famgia/omnify-laravel": "0.0.60",
|
|
32
|
+
"@famgia/omnify-core": "0.0.51",
|
|
33
|
+
"@famgia/omnify-mcp": "0.0.37",
|
|
34
|
+
"@famgia/omnify-atlas": "0.0.45",
|
|
35
|
+
"@famgia/omnify-japan": "0.0.44"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"omnify",
|