diff --git a/src/generator/dialects/postgres/postgres-adapter.ts b/src/generator/dialects/postgres/postgres-adapter.ts index d9ad86a..648a76c 100644 --- a/src/generator/dialects/postgres/postgres-adapter.ts +++ b/src/generator/dialects/postgres/postgres-adapter.ts @@ -65,7 +65,10 @@ export class PostgresAdapter extends Adapter { new PropertyNode('y', new IdentifierNode('number')), ]), Timestamp: new ColumnTypeNode( - new IdentifierNode('Date'), + new UnionExpressionNode([ + new IdentifierNode('Date'), + new IdentifierNode('string'), + ]), new UnionExpressionNode([ new IdentifierNode('Date'), new IdentifierNode('string'),