diff --git a/Sources/App/Controllers/UserController.swift b/Sources/App/Controllers/UserController.swift new file mode 100644 index 0000000..cc4702c --- /dev/null +++ b/Sources/App/Controllers/UserController.swift @@ -0,0 +1,8 @@ +// +// File.swift +// +// +// Created by Michiel Carman on 9/26/24. +// + +import Foundation diff --git a/Sources/App/Errors/UserErrors.swift b/Sources/App/Errors/UserErrors.swift new file mode 100644 index 0000000..cc4702c --- /dev/null +++ b/Sources/App/Errors/UserErrors.swift @@ -0,0 +1,8 @@ +// +// File.swift +// +// +// Created by Michiel Carman on 9/26/24. +// + +import Foundation diff --git a/Sources/App/Migrations/CreateToken.swift b/Sources/App/Migrations/CreateToken.swift new file mode 100644 index 0000000..cc4702c --- /dev/null +++ b/Sources/App/Migrations/CreateToken.swift @@ -0,0 +1,8 @@ +// +// File.swift +// +// +// Created by Michiel Carman on 9/26/24. +// + +import Foundation diff --git a/Sources/App/Migrations/CreateUser.swift b/Sources/App/Migrations/CreateUser.swift new file mode 100644 index 0000000..cc4702c --- /dev/null +++ b/Sources/App/Migrations/CreateUser.swift @@ -0,0 +1,8 @@ +// +// File.swift +// +// +// Created by Michiel Carman on 9/26/24. +// + +import Foundation diff --git a/Sources/App/Models/Token.swift b/Sources/App/Models/Token.swift new file mode 100644 index 0000000..b2a1ea5 --- /dev/null +++ b/Sources/App/Models/Token.swift @@ -0,0 +1,8 @@ +// +// File.swift +// +// +// Created by Michiel Carman on 9/24/24. +// + +import Foundation diff --git a/Sources/App/Models/User.swift b/Sources/App/Models/User.swift new file mode 100644 index 0000000..caa91d5 --- /dev/null +++ b/Sources/App/Models/User.swift @@ -0,0 +1,16 @@ +// +// File.swift +// +// +// Created by Michiel Carman on 9/24/24. +// + +import Foundation +import Vapor +import Fluent + +final class User: Model { + @ID var id: UUID? + + @Field(key: "name") var name: String +}