Generate Vapor project.

This commit is contained in:
Andrew Glaze
2025-05-14 18:38:30 -04:00
commit a94752a799
17 changed files with 463 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import Fluent
struct CreateTodo: AsyncMigration {
func prepare(on database: any Database) async throws {
try await database.schema("todos")
.id()
.field("title", .string, .required)
.create()
}
func revert(on database: any Database) async throws {
try await database.schema("todos").delete()
}
}