From b7d0fd32a965ec99bbcdc09215ae9802453eb808 Mon Sep 17 00:00:00 2001
From: sathwikcs <85106054+sathwikcs@users.noreply.github.com>
Date: Mon, 3 Mar 2025 13:05:08 +0530
Subject: [PATCH] Fixed the issue when adding employee
---
.idea/other.xml | 99 +++++++++++++++++++
.../sminnovations/smiadmin/data/Employee.kt | 32 +++++-
2 files changed, 128 insertions(+), 3 deletions(-)
diff --git a/.idea/other.xml b/.idea/other.xml
index dba9935..e965764 100644
--- a/.idea/other.xml
+++ b/.idea/other.xml
@@ -47,6 +47,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -69,6 +91,17 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -223,6 +256,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -234,6 +289,17 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -289,6 +355,17 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -345,6 +422,17 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -367,6 +455,17 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/java/in/sminnovations/smiadmin/data/Employee.kt b/app/src/main/java/in/sminnovations/smiadmin/data/Employee.kt
index 83a7f93..016ff91 100644
--- a/app/src/main/java/in/sminnovations/smiadmin/data/Employee.kt
+++ b/app/src/main/java/in/sminnovations/smiadmin/data/Employee.kt
@@ -1,15 +1,41 @@
package `in`.sminnovations.smiadmin.data
+import com.google.firebase.firestore.PropertyName
+
+
+
data class Employee(
+ @PropertyName("Id")
var Id: String = "",
+
+ @PropertyName("Name")
var Name: String = "",
+
+ @PropertyName("EmployeeStatus")
var EmployeeStatus: Boolean = false,
- var Designation:String = "",
+
+ @PropertyName("Designation")
+ var Designation: String = "",
+
+ @PropertyName("DateOfJoining")
var DateOfJoining: String = "",
+
+ @PropertyName("dateOfBirth")
var dateOfBirth: String = "",
+
+ @PropertyName("Mobile")
var Mobile: String = "",
+
+ @PropertyName("Email")
var Email: String = "",
+
+ @PropertyName("CreatedAt")
var CreatedAt: String = "",
- var from: String="",
- var role:String= "user"
+
+ @PropertyName("from")
+ var from: String = "",
+
+ @PropertyName("role")
+ var role: String = "user"
)
+