Hi There , I am use sequelize js(for mysql) with express js and i try to insert a mobile number something like
+919999956666. it doesn't insert a current value..
How to fix this ... THanks in Advance
my code look like this ...
mobileNumber:{
type:Sequelize.BIGINT,
unique:true,
allowNull:false,
validate:{
not:{
args:["[a-z]",'i'],
msg:"Please enter a valid number"
},
len:{
args:[10,20],
msg:"Min length of the phone number is 10"
}
}
},