0
Fork 0
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:
bholmesdev 2024-01-31 16:13:24 -05:00
parent 15cd141261
commit 33d0e5b2ab

View file

@ -3,7 +3,7 @@ import astroDb, { defineCollection, field } from '@astrojs/db';
const Recipe = defineCollection({ const Recipe = defineCollection({
fields: { fields: {
id: field.number({ primaryKey: true, optional: true }), id: field.number({ primaryKey: true }),
title: field.text(), title: field.text(),
description: field.text(), description: field.text(),
}, },
@ -11,7 +11,7 @@ const Recipe = defineCollection({
const Ingredient = defineCollection({ const Ingredient = defineCollection({
fields: { fields: {
id: field.number({ primaryKey: true, optional: true }), id: field.number({ primaryKey: true }),
name: field.text(), name: field.text(),
quantity: field.number(), quantity: field.number(),
recipeId: field.text(), recipeId: field.text(),