feathers-plus / generator-feathers-plus

A Yeoman generator to (re)generate a FeathersJS application supporting both REST and GraphQL architectural concepts and their query languages.

Home Page:https://generator.feathers-plus.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sequelize defaultValue instead of default

MohammedFaragallah opened this issue · comments

when using default attribute in the schema

number: { type: 'integer', default: 0 }

then regenerate it outputs this in sequelize model

visual: { type: DataTypes.INTEGER, default: 0 }

but it should outputs this to work with sequelize

visual: { type: DataTypes.INTEGER, defaultValue: 0 }

i think sequelize defaultValue only work with postgres

Resolved by #219

Published as cli+ 0.8.1 which uses generator 0.8.1.

Thank you, great work.