refactor: moves apps outside of apps/ path
This commit is contained in:
parent
b2d1a5ae9e
commit
c85e2e2357
45 changed files with 4 additions and 3 deletions
22
www/db/seed.ts
Normal file
22
www/db/seed.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { db, Guestbook } from 'astro:db';
|
||||
|
||||
export default async function seed() {
|
||||
await db.insert(Guestbook).values([
|
||||
{
|
||||
id: 1,
|
||||
name: 'alice',
|
||||
message: 'love the site!',
|
||||
url: 'https://example.com',
|
||||
createdAt: new Date('2026-01-20'),
|
||||
approved: true,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: 'bob',
|
||||
message: 'great blog posts',
|
||||
url: null,
|
||||
createdAt: new Date('2026-01-18'),
|
||||
approved: true,
|
||||
},
|
||||
]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue