mirror of
https://github.com/withastro/astro.git
synced 2025-03-17 23:11:29 -05:00
fix: include primaryKey in types
This commit is contained in:
parent
eb13dd3a4b
commit
10c475603b
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ function generateTableType(name: string, collection: DBCollection): string {
|
|||
type: field.type,
|
||||
optional: field.optional,
|
||||
default: field.default,
|
||||
primaryKey: 'primaryKey' in field ? field.primaryKey : false,
|
||||
},
|
||||
])
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue