mvp del nuevo blog
This commit is contained in:
18
db/config.ts
Normal file
18
db/config.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { column } from "astro:db";
|
||||
import { defineTable } from "astro:db";
|
||||
import { defineDb } from "astro:db";
|
||||
|
||||
// https://astro.build/db/config
|
||||
|
||||
const BookMark = defineTable({
|
||||
columns: {
|
||||
id: column.number({ primaryKey: true }),
|
||||
title: column.text(),
|
||||
url: column.text(),
|
||||
description: column.text(),
|
||||
},
|
||||
});
|
||||
|
||||
export default defineDb({
|
||||
tables: { BookMark },
|
||||
});
|
||||
6
db/seed.ts
Normal file
6
db/seed.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { db } from 'astro:db';
|
||||
|
||||
// https://astro.build/db/seed
|
||||
export default async function seed() {
|
||||
// TODO
|
||||
}
|
||||
Reference in New Issue
Block a user