Repository navigation
π v1.0.1: Enhanced Primary Key Support & Improved Schema Handling
Sketch v1.0.1
What's New
- β¨ Added comprehensive primary key type support (ID, UUID, ULID)
- π§ Enhanced relationship foreign key handling for various key types
- π Updated package description in composer.json
Changes
Primary Key Enhancements
- Added support for ID, UUID, and ULID primary key types
- Improved schema validation for primary key configurations
- Updated blueprint generator to include key type options
Migration Generator Updates
- Enhanced foreign key handling for different primary key types
- Added automatic key type detection from relationships
- Improved constraint generation based on key type
YAML Blueprint Improvements
Added keyType support in relationships:
relationships:
- {
type: belongsTo,
model: User,
foreignKey: user_id,
keyType: uuid # id, uuid and ulid
}