0
Fork 0
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:
bholmesdev 2024-02-02 17:09:04 -05:00
parent eb13dd3a4b
commit 10c475603b

View file

@ -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,
},
])
)