mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
chore: remove optional: true
from pk
This commit is contained in:
parent
15cd141261
commit
33d0e5b2ab
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ import astroDb, { defineCollection, field } from '@astrojs/db';
|
|||
|
||||
const Recipe = defineCollection({
|
||||
fields: {
|
||||
id: field.number({ primaryKey: true, optional: true }),
|
||||
id: field.number({ primaryKey: true }),
|
||||
title: field.text(),
|
||||
description: field.text(),
|
||||
},
|
||||
|
@ -11,7 +11,7 @@ const Recipe = defineCollection({
|
|||
|
||||
const Ingredient = defineCollection({
|
||||
fields: {
|
||||
id: field.number({ primaryKey: true, optional: true }),
|
||||
id: field.number({ primaryKey: true }),
|
||||
name: field.text(),
|
||||
quantity: field.number(),
|
||||
recipeId: field.text(),
|
||||
|
|
Loading…
Add table
Reference in a new issue