sequelize_orm_generator 0.1.0 copy "sequelize_orm_generator: ^0.1.0" to clipboard
sequelize_orm_generator: ^0.1.0 copied to clipboard

Code generator for sequelize_orm. Generates type-safe model classes, query builders, and a centralized model registry from annotated Dart classes using build_runner.

0.1.0 #

Initial beta release of sequelize_orm_generator.

Code Generation #

  • Generates type-safe model classes from @Table-annotated Dart classes via build_runner.
  • Per-model output: *Model (static queries), *Values (instance data), Create* / Update* (DTOs), *Columns, *Query, and *IncludeHelper.

Model Features #

  • Full support for @Table options: timestamps, paranoid, underscored, freezeTableName, schema, engine, charset, version, and more.
  • Attribute annotations: @PrimaryKey, @AutoIncrement, @AllowNull, @NotNull, @ColumnName, @Default, @Comment, @Unique, @Index.
  • Validation annotations: @IsEmail, @IsUrl, @Len, @Min, @Max, @IsUUID, @IsIn, and more.
  • Data type mapping for all supported Sequelize types.

Associations #

  • @HasOne, @HasMany, @BelongsTo annotations processed during generation.
  • Type-safe IncludeHelper generated per model for eager loading.
  • Association registration code generated for the model registry.

Model Registry #

  • Centralized ModelsRegistry generated with defineModels() and associateModels().
  • Automatically discovers and registers all annotated models in the project.

CLI #

  • Shared CLI utilities for project scaffolding and model generation.
0
likes
0
points
1.88k
downloads

Publisher

unverified uploader

Weekly Downloads

Code generator for sequelize_orm. Generates type-safe model classes, query builders, and a centralized model registry from annotated Dart classes using build_runner.

Repository (GitHub)
View/report issues

Topics

#orm #code-generation #build-runner #database #sql

License

unknown (license)

Dependencies

analyzer, build, glob, path, sequelize_orm, source_gen, yaml

More

Packages that depend on sequelize_orm_generator