phorm_annotations 1.0.0
phorm_annotations: ^1.0.0 copied to clipboard
Annotation library for declarative SQL table and schema definitions in Dart. Designed to be used with code generators that produce SQL schemas, migrations, or runtime metadata.
Changelog #
1.0.0 #
- First stable release.
- Table schema annotations:
@Schema,@Column,@ID. - Database relationship annotations:
@HasMany,@HasOne,@BelongsTo,@ManyToMany, and@Join. - Support for customizable naming strategies, indexes, and custom JSON serialization options.
- Declarative CHECK validators (e.g.
NotEmptyValidator,EmailValidator). - Support for database-independent logical types mapping.
- Added
ValueConverter<D, S>for custom Dart-to-SQL type mappings. - Added test and seed utilities (
Factory<T>andSeederinterfaces).