chore: decimal field type

This commit is contained in:
Chareice 2024-02-04 10:14:12 +08:00
parent 04e0a4db50
commit 3f1e3baaef
No known key found for this signature in database

View File

@ -10,7 +10,7 @@ const postgres = {
smallint: 'integer', smallint: 'integer',
integer: 'integer', integer: 'integer',
bigint: 'bigInt', bigint: 'bigInt',
decimal: 'float', decimal: 'decimal',
numeric: 'float', numeric: 'float',
real: 'float', real: 'float',
'double precision': 'float', 'double precision': 'float',
@ -45,6 +45,7 @@ const mysql = {
date: 'date', date: 'date',
time: 'time', time: 'time',
varchar: 'string', varchar: 'string',
decimal: 'decimal',
text: 'text', text: 'text',
longtext: 'text', longtext: 'text',
int: 'integer', int: 'integer',