Skip to content

Commit 4ebc8df

Browse files
alaistersoedirgo
authored andcommitted
fix: adds check field on column type
1 parent 0edef18 commit 4ebc8df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const postgresColumnSchema = Type.Object({
3838
is_updatable: Type.Boolean(),
3939
is_unique: Type.Boolean(),
4040
enums: Type.Array(Type.String()),
41+
check: Type.Union([Type.String(), Type.Null()]),
4142
comment: Type.Union([Type.String(), Type.Null()]),
4243
})
4344
export type PostgresColumn = Static<typeof postgresColumnSchema>

0 commit comments

Comments
 (0)