Open
Description
Expected Behavior
import { z } from 'zod';
export const Table = z.object({
column: z.number().int().nullable().optional(),
});
export type TableT = z.infer<typeof Table>;
Actual Behavior
import { z } from 'zod';
export const Table = z.object({
column: z.number().int().nullable().optional(),
column: z.number().int().nullable().optional(),
});
export type TableT = z.infer<typeof Table>;
Steps to Reproduce the Problem
Have a table in schema1
create table schema1."table"
(
"column" integer
);
Create a view from this table in an other schema2
CREATE VIEW schema2.table as (
SELECT * FROM schema1.table
)
Generate types from schema2
Specifications
- Version: [email protected]
- Platform: PostgreSQL (ver. 15.5 (Debian 15.5-1.pgdg120+1)
Metadata
Assignees
Labels
No labels