Hello people below is my model code for an user table...
module.exports = {
attributes: {
firstName: 'string',
lastName: 'string',
age: 'integer',
birthDate: 'date',
emailAddress: 'email'
}
};
It is creating user
table with the above mentioned attributes..but after after we insert some data from back end to database table user
... after restarting sails / nodejs .. it starts replacing the user table, so that all data inside user
will be lost... how to fix this? so that it does not create the same table if it already exists...