I used drizzle kit to pull table schemas from a pg table I want to get a plain schema that represents a row in this table I tried this but cannot infer the type from this schema
export const amBrandSchema = createSelectSchema(table);// This does not worktype AmBrandSchema = z.infer<typeof amBrandSchema>;
export const amBrandSchema = createSelectSchema(table);// This does not worktype AmBrandSchema = z.infer<typeof amBrandSchema>;
The
amBrandSchema
amBrandSchema
seems to be of a type
BuildSchema<"select",...>
BuildSchema<"select",...>
I would let to get a zod schema that is an object that represents a row of the table What am I doing wrong?