mirror of
https://github.com/withastro/astro.git
synced 2025-03-17 23:11:29 -05:00
fix: respect default in table types
This commit is contained in:
parent
f3089c3652
commit
03277b81e1
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ export type Table<
|
|||
{
|
||||
tableName: TTableName;
|
||||
name: K;
|
||||
hasDefault: TFields[K] extends { default: NonNullable<unknown> }
|
||||
hasDefault: TFields[K]['schema'] extends { default: NonNullable<unknown> }
|
||||
? true
|
||||
: TFields[K]['schema'] extends { primaryKey: true }
|
||||
? true
|
||||
|
|
Loading…
Add table
Reference in a new issue