Add permits module
This commit is contained in:
@@ -16,6 +16,7 @@ export const userModel = mongoose.model(
|
||||
},
|
||||
firstName: String,
|
||||
lastName: String,
|
||||
name: String,
|
||||
email: {
|
||||
type: String,
|
||||
unique: true,
|
||||
|
||||
@@ -5,6 +5,7 @@ export async function createUser(input: CreateUserInput, tenantId: string) {
|
||||
const user = await userModel.create({
|
||||
tenantId: tenantId,
|
||||
pid: generateId(),
|
||||
name: input.firstName + " " + input.lastName,
|
||||
createdAt: new Date(),
|
||||
...input,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user