Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sequelize default curdate

{ 
   type: Sequelize.DATEONLY,
   allowNull: false,
   defaultValue: Sequelize.NOW
}

{
  type: Sequelize.DATEONLY,
  allowNull: false,
  defaultValue: Sequelize.fn('now')
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sequelize #default #curdate
ADD COMMENT
Topic
Name
4+5 =