aboutsummaryrefslogtreecommitdiff
path: root/packages/db/test/fixtures/ticketing-example/db/seed.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/db/test/fixtures/ticketing-example/db/seed.ts')
-rw-r--r--packages/db/test/fixtures/ticketing-example/db/seed.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/db/test/fixtures/ticketing-example/db/seed.ts b/packages/db/test/fixtures/ticketing-example/db/seed.ts
new file mode 100644
index 000000000..f68a0c85b
--- /dev/null
+++ b/packages/db/test/fixtures/ticketing-example/db/seed.ts
@@ -0,0 +1,12 @@
+import { Event, db } from 'astro:db';
+
+export default async function () {
+ await db.insert(Event).values({
+ name: 'Sampha LIVE in Brooklyn',
+ description:
+ 'Sampha is on tour with his new, flawless album Lahai. Come see the live performance outdoors in Prospect Park. Yes, there will be a grand piano 🎹',
+ date: new Date('2024-01-01'),
+ ticketPrice: 10000,
+ location: 'Brooklyn, NY',
+ });
+}