diff --git a/pkgs/utils/query.ts b/pkgs/utils/query.ts index 3dce3b5..21e7e15 100644 --- a/pkgs/utils/query.ts +++ b/pkgs/utils/query.ts @@ -121,7 +121,7 @@ export const execQuery = async (args: DBArg, prisma: any) => { is_pk: !!is_pk, type: type.toLowerCase(), optional: !!col.optional, - db_type: attr.name, + db_type: attr.name.toLowerCase(), default: default_val }; }