Add permits module

This commit is contained in:
2024-12-21 16:26:01 +05:30
parent cc2665544b
commit 6c1399ddd4
9 changed files with 412 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ export const userModel = mongoose.model(
},
firstName: String,
lastName: String,
name: String,
email: {
type: String,
unique: true,

View File

@@ -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,
});