I am creating a table using Knex.JS, and the table has a column for a currency value.
For example, here is the column amount
:
knex.schema.createTable('payment', function(table) {
table.increments();
table.float('amount');
})
Currently, I am using the float
type, but I'd like to use the numeric
type. What is the equivalent of the numeric type in Knex.JS?
Thanks.