The core schema builder used in the Waterline ORM for Sails.js. Version 1.0.0 is stable. Extracts and normalizes model attributes, associations, and auto-migrations from model definitions. Differentiator: tightly coupled with Waterline ORM, not standalone; handles polymorphic associations and cross-module references. No recent releases; considered maintenance mode.
npm install waterline-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows building a schema from model definitions with Waterline Schema.
Upgrade Node.js to version >= 6.
Use Waterline's model definitions directly without manually constructing waterline-schema.
Ensure model definitions follow Waterline conventions with identity and attributes.
Add 'via' to polymorphic association definitions.
Pass schemas as an object with identity as keys: { user: { identity: 'user', attributes: {...} } }Add primaryKey: true to one attribute (e.g., id).
Use valid attribute type (string, integer, float, boolean, datetime, binary, json).
No dependency data recorded yet.