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§
- Column
Schema - Represents a database column
- Foreign
KeySchema - Foreign key constraint
- Index
Schema - Index definition
- Migration
Meta - Migration metadata
- Range
Constraint - Range constraint for numeric columns
- Table
Delta - Schema delta for a table (used in extends migrations)
- Table
Schema - Represents a complete database table schema
Enums§
- Column
Type - Database column types
- OnDelete
Action - ON DELETE actions for foreign keys
- OnUpdate
Action - ON UPDATE actions for foreign keys