I'm using mssql and my table have a NUMERIC(20) field. I'm trying to convert it to string on the get function but the this.getDataValue('code')
is returning a truncated int (8985353050864662000
)
code: {
type: DataTypes.NUMBER(20),
get() {
return this.getDataValue('code').toString();
}
}
The original number is a java UUID (8985353050864661894
)