Add authorization

This commit is contained in:
2024-12-20 13:17:53 +05:30
parent 4b49c43a0c
commit a584fc91b5
16 changed files with 112 additions and 58 deletions

View File

@@ -5,16 +5,21 @@ import { z } from "zod";
export const userModel = mongoose.model(
"user",
new mongoose.Schema({
tenantId: String,
tenantId: {
type: String,
required: true,
},
pid: {
type: String,
unique: true,
required: true,
},
firstName: String,
lastName: String,
email: {
type: String,
unique: true,
required: true,
},
avatar: String,
status: String,