@famgia/omnify 1.0.108 → 1.0.109
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 +14 -2
- package/package.json +9 -9
|
@@ -433,7 +433,7 @@ properties:
|
|
|
433
433
|
en: Enter name
|
|
434
434
|
nullable: false # NOT NULL
|
|
435
435
|
unique: true # UNIQUE constraint
|
|
436
|
-
default:
|
|
436
|
+
default: Guest # Default value (no quotes needed!)
|
|
437
437
|
rules:
|
|
438
438
|
required: true # App-level validation
|
|
439
439
|
minLength: 2
|
|
@@ -550,7 +550,7 @@ users:
|
|
|
550
550
|
org_role:
|
|
551
551
|
type: String
|
|
552
552
|
length: 50
|
|
553
|
-
default:
|
|
553
|
+
default: member # ✅ Just the value, NO quotes wrapper!
|
|
554
554
|
is_default:
|
|
555
555
|
type: Boolean
|
|
556
556
|
default: false
|
|
@@ -571,6 +571,18 @@ organizations:
|
|
|
571
571
|
mappedBy: users # References the owning side property
|
|
572
572
|
```
|
|
573
573
|
|
|
574
|
+
> ⚠️ **CRITICAL: String Default Values**
|
|
575
|
+
> ```yaml
|
|
576
|
+
> # ❌ WRONG - Produces curly quotes (smart quotes) → ''cloud''
|
|
577
|
+
> default: "'cloud'"
|
|
578
|
+
> default: "'member'"
|
|
579
|
+
>
|
|
580
|
+
> # ✅ CORRECT - Produces straight quotes → 'cloud'
|
|
581
|
+
> default: cloud
|
|
582
|
+
> default: member
|
|
583
|
+
> ```
|
|
584
|
+
> Just write the value directly without wrapping in quotes!
|
|
585
|
+
|
|
574
586
|
**Generated Migration:**
|
|
575
587
|
```php
|
|
576
588
|
Schema::create('organization_user', function (Blueprint $table) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@famgia/omnify",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.109",
|
|
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-
|
|
31
|
-
"@famgia/omnify-
|
|
32
|
-
"@famgia/omnify-
|
|
33
|
-
"@famgia/omnify-
|
|
34
|
-
"@famgia/omnify-
|
|
35
|
-
"@famgia/omnify-
|
|
28
|
+
"@famgia/omnify-cli": "0.0.105",
|
|
29
|
+
"@famgia/omnify-core": "0.0.99",
|
|
30
|
+
"@famgia/omnify-types": "0.0.97",
|
|
31
|
+
"@famgia/omnify-laravel": "0.0.108",
|
|
32
|
+
"@famgia/omnify-mcp": "0.0.85",
|
|
33
|
+
"@famgia/omnify-atlas": "0.0.93",
|
|
34
|
+
"@famgia/omnify-japan": "0.0.92",
|
|
35
|
+
"@famgia/omnify-typescript": "0.0.87"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"omnify",
|