Generate Vapor project.

This commit is contained in:
Riyyi
2024-11-09 20:38:38 +01:00
commit b47d61aacd
15 changed files with 468 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import Fluent
struct CreateTodo: AsyncMigration {
func prepare(on database: Database) async throws {
try await database.schema("todos")
.id()
.field("title", .string, .required)
.create()
}
func revert(on database: Database) async throws {
try await database.schema("todos").delete()
}
}