mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
b1eda3dc5c
* Fix building static sites with Astro DB * Adding a changeset * Try a different port range
12 lines
222 B
TypeScript
12 lines
222 B
TypeScript
import { column, defineDb, defineTable } from 'astro:db';
|
|
|
|
const User = defineTable({
|
|
columns: {
|
|
id: column.number({ primaryKey: true }),
|
|
name: column.text(),
|
|
},
|
|
});
|
|
|
|
export default defineDb({
|
|
tables: { User },
|
|
});
|