Adds MySQL TIMESTAMP column support to Sequelize.js. Current stable version 1.4.0 supports Sequelize 3.x and 4.x. It converts TIMESTAMP values to JavaScript Date objects or epoch integers, handling timezone-aware storage. Key differentiator: Sequelize natively only supports DATETIME for MySQL; this library fills the gap for legacy schemas or apps requiring absolute time storage without timezone conversion. Note the Year 2038 problem and limited date range.
npm install sequelize-mysql-timestampNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows initializing the library, defining a model with TIMESTAMP column, and syncing.
Use string values in UTC format for $between: { hire_date: { $between: ['2016-01-01 00:00:00', '2016-01-31 23:59:59'] }}Upgrade to Sequelize 5+ native TIMESTAMP support or find alternative library.
Always pass Date objects, epoch integers, or Moment.js objects. Suppress warning with { warnings: false } option.Use DATETIME instead for dates outside the range, or migrate to a different data type.
Ensure you create a Sequelize instance first, then pass it to the factory function.
Call require('sequelize-mysql-timestamp')(sequelize) to get the data type.Use DATETIME for dates beyond 2038 or convert to epoch timestamp.
No dependency data recorded yet.