Module types

Module types 

Source
Expand description

Schema type definitions for Ormada migrations

These types represent database schema in a database-agnostic way. They are used for:

  • Representing parsed #[ormada_model] and #[ormada_schema] definitions
  • Comparing schemas to generate migration diffs
  • Serializing schema state for migration files

Structs§

ColumnSchema
Represents a database column
ForeignKeySchema
Foreign key constraint
IndexSchema
Index definition
MigrationMeta
Migration metadata
RangeConstraint
Range constraint for numeric columns
TableDelta
Schema delta for a table (used in extends migrations)
TableSchema
Represents a complete database table schema

Enums§

ColumnType
Database column types
OnDeleteAction
ON DELETE actions for foreign keys
OnUpdateAction
ON UPDATE actions for foreign keys