| 1 | import * as Cloudflare from "alchemy/Cloudflare"; |
| 2 | |
| 3 | /** |
| 4 | * A D1 database with hand-written SQL migrations. Files under |
| 5 | * `./migrations` are sorted by numeric prefix and applied in order on |
| 6 | * every deploy; already-applied migrations are skipped. |
| 7 | */ |
| 8 | export const Database = Cloudflare.D1.Database("Database", { |
| 9 | migrations: "./migrations", |
| 10 | }); |