feat: Begins views, login is currently not working.
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
import Fluent
|
||||
import Vapor
|
||||
|
||||
/// The user database model.
|
||||
///
|
||||
/// A user is someone who is able to login and generate PO's for employees. Generally a user should also
|
||||
/// have an employee profile, but not all employees are users. Users are generally restricted to office workers
|
||||
/// and administrators.
|
||||
///
|
||||
///
|
||||
final class User: Model, @unchecked Sendable {
|
||||
static let schema = "user"
|
||||
|
||||
@@ -82,6 +89,7 @@ extension User: ModelAuthenticatable {
|
||||
}
|
||||
|
||||
extension User: ModelSessionAuthenticatable {}
|
||||
extension User: ModelCredentialsAuthenticatable {}
|
||||
|
||||
extension User.Create: Validatable {
|
||||
static func validations(_ validations: inout Validations) {
|
||||
|
||||
Reference in New Issue
Block a user