/****** Object:  Table [dbo].[AutoLeaveupdation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AutoLeaveupdation](
	[autoid] [int] IDENTITY(1,1) NOT NULL,
	[leaveapplicationID] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ImportFromExcel]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ImportFromExcel](
	[Sl.No] [varchar](50) NULL,
	[Employeeid] [varchar](50) NULL,
	[LeaveType1] [decimal](18, 1) NULL,
	[LeaveType2] [decimal](18, 1) NULL,
	[LeaveType3] [decimal](18, 1) NULL,
	[LeaveType4] [decimal](18, 1) NULL,
	[LeaveType5] [decimal](18, 1) NULL,
	[LeaveType6] [decimal](18, 1) NULL,
	[LeaveType7] [decimal](18, 1) NULL,
	[LeaveType8] [decimal](18, 1) NULL,
	[LeaveType9] [decimal](18, 1) NULL,
	[LeaveType10] [decimal](18, 1) NULL,
	[LeaveType11] [decimal](18, 1) NULL,
	[LeaveType12] [decimal](18, 1) NULL,
	[LeaveType13] [decimal](18, 1) NULL,
	[LeaveType14] [decimal](18, 1) NULL,
	[LeaveType15] [decimal](18, 1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[PolygonTable]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[PolygonTable](
	[ID] [int] NOT NULL,
	[Polygon] [geometry] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Proc_ImportOvertime]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Proc_ImportOvertime](
	[autoid] [bigint] IDENTITY(1,1) NOT NULL,
	[Sl.no] [varchar](20) NULL,
	[Employee_Code_Id] [varchar](20) NULL,
	[Employee_FirstName] [varchar](max) NULL,
	[LevelName] [varchar](max) NULL,
	[date] [varchar](20) NULL,
	[HrsOT] [varchar](20) NULL,
	[ActHrsOT] [varchar](20) NULL,
	[OffOT] [varchar](20) NULL,
	[ActOffOT] [varchar](20) NULL,
	[HolOT] [varchar](20) NULL,
	[ActHolOT] [varchar](20) NULL,
	[SPEC_NormOT1] [varchar](20) NULL,
	[Modified_Spec_NormOTHrs1] [varchar](20) NULL,
	[SPEC_NormOT2] [varchar](20) NULL,
	[Modified_Spec_NormOTHrs2] [varchar](20) NULL,
	[SPEC_OffOT1] [varchar](20) NULL,
	[Modified_Spec_OffOTHrs1] [varchar](20) NULL,
	[SPEC_OffOT2] [varchar](20) NULL,
	[Modified_Spec_OffOTHrs2] [varchar](20) NULL,
	[SPEC_HOLOT1] [varchar](20) NULL,
	[Modified_Spec_HolOTHrs1] [varchar](20) NULL,
	[SPEC_HOLOT2] [varchar](20) NULL,
	[Modified_Spec_HolOTHrs2] [varchar](20) NULL,
	[OverTimeStatus] [varchar](20) NULL,
	[Error] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[SlabTable]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SlabTable](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[slabrow] [int] NULL,
	[policyId] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_ExportData_CustomFormat]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_ExportData_CustomFormat](
	[OptionType] [varchar](50) NOT NULL,
	[DateFormat] [varchar](50) NOT NULL,
	[TimeFormat] [varchar](50) NOT NULL,
	[DateTimeFormat] [varchar](50) NOT NULL,
	[XML_RootTag] [varchar](50) NOT NULL,
	[XML_FirstChildTag] [varchar](50) NOT NULL,
	[DataType] [varchar](50) NULL,
	[CompanyID] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_ExportData_FieldData]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_ExportData_FieldData](
	[OptionType] [varchar](50) NOT NULL,
	[FieldName] [varchar](50) NOT NULL,
	[UserDefinedFieldName] [varchar](50) NOT NULL,
	[FieldType] [varchar](50) NOT NULL,
	[DataType] [varchar](50) NULL,
	[CompanyID] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_AccessDeniedSettings]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_AccessDeniedSettings](
	[AccessDenied_Id] [int] IDENTITY(1,1) NOT NULL,
	[Terminal_ReaderID] [nvarchar](10) NULL,
	[Employee_Code_Id] [nvarchar](10) NULL,
	[AccessDeniedKey] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Additional_WeeklyOff]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Additional_WeeklyOff](
	[Addl_WeeklyOff_Id] [int] IDENTITY(1,1) NOT NULL,
	[Addl_WeekOff_Day] [nvarchar](50) NULL,
	[Addl_WeekOff_Week] [nvarchar](50) NULL,
	[LevelId_Id] [int] NULL,
	[IsDeleted] [bit] NULL,
	[Emp_Id] [int] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_Additional_WeeklyOff] PRIMARY KEY CLUSTERED 
(
	[Addl_WeeklyOff_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Additional_WeeklyOff_Levels]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Additional_WeeklyOff_Levels](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Addl_WeeklyOff_Id] [int] NOT NULL,
	[LevelId] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_AdditionalWeeklyOff_Levels] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_APIConfig]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_APIConfig](
	[APIID] [int] IDENTITY(1,1) NOT NULL,
	[APIURL] [nvarchar](2000) NULL,
	[BiostarUsername] [nvarchar](200) NULL,
	[BiostarPassword] [nvarchar](200) NULL,
	[syncEmp] [bit] NULL,
	[WhatsAPP_SID] [nvarchar](max) NULL,
	[WhatsApp_authToken] [nvarchar](max) NULL,
	[WhatsApp_SenderNumber] [nvarchar](50) NULL,
	[createdBy] [nvarchar](50) NULL,
	[createdDate] [datetime] NULL,
	[ModifyDate] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ApprovalSettings]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ApprovalSettings](
	[CompanyId] [int] NOT NULL,
	[OTApproval] [bit] NOT NULL,
	[LeaveSanction] [bit] NOT NULL,
	[PermissionSanction] [bit] NOT NULL,
	[ManualEntry] [bit] NOT NULL,
	[Emp_Id] [bigint] NOT NULL,
	[Roster] [bit] NULL,
	[Pattern] [bit] NOT NULL,
	[ODEntry] [bit] NULL,
	[Approval] [bit] NOT NULL,
	[webClockInOut] [bit] NULL,
	[ShiftRequisition] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_AttandanceCode]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_AttandanceCode](
	[AttandanceID] [int] IDENTITY(1,1) NOT NULL,
	[CompanyID] [int] NULL,
	[AttandanceCode] [nvarchar](50) NULL,
	[AttandanceValue] [nvarchar](50) NULL,
	[EmpID] [int] NULL,
	[isDeleted] [bit] NULL,
	[TimeStamp] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_AttendenceData]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_AttendenceData](
	[Attendence_Id] [int] IDENTITY(1,1) NOT NULL,
	[EmpId] [nvarchar](50) NOT NULL,
	[PresentDays] [numeric](18, 1) NULL,
	[OD] [numeric](18, 1) NULL,
	[EL] [numeric](18, 1) NULL,
	[CL] [numeric](18, 1) NULL,
	[SL] [numeric](18, 1) NULL,
	[LOP_Absent] [numeric](18, 1) NULL,
	[Difference_Days] [numeric](18, 1) NULL,
	[Total] [numeric](18, 1) NULL,
 CONSTRAINT [PK_TA_Tbl_AttendenceData] PRIMARY KEY CLUSTERED 
(
	[Attendence_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_AuditField]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_AuditField](
	[FieldID] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[TableID] [decimal](18, 0) NOT NULL,
	[FieldName] [nvarchar](100) NOT NULL,
	[FieldDescription] [nvarchar](100) NOT NULL,
	[InsertBit] [bit] NOT NULL,
	[UpdateBit] [bit] NOT NULL,
	[DeleteBit] [bit] NOT NULL,
	[Status] [bit] NOT NULL,
	[Datatype] [varchar](50) NULL,
 CONSTRAINT [PK_TA_Tbl_AuditField_1] PRIMARY KEY CLUSTERED 
(
	[FieldID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_AuditOperation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_AuditOperation](
	[ID] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[TableID] [decimal](18, 0) NOT NULL,
	[RecordID] [decimal](18, 0) NOT NULL,
	[FieldID] [decimal](18, 0) NOT NULL,
	[Opr] [nvarchar](25) NOT NULL,
	[OldValue] [nvarchar](500) NULL,
	[NewValue] [nvarchar](500) NULL,
	[EmployeeID] [int] NULL,
	[OprDate] [datetime] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_AuditOperation] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_AuditTable]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_AuditTable](
	[TableID] [decimal](18, 0) IDENTITY(1,1) NOT NULL,
	[TableName] [nvarchar](100) NOT NULL,
	[TableDescription] [nvarchar](100) NOT NULL,
	[Status] [bit] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_AuditTable] PRIMARY KEY CLUSTERED 
(
	[TableID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_AutoShiftConfiguration]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_AutoShiftConfiguration](
	[AutoShiftConfigId] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [int] NULL,
	[ShiftId1] [int] NULL,
	[ShiftId2] [int] NULL,
	[ShiftId3] [int] NULL,
	[ShiftId4] [int] NULL,
	[ShiftId5] [int] NULL,
	[CreatedBy] [int] NULL,
	[CreatedDate] [datetime] NULL,
	[ModifiedBy] [int] NULL,
	[ModifiedDate] [datetime] NULL,
	[IsImport] [bit] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_AutoShiftConfiguration] PRIMARY KEY CLUSTERED 
(
	[AutoShiftConfigId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_BiostarAPIDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_BiostarAPIDetails](
	[APIID] [int] IDENTITY(1,1) NOT NULL,
	[APIURL] [nvarchar](2000) NULL,
	[BiostarUsername] [nvarchar](200) NULL,
	[BiostarPassword] [nvarchar](200) NULL,
	[isMainAPI] [int] NULL,
	[Createdby] [bigint] NULL,
	[Modifyby] [bigint] NULL,
	[createdDate] [datetime] NULL,
	[Modifydate] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_BlockedEmployeeLogs]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_BlockedEmployeeLogs](
	[AutoID] [bigint] IDENTITY(1,1) NOT NULL,
	[EmployeeCodeID] [nvarchar](100) NULL,
	[PunchDate] [datetime] NULL,
	[PunchTime] [nvarchar](100) NULL,
	[DeviceID] [nvarchar](20) NULL,
	[ToMailID] [nvarchar](max) NULL,
	[CCMailID] [nvarchar](max) NULL,
	[MailContent] [nvarchar](max) NULL,
	[Timestamp] [datetime] NULL,
	[isMailSent] [int] NULL,
	[SentDatetime] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_BlockedEmployees]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_BlockedEmployees](
	[BlockId] [bigint] IDENTITY(1,1) NOT NULL,
	[EmployeeCard] [varchar](20) NULL,
	[Daily] [bit] NULL,
	[DayWise] [bit] NULL,
	[WeekWise] [bit] NULL,
	[QuarterWise] [bit] NULL,
	[ContinuousDayWise] [bit] NULL,
	[WhenBlocked_Daily] [datetime] NULL,
	[WhenBlocked_DayWise] [datetime] NULL,
	[WhenBlocked_WeekWise] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_BlockedEmployeesHistory]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_BlockedEmployeesHistory](
	[BlockId] [bigint] IDENTITY(1,1) NOT NULL,
	[EmployeeCard] [varchar](20) NULL,
	[Daily] [bit] NULL,
	[DayWise] [bit] NULL,
	[WeekWise] [bit] NULL,
	[QuarterWise] [bit] NULL,
	[ContinuousDayWise] [bit] NULL,
	[WhenBlocked_Daily] [datetime] NULL,
	[WhenBlocked_DayWise] [datetime] NULL,
	[WhenBlocked_WeekWise] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_BlockingType]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_BlockingType](
	[BlockingTypeID] [bigint] IDENTITY(1,1) NOT NULL,
	[BlockingType] [nvarchar](500) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_BlockingUnblockingEmployee]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_BlockingUnblockingEmployee](
	[AutoID] [bigint] IDENTITY(1,1) NOT NULL,
	[EmployeeCodeID] [nvarchar](200) NULL,
	[ShiftID] [bigint] NULL,
	[BlockingTypeID] [bigint] NULL,
	[BlockingDate] [datetime] NULL,
	[UnBlockingDate] [datetime] NULL,
	[ServiceExecuteTime] [datetime] NULL,
	[isStatus] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_Branding]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_Branding](
	[img_id] [int] IDENTITY(1,1) NOT NULL,
	[Cus_Image] [image] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Category]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Category](
	[CategoryId] [bigint] IDENTITY(1,1) NOT NULL,
	[CategoryName] [nvarchar](50) NULL,
	[IsDeleted] [bit] NULL,
	[EmpId] [bigint] NULL,
	[IsFlexible] [bit] NULL,
	[MonToSat_WorkHrs] [varchar](20) NULL,
	[Sat_WorkHrs] [numeric](18, 1) NULL,
	[WeekDay_WorkHrs] [varchar](20) NULL,
	[ARMIS_WorkHrs] [numeric](18, 1) NULL,
	[ParentIdForSubMenu] [int] NULL,
	[InActiveDate] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_CCGroup_ODApproval]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_CCGroup_ODApproval](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[CCGroupId] [bigint] NOT NULL,
	[CC_ODApproval] [int] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_CCGroup_ODApproval] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_CCGroup_Others]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_CCGroup_Others](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[CCGroupId] [bigint] NOT NULL,
	[CC_Others] [int] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_CCGroup_Others] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_CCGroup_Planned]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_CCGroup_Planned](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[CCGroupID] [bigint] NOT NULL,
	[CC_Planned] [int] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_CCGroup_Planned] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_CCGroup_UnPlanned]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_CCGroup_UnPlanned](
	[ID] [bigint] IDENTITY(1,1) NOT NULL,
	[CCGroupID] [bigint] NOT NULL,
	[CC_UnPlanned] [int] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_CCGroup_UnPlanned] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_CCMailGroup]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_CCMailGroup](
	[CCGroupID] [bigint] IDENTITY(1,1) NOT NULL,
	[LevelID] [int] NOT NULL,
	[DesignationID] [int] NOT NULL,
	[MailTo_SecondLevel_Planned] [bit] NOT NULL,
	[MailTo_SecondLevel_UnPlanned] [bit] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_CCMailGroup] PRIMARY KEY CLUSTERED 
(
	[CCGroupID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ChangePassword]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ChangePassword](
	[EmployeeId] [int] NOT NULL,
	[OldPassword] [nvarchar](16) NOT NULL,
	[NewPassword] [nvarchar](16) NOT NULL,
	[ConfirmNewPassword] [nvarchar](16) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Clk_RawData]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Clk_RawData](
	[CLK_ID] [bigint] IDENTITY(1,1) NOT NULL,
	[CLK_CARDID] [nvarchar](20) NULL,
	[CLK_DEVICEID] [nvarchar](20) NULL,
	[CLK_DATE] [datetime] NULL,
	[CLK_TIME] [nvarchar](25) NULL,
	[CLK_TYPE] [nvarchar](15) NULL,
	[CLK_FLAG] [int] NULL,
	[CLK_PROCESS] [int] NULL,
	[TimeStamp] [datetime] NOT NULL,
	[TimecheckDateTime] [datetime] NULL,
	[ReasonId] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_Clk_RawData] PRIMARY KEY CLUSTERED 
(
	[CLK_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Clk_RawDataErrorLogForAPIInsert]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Clk_RawDataErrorLogForAPIInsert](
	[CLK_ID] [int] IDENTITY(1,1) NOT NULL,
	[CLK_CARDID] [nvarchar](max) NULL,
	[CLK_DEVICEID] [nvarchar](max) NULL,
	[CLK_DATE] [datetime] NULL,
	[CLK_TIME] [nvarchar](50) NULL,
	[CLK_TYPE] [int] NULL,
	[ErrorMessage] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ClockDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ClockDetails](
	[Clk_Id] [int] IDENTITY(1,1) NOT NULL,
	[Clk_CompId] [nvarchar](10) NULL,
	[Clk_EmpId] [nvarchar](20) NULL,
	[Clk_InDeviceId] [nvarchar](20) NULL,
	[Clk_InDate] [datetime] NULL,
	[Clk_InTime] [datetime] NULL,
	[Clk_InPunchType] [nvarchar](25) NULL,
	[Clk_OutDeviceId] [nvarchar](20) NULL,
	[Clk_OutDate] [datetime] NULL,
	[Clk_OutTime] [datetime] NULL,
	[Clk_OutPunchType] [nvarchar](25) NULL,
	[Clk_Process] [nvarchar](1) NULL,
	[Clk_Remarks] [nvarchar](255) NULL,
	[Clk_User] [nvarchar](20) NULL,
	[Clk_Date] [datetime] NULL,
	[Clk_Status] [nvarchar](1) NULL,
	[IsVoid] [bit] NULL,
	[PunchType_Remarks] [varchar](max) NULL,
 CONSTRAINT [PK_TA_Tbl_ClockDetails] PRIMARY KEY CLUSTERED 
(
	[Clk_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_CMITechSyncEmployeeInfo]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_CMITechSyncEmployeeInfo](
	[CMITechRecordNo] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [varchar](max) NOT NULL,
	[EmployeeName] [varchar](max) NOT NULL,
 CONSTRAINT [TA_Tbl_CMITechEmployeeInfo] PRIMARY KEY CLUSTERED 
(
	[CMITechRecordNo] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_CompanyGroup]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_CompanyGroup](
	[CompanyGroup] [varchar](500) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Compensation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Compensation](
	[Compensation_Id] [int] IDENTITY(1,1) NOT NULL,
	[Employee_Id] [nvarchar](20) NULL,
	[ApplicationDate] [datetime] NULL,
	[FromDate] [datetime] NULL,
	[ToDate] [datetime] NULL,
	[Type] [numeric](18, 1) NULL,
	[Remarks] [nvarchar](2000) NULL,
	[Isdeleted] [bit] NULL,
	[LevelId] [bigint] NULL,
	[Status] [nvarchar](50) NULL,
	[LeaveApplication_Id] [nvarchar](200) NULL,
	[NoOfLeaveDays] [float] NULL,
	[InTime] [varchar](100) NULL,
	[OutTime] [varchar](100) NULL,
	[WorkedHours] [varchar](100) NULL,
	[DayWorked] [varchar](100) NULL,
	[Comments] [nvarchar](2000) NULL,
	[ExpiredDate] [datetime] NULL,
	[Quota] [float] NULL,
	[empid] [int] NULL,
	[ApprovedBy] [int] NULL,
	[ApprovedDate] [datetime] NULL,
	[RejectedBy] [int] NULL,
	[RejectedDate] [datetime] NULL,
	[TimeStamp] [datetime] NULL,
	[RemainingLeave] [float] NULL,
	[CompOffSatus] [nvarchar](100) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ConcurrentUser]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ConcurrentUser](
	[ConcurrentUserId] [int] IDENTITY(1,1) NOT NULL,
	[UserId] [nvarchar](15) NOT NULL,
	[IpAddress] [nvarchar](15) NOT NULL,
	[LoginTime] [datetime] NOT NULL,
	[Status] [bit] NOT NULL,
	[SessionId] [nvarchar](25) NOT NULL,
 CONSTRAINT [PK_TA_Tbl_ConcurrentUser] PRIMARY KEY CLUSTERED 
(
	[ConcurrentUserId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ConveyanceAllowance]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ConveyanceAllowance](
	[C_Id] [int] IDENTITY(1,1) NOT NULL,
	[ConPolicyName] [nvarchar](30) NULL,
	[conPercentage] [float] NULL,
	[conAmount] [bigint] NULL,
	[LimitAmount] [bigint] NULL,
	[Con_type] [varchar](50) NULL,
	[CompanyId] [int] NULL,
	[EmployeeCategory] [int] NULL,
	[EmployeeType] [int] NULL,
	[Gender] [int] NULL,
	[Created_BY] [int] NULL,
	[Created_Date] [date] NULL,
	[Modify_Date] [date] NULL,
	[isDeleted] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_DashboardData]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_DashboardData](
	[DataId] [int] IDENTITY(1,1) NOT NULL,
	[BoardParentName] [varchar](50) NULL,
	[BoardChildName] [varchar](50) NULL,
	[BoardId] [int] NULL,
 CONSTRAINT [PK__ta_tbl_D__9D05303DC71941DA] PRIMARY KEY CLUSTERED 
(
	[DataId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_DashboardUserrights]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_DashboardUserrights](
	[Rightsid] [int] IDENTITY(1,1) NOT NULL,
	[Usergroupid] [int] NULL,
	[Boardid] [int] NULL,
	[ViewPrev] [int] NULL,
	[Dashboard] [int] NULL,
	[Gridview] [int] NULL,
	[Chart] [int] NULL,
	[Empid] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_DataProcessCompanyLevelTemp]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_DataProcessCompanyLevelTemp](
	[LevelId] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_DataProcessTemp]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_DataProcessTemp](
	[ProcessDate] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_DateandTimeFormat]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_DateandTimeFormat](
	[DateandTimeFormatId] [int] IDENTITY(1,1) NOT NULL,
	[DateFormat] [nvarchar](50) NULL,
	[TimeFormat] [nvarchar](50) NOT NULL,
	[Time_Stamp] [datetime] NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[isDomain] [int] NULL,
	[DomainName] [nvarchar](500) NULL,
	[DomainAdminUserName] [nvarchar](500) NULL,
	[DomainAdminPassword] [nvarchar](1000) NULL,
 CONSTRAINT [PK_TA_Tbl_DateandTimeFormat] PRIMARY KEY CLUSTERED 
(
	[DateandTimeFormatId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Demo]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Demo](
	[InstalledDate] [nvarchar](100) NULL,
	[DemoExpiryDate] [nvarchar](100) NULL,
	[DemoType] [nvarchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_DeviceLogTableDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_DeviceLogTableDetails](
	[tblAutoID] [int] IDENTITY(1,1) NOT NULL,
	[DeviceLog_TableName] [varchar](50) NULL,
	[LastLogID] [bigint] NULL,
	[LogFetch_LastTime] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_DeviceServerDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_DeviceServerDetails](
	[ServerName] [nvarchar](1000) NULL,
	[DatabaseName] [nvarchar](1000) NULL,
	[UserId] [varchar](100) NULL,
	[Password] [varchar](100) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_DummyShiftDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_DummyShiftDetails](
	[ShiftName] [varchar](100) NULL,
	[RecordID] [int] NULL,
	[FullShiftName] [varchar](100) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_EmailReportNotSendedDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_EmailReportNotSendedDetails](
	[ReScheduleid] [bigint] IDENTITY(1,1) NOT NULL,
	[Id] [bigint] NULL,
	[FromMailId] [nvarchar](max) NULL,
	[ToEmailIds] [nvarchar](max) NULL,
	[CCEmailIds] [nvarchar](max) NULL,
	[EmailSubject] [nvarchar](300) NULL,
	[Content] [nvarchar](max) NULL,
	[Attachment] [nvarchar](max) NULL,
	[AraisedFrom] [nvarchar](50) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmailSchedule]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmailSchedule](
	[ScheduleId] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleName] [varchar](250) NOT NULL,
	[ReportId] [int] NOT NULL,
	[Frequency] [varchar](20) NOT NULL,
	[DayToSend] [varchar](10) NOT NULL,
	[DayFrom] [varchar](10) NOT NULL,
	[DayTo] [varchar](10) NOT NULL,
	[DateToSend] [int] NOT NULL,
	[DateFrom] [int] NOT NULL,
	[DateTo] [int] NOT NULL,
	[TimeToSend] [varchar](20) NOT NULL,
	[EmployeeId] [int] NOT NULL,
	[EmailSendType] [bit] NOT NULL,
	[Authentication] [bit] NOT NULL,
	[FileType] [varchar](20) NOT NULL,
	[Enabled] [bit] NOT NULL,
	[IsDeleted] [bit] NULL,
	[TimeStamp] [datetime] NULL,
	[ReportName] [varchar](50) NULL,
	[ToWhom] [int] NULL,
	[TimeSendOption] [int] NULL,
	[Reminder_afterDays] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_EmailSchedule] PRIMARY KEY CLUSTERED 
(
	[ScheduleId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmailScheduled_Employees]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmailScheduled_Employees](
	[ScheduleId] [bigint] NULL,
	[Employee_id] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmailScheduleFilters]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmailScheduleFilters](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleId] [bigint] NOT NULL,
	[Filters] [varchar](max) NULL,
	[ReportType] [varchar](25) NULL,
	[CompanyId] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_EmailScheduleFilters] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_EmailScheduleReminder]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_EmailScheduleReminder](
	[AutoID] [int] IDENTITY(1,1) NOT NULL,
	[ScheduledID] [bigint] NULL,
	[ReminderDate] [datetime] NULL,
	[status] [int] NULL,
	[frmDate] [datetime] NULL,
	[ToDate] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_EmailScheduleStatus]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_EmailScheduleStatus](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleId] [bigint] NOT NULL,
	[DurationFrom] [datetime] NOT NULL,
	[DurationTo] [datetime] NOT NULL,
	[SentDate] [datetime] NOT NULL,
	[Status] [bit] NOT NULL,
	[To_Mail] [varchar](50) NULL,
	[EmailID] [varchar](max) NULL,
	[ErrorMessage] [nvarchar](max) NULL,
 CONSTRAINT [PK_TA_tbl_EmailScheduleStatus] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_TBL_EmailScripts]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_TBL_EmailScripts](
	[ScriptId] [int] NOT NULL,
	[ScriptText] [varchar](max) NULL,
	[ScriptType] [nvarchar](200) NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmailTemplate]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmailTemplate](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleId] [bigint] NOT NULL,
	[Subject] [varchar](300) NOT NULL,
	[EmailContent] [varchar](max) NULL,
 CONSTRAINT [PK_TA_Tbl_EmailContent] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Emp_LeavePolicy]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Emp_LeavePolicy](
	[Emp_LeavePolicyId] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [int] NULL,
	[LeavePolicy_Id] [int] NULL,
	[FromDate] [datetime] NULL,
	[ToDate] [datetime] NULL,
	[YearSettingId] [int] NULL,
	[Isdeleted] [bit] NULL,
	[Time_stamp] [datetime] NULL,
	[Emp_Id] [int] NULL,
	[AutoCredit] [bit] NULL,
 CONSTRAINT [PK_TA_Tbl_Emp_LeavePolicy] PRIMARY KEY CLUSTERED 
(
	[Emp_LeavePolicyId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Emp_LeavePolicyDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Emp_LeavePolicyDetails](
	[Emp_LeavePolicyDetailsId] [int] IDENTITY(1,1) NOT NULL,
	[Emp_LeavePolicyId] [int] NULL,
	[EmpID] [int] NULL,
	[Policy_ID] [int] NULL,
	[LeaveType_Id] [int] NULL,
	[No_Of_Days] [decimal](18, 1) NULL,
	[Isdeleted] [bit] NULL,
	[Time_Stamp] [datetime] NULL,
	[Emp_Id] [int] NULL,
	[MaxDays_Month] [decimal](18, 1) NULL,
 CONSTRAINT [PK_TA_Tbl_Emp_LeavePolicyDetails] PRIMARY KEY CLUSTERED 
(
	[Emp_LeavePolicyDetailsId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_emp_LeaveTypedetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_emp_LeaveTypedetails](
	[LeaveTypeDetailsId] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [int] NULL,
	[LeaveTypeId] [int] NULL,
	[PreviousYearBalance] [decimal](18, 1) NULL,
	[NoOffLeaveAvailed] [decimal](18, 1) NULL,
	[YearSettingsId] [int] NULL,
	[IsDeleted] [bit] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Emp_TaxPolicy]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Emp_TaxPolicy](
	[Emp_TaxPolicyId] [bigint] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [int] NULL,
	[TaxPolicy_Id] [int] NULL,
	[isdeleted] [bit] NULL,
	[Time_stamp] [datetime] NULL,
	[Created_By] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[Emp_TaxPolicyId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmpChildrenDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmpChildrenDetails](
	[ChildEmp_ID] [int] IDENTITY(1,1) NOT NULL,
	[Emp_ID] [int] NOT NULL,
	[Spouse_Child] [char](1) NULL,
	[Name] [nvarchar](50) NULL,
	[DOB] [datetime] NULL,
	[Isdeleted] [bit] NULL,
	[Time_stamp] [datetime] NULL,
	[Employee_ID] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_EmpChildrenDetails] PRIMARY KEY CLUSTERED 
(
	[ChildEmp_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Employee]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Employee](
	[Employee_Id] [int] IDENTITY(1,1) NOT NULL,
	[UserGroup_Id] [int] NULL,
	[Designation_Id] [int] NULL,
	[ShiftPattern_Id] [int] NULL,
	[Bus_Id] [int] NULL,
	[Employee_FirstName] [nvarchar](50) NULL,
	[Employee_MiddleName] [nvarchar](50) NULL,
	[Employee_LastName] [nvarchar](50) NULL,
	[Father_name] [nvarchar](50) NULL,
	[Mother_name] [nvarchar](50) NULL,
	[DateofBirth] [datetime] NULL,
	[DateofBirth_Record] [datetime] NULL,
	[Blood_Group] [nvarchar](10) NULL,
	[EmailId] [nvarchar](100) NULL,
	[Contact_Address] [nvarchar](255) NULL,
	[Permanent_Address] [nvarchar](255) NULL,
	[Phone_Number] [nvarchar](50) NULL,
	[Mobile_Number] [nvarchar](50) NULL,
	[Gender] [nvarchar](10) NULL,
	[Marital_status] [nvarchar](10) NULL,
	[Nationality] [nvarchar](50) NULL,
	[Religion] [int] NULL,
	[Photo] [image] NULL,
	[Personal_mailid] [nvarchar](100) NULL,
	[Passport_No] [nvarchar](50) NULL,
	[Passport_expirydate] [datetime] NULL,
	[Visa_No] [nvarchar](50) NULL,
	[Visa_expirydate] [datetime] NULL,
	[Vehicle_Type] [nvarchar](20) NULL,
	[Vehicle_No] [nvarchar](50) NULL,
	[Anniversary_Date] [datetime] NULL,
	[Native_Place] [int] NULL,
	[District] [nvarchar](50) NULL,
	[State] [int] NULL,
	[Country] [int] NULL,
	[Spouse_No] [int] NULL,
	[Children_No] [int] NULL,
	[Employee_Code_Id] [nvarchar](15) NULL,
	[DateOfJoining] [datetime] NULL,
	[Reporting_To] [int] NULL,
	[Leave_Sanc_Authority] [int] NULL,
	[Prev_Experience] [float] NULL,
	[Basic_Salary] [float] NULL,
	[Allowances] [float] NULL,
	[UserName] [nvarchar](15) NULL,
	[Emp_password] [nvarchar](50) NULL,
	[Qual_JoiningTime] [nvarchar](50) NULL,
	[Qual_Employment] [nvarchar](50) NULL,
	[OutDoorJob] [bit] NULL,
	[CompOff_Eligible] [bit] NOT NULL,
	[OT_Eligible] [bit] NOT NULL,
	[ESI_Eligible] [bit] NOT NULL,
	[PF_Eligible] [bit] NULL,
	[Report_Exclude] [bit] NULL,
	[Employee_Status] [bit] NULL,
	[SwipeCardNo] [nvarchar](20) NULL,
	[Time_Stamp] [datetime] NULL,
	[Emp_ID] [int] NULL,
	[Isdeleted] [bit] NULL,
	[Hostel] [bit] NULL,
	[IsFlexible] [bit] NULL,
	[InActiveDate] [datetime] NULL,
	[CustomField1] [nvarchar](1000) NULL,
	[CustomField2] [nvarchar](1000) NULL,
	[CustomField3] [nvarchar](1000) NULL,
	[CustomField4] [nvarchar](1000) NULL,
	[CustomField5] [nvarchar](1000) NULL,
	[IsComplete] [bit] NULL,
	[Isdeleted_Status] [bit] NULL,
	[InActive_Status] [bit] NULL,
	[IsImported] [bit] NULL,
	[modify_date] [datetime] NULL,
	[modify_by] [bigint] NULL,
	[penalty] [bit] NULL,
	[MobileClockInOUt] [bit] NOT NULL,
	[SMSEnabled] [bit] NOT NULL,
	[IsPassportReminderRequired] [bit] NULL,
	[PassportRemindDays] [int] NULL,
	[IsVisaReminderRequired] [bit] NULL,
	[VisaRemindDays] [int] NULL,
	[IsMailSentForPassport] [bit] NULL,
	[IsMailSentForVisa] [bit] NULL,
	[IsPass_LastUpdatedOn] [datetime] NULL,
	[IsVisa_LastUpdatedOn] [datetime] NULL,
	[IsMyProfileRqrd] [bit] NULL,
	[Emp_Ctc] [bigint] NULL,
	[HRA] [int] NULL,
	[DA] [int] NULL,
	[PF_Policy] [int] NULL,
	[CA] [int] NULL,
	[MedicalAlllowance] [int] NULL,
	[CEDAllowance] [int] NULL,
	[Tax_Policy] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_Employee] PRIMARY KEY CLUSTERED 
(
	[Employee_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_EmployeeAPILog]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_EmployeeAPILog](
	[AutoID] [bigint] IDENTITY(1,1) NOT NULL,
	[LogID] [bigint] NULL,
	[Log_Timestamp] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_EmployeeApprovedData_Samsung]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_EmployeeApprovedData_Samsung](
	[RecordID] [bigint] NULL,
	[Employee ID] [varchar](50) NULL,
	[Name] [varchar](250) NULL,
	[Organization] [varchar](500) NULL,
	[CL	Name] [varchar](20) NULL,
	[Gender] [varchar](20) NULL,
	[Work Group] [varchar](100) NULL,
	[Work Type] [varchar](100) NULL,
	[Work Date] [varchar](20) NULL,
	[Day Type] [varchar](100) NULL,
	[After Approve IN] [varchar](100) NULL,
	[After Approve OUT] [varchar](100) NULL,
	[Over Time Actual] [varchar](100) NULL,
	[Error_Message] [varchar](500) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmployeeBonusLeave]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmployeeBonusLeave](
	[BonusLeaveId] [bigint] IDENTITY(1,1) NOT NULL,
	[YearSettingId] [int] NULL,
	[EmployeeId] [int] NULL,
	[BonusLeaveQuota] [int] NULL,
	[EmpId] [int] NULL,
	[Timestamp] [datetime] NULL,
 CONSTRAINT [PK_TA_Tbl_EmployeeBonusLeave] PRIMARY KEY CLUSTERED 
(
	[BonusLeaveId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmployeeCategory]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmployeeCategory](
	[EmployeeId] [bigint] NOT NULL,
	[CategoryId] [bigint] NOT NULL,
	[EffectiveDate] [datetime] NULL,
	[EmpId] [bigint] NULL,
	[Timestamp] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmployeeDesignation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmployeeDesignation](
	[EmpDesignationID] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeID] [int] NULL,
	[DesignationID] [int] NULL,
	[EffectiveDate] [datetime] NULL,
	[EmpID] [int] NULL,
	[Timestamp] [datetime] NULL,
 CONSTRAINT [PK_TA_Tbl_EmployeeDesignation] PRIMARY KEY CLUSTERED 
(
	[EmpDesignationID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmployeeEntrance]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmployeeEntrance](
	[Unique_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Employee_Code_Id] [varchar](50) NULL,
	[Device_Id] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_EmployeeErrorLog]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_EmployeeErrorLog](
	[autoID] [bigint] IDENTITY(1,1) NOT NULL,
	[EmployeeCode] [nvarchar](250) NULL,
	[Error] [nvarchar](max) NULL,
	[ErrorTimestamp] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmployeeLevel]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmployeeLevel](
	[EmployeeId] [bigint] NULL,
	[LevelId] [bigint] NULL,
	[EffectiveDate] [datetime] NULL,
	[EmpId] [bigint] NULL,
	[Timestamp] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmployeeLingual]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmployeeLingual](
	[EmployeeLingualId] [int] IDENTITY(1,1) NOT NULL,
	[LanguageId] [int] NOT NULL,
	[EmployeeId] [int] NOT NULL,
 CONSTRAINT [PK_EmployeeLingual] PRIMARY KEY CLUSTERED 
(
	[EmployeeLingualId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmployeePay]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmployeePay](
	[PayID] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [int] NULL,
	[BasicPay] [numeric](18, 2) NULL,
	[EffectiveDate] [datetime] NULL,
	[EmpID] [int] NULL,
	[Timestamp] [datetime] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_EmployeePay] PRIMARY KEY CLUSTERED 
(
	[PayID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_EmployeePunch]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_EmployeePunch](
	[RecordId] [bigint] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [varchar](5) NULL,
	[Date] [date] NULL,
	[Time] [time](7) NULL,
 CONSTRAINT [PK_Ta_Tbl_EmployeePunch] PRIMARY KEY CLUSTERED 
(
	[RecordId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmployeeShiftId_ForShiftReAllocation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmployeeShiftId_ForShiftReAllocation](
	[EmployeeAutoId] [bigint] NULL,
	[Date] [datetime] NULL,
	[CurrentShiftId] [int] NULL,
	[PreviousDayShift] [int] NULL,
	[NextDayShift] [int] NULL,
	[LoggedInEmployeId] [int] NULL,
	[Flag] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmployeeTransferModule]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmployeeTransferModule](
	[TrnsfrID] [int] IDENTITY(1,1) NOT NULL,
	[Employeeid] [int] NULL,
	[Employee_Code] [nvarchar](50) NULL,
	[Employee_Name] [nvarchar](100) NULL,
	[OrganizationLevels] [nvarchar](max) NULL,
	[Trnsfr_From] [nvarchar](50) NULL,
	[NwOrganizationLevels] [nvarchar](max) NULL,
	[OldLevelID] [int] NULL,
	[NwLevelID] [int] NULL,
	[NwDsgtonID] [int] NULL,
	[NwDsgton] [nvarchar](max) NULL,
	[Remarks] [nvarchar](max) NULL,
	[Trnsfr_EtyDteTme] [nvarchar](50) NULL,
	[Trnsfr_Emp_ID] [nvarchar](50) NULL,
	[Flag] [int] NULL,
	[EmployeeTrans_fr_Date] [nvarchar](50) NULL,
	[EmployeeTrans_To_Date] [nvarchar](50) NULL,
	[OldDsgtonID] [int] NULL,
	[IsDelete] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_EmployeeType]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_EmployeeType](
	[EmployeeId] [bigint] NOT NULL,
	[TypeId] [bigint] NOT NULL,
	[EffectiveDate] [datetime] NULL,
	[EmpId] [bigint] NULL,
	[Timestamp] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Encashment]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Encashment](
	[EncashmentId] [bigint] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [bigint] NOT NULL,
	[LeaveTypeId] [int] NOT NULL,
	[NumberOfDays] [decimal](18, 1) NOT NULL,
	[DateOfEncashment] [datetime] NOT NULL,
	[YearSettingId] [bigint] NOT NULL,
	[Reason] [nvarchar](50) NOT NULL,
	[Isdeleted] [bit] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_Encashment] PRIMARY KEY CLUSTERED 
(
	[EncashmentId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Entrance]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Entrance](
	[Entrance_Id] [int] IDENTITY(1,1) NOT NULL,
	[Entrance_Name] [nvarchar](50) NOT NULL,
	[Entrance_Description] [nvarchar](250) NULL,
	[OrgLevel_Id] [int] NULL,
	[NoOfInTerminals] [int] NULL,
	[NoOfOutTerminals] [int] NULL,
	[IsDeleted] [bit] NOT NULL,
	[Time_Stamp] [datetime] NOT NULL,
	[Emp_ID] [int] NULL,
	[Flag] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_Entrance] PRIMARY KEY CLUSTERED 
(
	[Entrance_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Entrance_INOUTDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Entrance_INOUTDetails](
	[EntranceInOut_Id] [int] IDENTITY(1,1) NOT NULL,
	[Entrance_Id] [int] NOT NULL,
	[Reader_Id] [int] NOT NULL,
	[Type] [nvarchar](10) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ErrLog]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ErrLog](
	[ErrId] [bigint] IDENTITY(1,1) NOT NULL,
	[ErrMessage] [nvarchar](4000) NULL,
	[ErrSource] [nvarchar](4000) NULL,
	[ErrStackTrace] [nvarchar](4000) NULL,
	[ErrException] [nvarchar](4000) NULL,
	[TimestampRec] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_Error_ImportData_Samsung]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_Error_ImportData_Samsung](
	[ErrorId] [bigint] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [varchar](100) NULL,
	[ErrorMsg] [varchar](max) NULL,
	[createdDate] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ErrorLog_ClockRawData]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ErrorLog_ClockRawData](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Clock_Id] [nchar](20) NULL,
	[ErrorMessage] [varchar](max) NULL,
	[TimeStamp] [datetime] NULL,
 CONSTRAINT [PK_TA_Tbl_ErrorLog_ClockRawData] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ErrorLog_ProcessedData]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ErrorLog_ProcessedData](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Process_Rec_ID] [bigint] NULL,
	[ErrorMessage] [varchar](max) NULL,
	[TimeStamp] [datetime] NULL,
 CONSTRAINT [PK_TA_Tbl_ErrorLog_ProcessedData] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_ExistingRightsDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_ExistingRightsDetails](
	[id] [int] NULL,
	[groupName] [nvarchar](500) NULL,
	[groupId] [int] NULL,
	[pageId] [float] NULL,
	[pageGroupId] [int] NULL,
	[addPrv] [bit] NULL,
	[modifyPrv] [bit] NULL,
	[deletePrv] [bit] NULL,
	[viewPrv] [bit] NULL,
	[isDeleted] [bit] NULL,
	[timeStamp] [datetime] NULL,
	[employeeId] [decimal](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ExportDataCentena]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ExportDataCentena](
	[DateImport] [datetime] NULL,
	[EmpCode] [varchar](50) NULL,
	[LeaveType] [varchar](20) NULL,
	[Days] [numeric](2, 1) NULL,
	[Remarks] [varchar](8000) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_Fencing]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_Fencing](
	[FencingId] [int] IDENTITY(1,1) NOT NULL,
	[Fencing_Name] [varchar](20) NULL,
	[LandmarkId] [varchar](20) NULL,
	[Createdby] [int] NULL,
	[CreatedDate] [datetime] NULL,
	[ModifyDate] [datetime] NULL,
	[CompanyId] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_FencingAttendance]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_FencingAttendance](
	[EmpID] [int] NULL,
	[CurrentLatitude] [float] NULL,
	[CurrenrLongitude] [float] NULL,
	[EntryDate] [varchar](20) NULL,
	[EntryTime] [varchar](10) NULL,
	[PunchType] [varchar](20) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_FolderPathConfiguration]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_FolderPathConfiguration](
	[FolderPathConfiguration_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[EmployeeFolderPath] [varchar](max) NULL,
	[OndutyFolderPath] [varchar](max) NULL,
	[LeaveFolderPath] [varchar](max) NULL,
	[CreatedBy] [bigint] NULL,
	[CreatedDate] [datetime] NULL,
	[ModifiedBy] [bigint] NULL,
	[ModifiedDate] [datetime] NULL,
	[AttendanceData] [varchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_GeoFencing]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_GeoFencing](
	[Fencing_Id] [int] IDENTITY(1,1) NOT NULL,
	[FencingName] [varchar](30) NULL,
	[LandmarkId] [varchar](100) NULL,
	[CompanyId] [int] NULL,
	[Created_By] [int] NULL,
	[CreatedDate] [datetime] NULL,
	[ModifyDate] [datetime] NULL,
	[isDeleted] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_GeoFencingAllocation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_GeoFencingAllocation](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [int] NULL,
	[FencingId] [int] NULL,
	[FromDate] [varchar](20) NULL,
	[Todate] [varchar](20) NULL,
	[CreatedBy] [int] NULL,
	[CreatedOn] [varchar](20) NULL,
	[ModifyBy] [int] NULL,
	[ModifyOn] [varchar](20) NULL,
	[months] [int] NULL,
	[years] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_GlobalWeekdaySettings]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_GlobalWeekdaySettings](
	[GlobalWeekday_Id] [int] IDENTITY(1,1) NOT NULL,
	[Company_Id] [int] NOT NULL,
	[GlobalWeekday_HrsMonday] [int] NOT NULL,
	[GlobalWeekday_HrsTuesday] [int] NOT NULL,
	[GlobalWeekday_HrsWenesday] [int] NOT NULL,
	[GlobalWeekday_HrsThursday] [int] NOT NULL,
	[GlobalWeekday_HrsFriday] [int] NOT NULL,
	[GlobalWeekday_HrsSaturday] [int] NOT NULL,
	[GlobalWeekday_HrsSunday] [int] NOT NULL,
	[GlobalWeekday_MondayWeekOff] [bit] NOT NULL,
	[GlobalWeekday_TuesdayWeekOff] [bit] NOT NULL,
	[GlobalWeekday_WensdayWeekOff] [bit] NOT NULL,
	[GlobalWeekday_ThursdayWeekOff] [bit] NOT NULL,
	[GlobalWeekday_FridayWeekOff] [bit] NOT NULL,
	[GlobalWeekday_SaturdayWeekOff] [bit] NOT NULL,
	[GlobalWeekday_SundayWeekOff] [bit] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_GraceDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_GraceDetails](
	[ShiftID] [int] NULL,
	[OldGraceShiftIn] [nvarchar](6) NULL,
	[OldGraceShiftOut] [nvarchar](6) NULL,
	[Shift_BreakStartTime1] [nvarchar](10) NULL,
	[Shift_BreakEndTime1] [nvarchar](10) NULL,
	[Shift_BreakStartTime2] [nvarchar](10) NULL,
	[Shift_BreakEndTime2] [nvarchar](10) NULL,
	[Shift_BreakStartTime3] [nvarchar](10) NULL,
	[Shift_BreakEndTime3] [nvarchar](10) NULL,
	[TimeStamp] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Grade]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Grade](
	[Grade_ID] [int] IDENTITY(1,1) NOT NULL,
	[Grade_Name] [nvarchar](50) NOT NULL,
	[Grade_Level] [int] NULL,
	[Emp_ID] [int] NULL,
	[Time_Stamp] [datetime] NULL,
	[Isdeleted] [bit] NULL,
 CONSTRAINT [PK_TA_Tbl_Grade] PRIMARY KEY CLUSTERED 
(
	[Grade_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_GroupDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_GroupDetails](
	[Group_Id] [int] IDENTITY(1,1) NOT NULL,
	[Group_Name] [nvarchar](50) NOT NULL,
	[Group_Description] [nvarchar](50) NOT NULL,
	[IsDeleted] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_HelpContent]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_HelpContent](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Header] [nvarchar](max) NULL,
	[Paragraph] [nvarchar](max) NULL,
	[createdDate] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Holiday]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Holiday](
	[Holiday_Id] [int] IDENTITY(1,1) NOT NULL,
	[Holiday_Type] [char](1) NOT NULL,
	[Holiday_FromDate] [datetime] NOT NULL,
	[Holiday_ToDate] [datetime] NULL,
	[Holiday_Description] [nvarchar](250) NOT NULL,
	[YearSettings_Id] [int] NULL,
	[Isdeleted] [bit] NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[LevelId] [bigint] NULL,
 CONSTRAINT [PK_TA_Tbl_Holiday] PRIMARY KEY CLUSTERED 
(
	[Holiday_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_HolidayChildTable]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_HolidayChildTable](
	[Holiday_ChildId] [int] IDENTITY(1,1) NOT NULL,
	[LevelId] [bigint] NULL,
	[Holiday_Id] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_HolidayHistory]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_HolidayHistory](
	[Holiday_Id] [int] NULL,
	[userId] [int] NULL,
	[CreatedDate] [datetime] NULL,
	[Type] [varchar](20) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_HolidaySettings]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_HolidaySettings](
	[Holiday_Id] [int] IDENTITY(1,1) NOT NULL,
	[Global_Maxdays] [int] NOT NULL,
	[Yearly_Maxdays] [int] NOT NULL,
	[YearSettingId] [int] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_HolidaySettings] PRIMARY KEY CLUSTERED 
(
	[Holiday_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_HolidayTriggerforAudit]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_HolidayTriggerforAudit](
	[TriggerID] [int] IDENTITY(1,1) NOT NULL,
	[HolidayID] [int] NULL,
	[EmployeeID] [int] NULL,
	[Type] [nvarchar](50) NULL,
	[ModifiedDate] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_ImportMasterData]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_ImportMasterData](
	[EmployeeID] [int] NULL,
	[Emp_FirstName] [nvarchar](250) NULL,
	[Emp_MiddleName] [nvarchar](250) NULL,
	[Emp_LastName] [nvarchar](250) NULL,
	[Father_Name] [nvarchar](250) NULL,
	[Mother_Name] [nvarchar](250) NULL,
	[DateOfBirth] [nvarchar](250) NULL,
	[DateOfBirth_Record] [nvarchar](250) NULL,
	[Blood_Group] [nvarchar](5) NULL,
	[Email_Id] [nvarchar](250) NULL,
	[Contact_Address] [nvarchar](2250) NULL,
	[Permanent_Address] [nvarchar](2250) NULL,
	[Phone_Number] [nvarchar](250) NULL,
	[Mobile_Number] [nvarchar](250) NULL,
	[Gender] [nvarchar](250) NULL,
	[Marital_Status] [nvarchar](250) NULL,
	[Nationality] [nvarchar](250) NULL,
	[Religion] [nvarchar](250) NULL,
	[Personal_EmailID] [nvarchar](250) NULL,
	[Passport_No] [nvarchar](250) NULL,
	[Passport_ExpiryDate] [nvarchar](250) NULL,
	[Visa_No] [nvarchar](250) NULL,
	[Visa_ExpiryDate] [nvarchar](250) NULL,
	[Employee_Code] [nvarchar](25) NULL,
	[DateOfJoining] [nvarchar](25) NULL,
	[Qualification_joiningtime] [nvarchar](25) NULL,
	[Qualification_Employement] [nvarchar](25) NULL,
	[OutDoorJob] [bit] NULL,
	[CompOff_Eligible] [bit] NULL,
	[OT_Eligible] [bit] NULL,
	[ESI_Eligible] [bit] NULL,
	[PF_Eligible] [bit] NULL,
	[Report_Exclude] [bit] NULL,
	[Employee_Status] [bit] NULL,
	[SwipeCardNo] [nvarchar](250) NULL,
	[IsDeleted] [bit] NULL,
	[Hostel] [bit] NULL,
	[Designation] [nvarchar](250) NULL,
	[Grade] [nvarchar](250) NULL,
	[GradeNo] [nvarchar](250) NULL,
	[EmployeeType] [nvarchar](250) NULL,
	[EmployeeCategory] [nvarchar](250) NULL,
	[BasicSalary] [nvarchar](10) NULL,
	[Level1] [nvarchar](250) NULL,
	[Level2] [nvarchar](250) NULL,
	[Level3] [nvarchar](250) NULL,
	[Level4] [nvarchar](250) NULL,
	[Level5] [nvarchar](250) NULL,
	[Level6] [nvarchar](250) NULL,
	[Level7] [nvarchar](250) NULL,
	[Level8] [nvarchar](250) NULL,
	[Level9] [nvarchar](250) NULL,
	[Level10] [nvarchar](250) NULL,
	[Level1_Id] [int] NULL,
	[Level2_Id] [int] NULL,
	[Level3_Id] [int] NULL,
	[Level4_Id] [int] NULL,
	[Level5_Id] [int] NULL,
	[Level6_Id] [int] NULL,
	[Level7_Id] [int] NULL,
	[Level8_Id] [int] NULL,
	[Level9_Id] [int] NULL,
	[Level10_Id] [int] NULL,
	[childLevelId] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ImportMasterError]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ImportMasterError](
	[id] [bigint] IDENTITY(1,1) NOT NULL,
	[Emp_FirstName] [nvarchar](50) NULL,
	[Emp_MiddleName] [nvarchar](50) NULL,
	[Emp_LastName] [nvarchar](50) NULL,
	[Father_Name] [nvarchar](50) NULL,
	[Mother_Name] [nvarchar](50) NULL,
	[DateOfBirth] [nvarchar](20) NULL,
	[DateOfBirth_Record] [nvarchar](20) NULL,
	[Blood_Group] [nvarchar](10) NULL,
	[Email_Id] [nvarchar](100) NULL,
	[Contact_Address] [nvarchar](max) NULL,
	[Permanent_Address] [nvarchar](max) NULL,
	[Phone_Number] [nvarchar](50) NULL,
	[Mobile_Number] [nvarchar](50) NULL,
	[Gender] [nvarchar](10) NULL,
	[Marital_Status] [nvarchar](10) NULL,
	[Nationality] [nvarchar](50) NULL,
	[Religion] [nvarchar](50) NULL,
	[Personal_EmailID] [nvarchar](100) NULL,
	[Passport_No] [nvarchar](50) NULL,
	[Passport_ExpiryDate] [nvarchar](20) NULL,
	[Visa_No] [nvarchar](50) NULL,
	[Visa_ExpiryDate] [nvarchar](20) NULL,
	[Employee_Code] [nvarchar](50) NULL,
	[DateOfJoining] [nvarchar](20) NULL,
	[Qualification_joiningtime] [nvarchar](50) NULL,
	[Qualification_Employement] [nvarchar](50) NULL,
	[CompOff_Eligible] [nvarchar](5) NULL,
	[OT_Eligible] [nvarchar](5) NULL,
	[Report_Exclude] [nvarchar](5) NULL,
	[Employee_Status] [nvarchar](5) NULL,
	[IsDeleted] [nvarchar](5) NULL,
	[Hostel] [nvarchar](5) NULL,
	[Designation] [nvarchar](200) NULL,
	[Grade] [nvarchar](50) NULL,
	[GradeNo] [nvarchar](50) NULL,
	[Employee_Type] [nvarchar](100) NULL,
	[Employee_Category] [nvarchar](100) NULL,
	[BasicSalary] [nvarchar](50) NULL,
	[Level1] [nvarchar](100) NULL,
	[Level2] [nvarchar](100) NULL,
	[Level3] [nvarchar](100) NULL,
	[Level4] [nvarchar](100) NULL,
	[Level5] [nvarchar](100) NULL,
	[Level6] [nvarchar](100) NULL,
	[Level7] [nvarchar](100) NULL,
	[Level8] [nvarchar](100) NULL,
	[Level9] [nvarchar](100) NULL,
	[Level10] [nvarchar](100) NULL,
	[IsValid] [int] NULL,
	[Error] [nvarchar](max) NULL,
	[RecordNumber] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ImportShiftAllocation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ImportShiftAllocation](
	[Employee_Id] [int] NULL,
	[Employee_Code_Id] [varchar](100) NULL,
	[Company_Id] [int] NULL,
	[Company_Name] [varchar](250) NULL,
	[Year] [varchar](5) NULL,
	[Mon] [varchar](20) NULL,
	[Day1] [varchar](8) NULL,
	[Day2] [varchar](8) NULL,
	[Day3] [varchar](8) NULL,
	[Day4] [varchar](8) NULL,
	[Day5] [varchar](8) NULL,
	[Day6] [varchar](8) NULL,
	[Day7] [varchar](8) NULL,
	[Day8] [varchar](8) NULL,
	[Day9] [varchar](8) NULL,
	[Day10] [varchar](8) NULL,
	[Day11] [varchar](8) NULL,
	[Day12] [varchar](8) NULL,
	[Day13] [varchar](8) NULL,
	[Day14] [varchar](8) NULL,
	[Day15] [varchar](8) NULL,
	[Day16] [varchar](8) NULL,
	[Day17] [varchar](8) NULL,
	[Day18] [varchar](8) NULL,
	[Day19] [varchar](8) NULL,
	[Day20] [varchar](8) NULL,
	[Day21] [varchar](8) NULL,
	[Day22] [varchar](8) NULL,
	[Day23] [varchar](8) NULL,
	[Day24] [varchar](8) NULL,
	[Day25] [varchar](8) NULL,
	[Day26] [varchar](8) NULL,
	[Day27] [varchar](8) NULL,
	[Day28] [varchar](8) NULL,
	[Day29] [varchar](8) NULL,
	[Day30] [varchar](8) NULL,
	[Day31] [varchar](8) NULL,
	[ImportID] [int] IDENTITY(1,1) NOT NULL,
	[RecordNumber] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_IndividualEmailNotification]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_IndividualEmailNotification](
	[EmailtriggerID] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeID] [int] NULL,
	[Employee_Code_ID] [nvarchar](50) NULL,
	[Employee_Name] [nvarchar](50) NULL,
	[CompanyID] [nvarchar](50) NULL,
	[LateEntry] [nvarchar](50) NULL,
	[LateHrs] [nvarchar](50) NULL,
	[AbsentAN] [nvarchar](50) NULL,
	[AbsentFN] [nvarchar](50) NULL,
	[EarlyExit] [nvarchar](50) NULL,
	[EarlyExitHrs] [nvarchar](50) NOT NULL,
	[ShiftDate] [nvarchar](50) NULL,
	[ReportType] [nvarchar](50) NULL,
	[IsFlag] [int] NULL,
	[TimeStamp] [datetime] NULL,
	[EmailSendTime] [datetime] NULL,
	[Reason] [nvarchar](max) NULL,
	[EmpShiftId] [int] NULL,
	[EmailscheduleTime] [datetime] NULL,
	[Status] [nvarchar](50) NULL,
	[Remarks] [nvarchar](100) NULL,
	[ApprovalRemark] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_LandMarks]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_LandMarks](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Options] [nvarchar](max) NULL,
	[LocationName] [nvarchar](500) NULL,
	[Radius] [int] NULL,
	[Description] [nvarchar](1000) NULL,
	[Address] [nvarchar](500) NULL,
	[City] [nvarchar](500) NULL,
	[State] [nvarchar](500) NULL,
	[Country] [nvarchar](500) NULL,
	[latitude] [varchar](30) NULL,
	[longitude] [varchar](30) NULL,
	[CreatedBy] [int] NULL,
	[CreatedDate] [datetime] NULL,
	[ModifiedBy] [int] NULL,
	[ModifiedDate] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_LastUpdationofFile_Samsung]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_LastUpdationofFile_Samsung](
	[UpdationId] [bigint] IDENTITY(1,1) NOT NULL,
	[UpdationDatetime] [datetime] NULL,
	[Recordscount] [bigint] NULL,
	[LastEmployeeAutoId] [bigint] NULL,
	[DataName] [varchar](25) NULL,
	[Filepath] [varchar](max) NULL,
	[LastFileModifiedDate] [datetime] NULL,
	[LastFileCreationDate] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeaveAnalysisNotes]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeaveAnalysisNotes](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Notes] [varchar](8000) NULL,
	[DateInserted] [datetime] NULL,
	[EmpID] [int] NULL,
	[IsDeleted] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeaveApplication]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeaveApplication](
	[LeaveApplication_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Employee_Id] [int] NOT NULL,
	[Leave_ApplicationDate] [datetime] NOT NULL,
	[LeaveType_id] [int] NOT NULL,
	[Type] [nvarchar](50) NOT NULL,
	[Leave_FromDate] [datetime] NOT NULL,
	[Leave_ToDate] [datetime] NOT NULL,
	[Leave_SessionFrom] [nvarchar](50) NULL,
	[Leave_SessionTo] [nvarchar](50) NULL,
	[NumberOfDays] [decimal](18, 1) NOT NULL,
	[Reason] [nvarchar](1000) NULL,
	[IntimationType] [nvarchar](25) NULL,
	[Status] [nvarchar](50) NOT NULL,
	[IsDeleted] [bit] NOT NULL,
	[Remarks] [nvarchar](1000) NULL,
	[IsBorrow] [bit] NULL,
	[Emp_Id] [int] NULL,
	[YearSettings_Id] [int] NULL,
	[CheckedIDs] [int] NULL,
	[InformTo] [varchar](max) NULL,
	[companyId] [int] NULL,
	[Successiveyear] [bit] NULL,
	[Intervening] [char](5) NULL,
	[MCFilePath] [varchar](200) NULL,
	[isCalanderflag] [bit] NULL,
 CONSTRAINT [PK_TA_Tbl_LeaveApplication] PRIMARY KEY CLUSTERED 
(
	[LeaveApplication_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeaveApplication_FileUpload]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeaveApplication_FileUpload](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[FileName] [varchar](50) NOT NULL,
	[FilePath] [nvarchar](200) NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[LeaveApplication_Id] [bigint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeaveApplicationExists]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeaveApplicationExists](
	[LeaveApplicationId] [bigint] NULL,
	[Employee_Id] [nvarchar](20) NOT NULL,
	[Leave_ApplicationDate] [datetime] NOT NULL,
	[Leave_FromDate] [datetime] NOT NULL,
	[Leave_ToDate] [datetime] NOT NULL,
	[Leave_SessionFrom] [nvarchar](50) NOT NULL,
	[Leave_SessionTo] [nvarchar](50) NOT NULL,
	[Status] [nvarchar](50) NULL,
	[IsDeleted] [bit] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeaveApplicationMaster]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeaveApplicationMaster](
	[LeaveApplication_Id] [int] IDENTITY(1,1) NOT NULL,
	[Employee_Id] [nvarchar](20) NOT NULL,
	[Leave_ApplicationDate] [datetime] NOT NULL,
	[Reason] [nvarchar](1000) NULL,
	[IntimationType] [nvarchar](25) NULL,
	[Status] [nvarchar](50) NOT NULL,
	[IsDeleted] [bit] NOT NULL,
	[Emp_Id] [int] NULL,
	[YearSettings_Id] [int] NULL,
	[CCMail] [varchar](3000) NULL,
	[LeaveAvailedYear] [decimal](18, 1) NULL,
	[LeaveAvailedMonth] [decimal](18, 1) NULL,
 CONSTRAINT [PK_TA_Tbl_LeaveApplicationMaster] PRIMARY KEY CLUSTERED 
(
	[LeaveApplication_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeaveApplicationPrintDetails_Eastman]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeaveApplicationPrintDetails_Eastman](
	[Autoid] [int] NOT NULL,
	[leaveAppID] [bigint] NULL,
	[LeaveTaken] [decimal](18, 1) NULL,
	[EarnedLeave] [decimal](18, 1) NULL,
	[LOP] [decimal](18, 1) NULL,
	[LeaveBalance] [decimal](18, 1) NULL,
	[WaiveOff] [decimal](18, 1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeaveConversation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeaveConversation](
	[LeaveConversationId] [bigint] IDENTITY(1,1) NOT NULL,
	[LeaveApplicationId] [bigint] NOT NULL,
	[CommentsBy] [int] NOT NULL,
	[Comments] [nvarchar](1000) NULL,
	[OrderBy] [int] NOT NULL,
	[Emp_Id] [bigint] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_LeaveConversation] PRIMARY KEY CLUSTERED 
(
	[LeaveConversationId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeavePolicy]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeavePolicy](
	[Policy_Id] [int] IDENTITY(1,1) NOT NULL,
	[PolicyName] [nvarchar](50) NOT NULL,
	[Permission_MaxHrs_Month] [nvarchar](5) NULL,
	[Permission_MaxInstances_Month] [int] NULL,
	[Permission_MaxHrs_Instance] [nvarchar](5) NULL,
	[PermissionBeforeLeave] [bit] NULL,
	[PermissionAfterLeave] [bit] NULL,
	[OtHourWise] [bit] NULL,
	[OtDayWise] [bit] NULL,
	[OtMinHrs] [nvarchar](50) NULL,
	[IsDeleted] [bit] NULL,
	[Time_Stamp] [datetime] NULL,
	[Emp_Id] [int] NULL,
	[EmployeeCategory] [int] NULL,
	[EmployeeType] [int] NULL,
	[Gender] [varchar](10) NULL,
	[Religion] [int] NULL,
	[CompOffValidDays] [int] NULL,
	[FullDayOTMinHrs] [nvarchar](5) NULL,
	[companyID] [int] NULL,
	[Permission_MinHrs_Instance] [nvarchar](5) NULL,
 CONSTRAINT [PK_TA_Tbl_LeavePolicy] PRIMARY KEY CLUSTERED 
(
	[Policy_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeavePolicyDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeavePolicyDetails](
	[PolicyDetails_Id] [int] IDENTITY(1,1) NOT NULL,
	[Policy_Id] [int] NOT NULL,
	[LeaveType_Id] [int] NOT NULL,
	[MaxDays_applicable] [decimal](18, 1) NOT NULL,
	[MaxDays_avail] [decimal](18, 1) NULL,
	[MinDays_avail] [decimal](18, 1) NULL,
	[Spells] [int] NULL,
	[MaxDays_Acc] [decimal](18, 1) NULL,
	[LossOfPay] [bit] NOT NULL,
	[Max_LOP_Days] [decimal](18, 1) NOT NULL,
	[Count_BeforeWeeklyOff] [bit] NOT NULL,
	[Count_AfterWeeklyOff] [bit] NOT NULL,
	[Count_Intervening] [bit] NULL,
	[Borrow_FromNextYear] [bit] NOT NULL,
	[Carry_ToNextYear] [bit] NOT NULL,
	[Encashment] [bit] NULL,
	[Calc_Factor] [decimal](18, 1) NULL,
	[MinWorkDays] [decimal](18, 0) NULL,
	[WeekDays] [bit] NULL,
	[WeekOff] [bit] NULL,
	[Leave] [bit] NULL,
	[Holidays] [bit] NULL,
	[ApplicableAfterDays] [decimal](18, 1) NULL,
	[Emp_Id] [int] NOT NULL,
	[Time_stamp] [datetime] NULL,
	[MaxDays_Month] [decimal](18, 1) NULL,
	[AvailServicePeriod] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_LeavePolicyDetails] PRIMARY KEY CLUSTERED 
(
	[PolicyDetails_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeavePrivateNotes]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeavePrivateNotes](
	[LeavePrivateNotesId] [bigint] IDENTITY(1,1) NOT NULL,
	[LeaveApplicationId] [int] NOT NULL,
	[NotesBy] [int] NOT NULL,
	[Notes] [nvarchar](1000) NULL,
	[OrderBy] [int] NOT NULL,
	[ToMailIds] [nvarchar](4000) NULL,
	[CcMailIds] [nvarchar](4000) NULL,
	[Emp_Id] [bigint] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
 CONSTRAINT [PK_TA_TA_Tbl_LeavePrivateNotes] PRIMARY KEY CLUSTERED 
(
	[LeavePrivateNotesId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeaveSettings]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeaveSettings](
	[MailSettingId] [bigint] IDENTITY(1,1) NOT NULL,
	[CompanyId] [int] NULL,
	[Approval] [bit] NULL,
	[FirstLevelIntimation] [bit] NULL,
	[SecondLevelIntimation] [bit] NULL,
	[ApprovalCC] [varchar](8000) NULL,
	[ToMail_DailyReport] [varchar](8000) NULL,
	[CCMail_DailyReport] [varchar](8000) NULL,
 CONSTRAINT [PK_TA_Tbl_LeaveSettings] PRIMARY KEY CLUSTERED 
(
	[MailSettingId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LeaveType]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LeaveType](
	[LeaveType_Id] [int] IDENTITY(1,1) NOT NULL,
	[LeaveType] [nvarchar](10) NOT NULL,
	[LeaveDescription] [nvarchar](250) NOT NULL,
	[IsDeleted] [bit] NOT NULL,
	[Emp_ID] [int] NULL,
	[Time_Stamp] [datetime] NULL,
	[CountFactor] [bit] NOT NULL,
	[Employeecategory] [int] NULL,
	[EmployeeType] [int] NULL,
	[Gender] [varchar](10) NULL,
	[Religion] [int] NULL,
	[isWFH] [int] NULL,
	[IsProrataRequired] [bit] NULL,
	[IsDocProofRequired] [bit] NULL,
 CONSTRAINT [PK_TA_Tbl_LeaveType] PRIMARY KEY CLUSTERED 
(
	[LeaveType_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Level]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Level](
	[levelID] [int] IDENTITY(1,1) NOT NULL,
	[levelName] [nvarchar](255) NULL,
	[parentLevelID] [int] NULL,
	[isDeleted] [bit] NULL,
	[timeStamp] [datetime] NULL,
	[emp_Id] [nvarchar](50) NULL,
 CONSTRAINT [PK_TA_Tbl_Level] PRIMARY KEY CLUSTERED 
(
	[levelID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LevelChanges]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LevelChanges](
	[LevelChangeId] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [int] NULL,
	[Emp_LevelID] [int] NULL,
	[Transfer_FromDate] [datetime] NULL,
	[Transfer_ToDate] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_levelDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_levelDetails](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[levelId] [int] NULL,
	[parentId] [int] NULL,
	[name] [nvarchar](255) NULL,
	[description] [nvarchar](255) NULL,
	[city] [nvarchar](100) NULL,
	[state] [nvarchar](100) NULL,
	[country] [nvarchar](100) NULL,
	[zip] [nvarchar](50) NULL,
	[phone1] [nvarchar](50) NULL,
	[phone2] [nvarchar](50) NULL,
	[fax1] [nvarchar](50) NULL,
	[fax2] [nvarchar](50) NULL,
	[email] [nvarchar](255) NULL,
	[webAddress] [nvarchar](255) NULL,
	[logo] [image] NULL,
	[isDeleted] [bit] NULL,
	[timeStamp] [datetime] NULL,
	[Emp_id] [nvarchar](50) NULL,
	[ToMailIds] [varchar](4000) NULL,
	[CCMailIds] [varchar](4000) NULL,
	[TimezoneId] [int] NULL,
 CONSTRAINT [PK_Ta_Tbl_levelDetails] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LevelRights]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LevelRights](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[GroupId] [int] NULL,
	[LevelId] [nvarchar](50) NULL,
	[emp_id] [nvarchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LIC_Details]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LIC_Details](
	[CustomerId] [nvarchar](200) NULL,
	[PackageId] [nvarchar](200) NOT NULL,
	[PackageVersion] [nvarchar](200) NOT NULL,
	[NoOfConcurrentUser] [nvarchar](200) NOT NULL,
	[MACAddress] [nvarchar](200) NOT NULL,
	[LicenseGenerationDate] [nvarchar](200) NOT NULL,
	[ExpiryDate] [nvarchar](200) NOT NULL,
	[Module] [nvarchar](200) NOT NULL,
	[Module1] [nvarchar](200) NOT NULL,
	[Module2] [nvarchar](200) NOT NULL,
	[Module3] [nvarchar](200) NOT NULL,
	[Module4] [nvarchar](200) NOT NULL,
	[Module5] [nvarchar](200) NOT NULL,
	[NoOfEmployee] [nvarchar](200) NULL,
	[NoOfTerminal] [nvarchar](200) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LicenseRequestDetail]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LicenseRequestDetail](
	[RequestID] [bigint] NOT NULL,
	[Status] [bit] NULL,
	[MacAddress] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NULL,
	[ModifiedDate] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LoanEntryDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LoanEntryDetails](
	[Loan_ID] [int] IDENTITY(1,1) NOT NULL,
	[Employee_Id] [int] NULL,
	[Loan_Amount] [bigint] NULL,
	[Total_DeductionMonth] [numeric](18, 0) NULL,
	[Deduction_StartMonth] [nvarchar](20) NULL,
	[Monthly_DeductAmount] [bigint] NULL,
	[Loan_BalanceAmount] [bigint] NULL,
	[Loan_Description] [nvarchar](50) NULL,
	[isdeleted] [bit] NULL,
	[Loan_Entry_Date] [datetime] NULL,
	[ModifyDate] [datetime] NULL,
	[ISLoanClose] [bit] NULL,
PRIMARY KEY CLUSTERED 
(
	[Loan_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LoanTransaction]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LoanTransaction](
	[LoanTransact_Id] [int] IDENTITY(1,1) NOT NULL,
	[LoanID] [int] NULL,
	[LoanAmount] [bigint] NULL,
	[TransactionDate] [datetime] NULL,
	[CreditedAmount] [bigint] NULL,
	[Balance_Amount] [bigint] NULL,
	[Remaining_DueMonth] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[LoanTransact_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_LockLogin]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_LockLogin](
	[UserName] [nvarchar](1000) NULL,
	[LockedTime] [datetime] NULL,
	[IsActive] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_LogDownloaded]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_LogDownloaded](
	[LoggedId] [int] IDENTITY(1,1) NOT NULL,
	[LoggedEmployeeId] [int] NOT NULL,
	[LoggedDate] [datetime] NOT NULL,
 CONSTRAINT [PK__ta_tbl_L__0605AD131E9FCF4A] PRIMARY KEY CLUSTERED 
(
	[LoggedId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Login]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Login](
	[Username] [nvarchar](2000) NOT NULL,
	[LastLoginTime] [varchar](20) NULL,
	[LastLogoutTime] [varchar](20) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Lookup]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Lookup](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Type] [int] NULL,
	[Title] [nvarchar](50) NULL,
	[Parent] [int] NULL,
	[Remarks] [nvarchar](50) NULL,
	[EmpID] [int] NULL,
	[Time_stamp] [datetime] NULL,
	[Isdeleted] [bit] NULL,
	[Emp_ID] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_Lookup] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_MailConfiguration]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_MailConfiguration](
	[FromEmailId] [varchar](300) NULL,
	[SMTPClientHost] [varchar](100) NULL,
	[SMTPPort] [varchar](50) NULL,
	[SSLEnable] [bit] NULL,
	[MailAuthentication] [bit] NULL,
	[MailAuthenticateUser] [nvarchar](30) NULL,
	[MailAuthenticatePassword] [nvarchar](30) NULL,
	[isRequired] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_MailIdsForTriggeringEmail]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_MailIdsForTriggeringEmail](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleId] [bigint] NOT NULL,
	[MailType] [varchar](5) NOT NULL,
	[EmailID] [varchar](250) NOT NULL,
 CONSTRAINT [PK_TA_tbl_MailIdsForTriggeringEmail] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ManualTimeEntry]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ManualTimeEntry](
	[ManualTimeEntry_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ManualTimeEntry_Employee_Id] [nvarchar](20) NULL,
	[ManualTimeEntry_Date] [datetime] NULL,
	[ManualTimeEntry_InDate] [datetime] NULL,
	[ManualTimeEntry_InTime] [nvarchar](50) NULL,
	[ManualTimeEntry_InPunchType] [nvarchar](25) NULL,
	[ManualTimeEntry_OutDate] [datetime] NULL,
	[ManualTimeEntry_OutTime] [nvarchar](50) NULL,
	[ManualTimeEntry_OutPunchType] [nvarchar](25) NULL,
	[ManualTimeEntry_InReaderID] [int] NULL,
	[ManualTimeEntry_OutReaderID] [int] NULL,
	[ManualTimeEntry_Reason] [nvarchar](255) NULL,
	[ManualTimeEntry_Remarks] [nvarchar](255) NULL,
	[Route_Id] [int] NULL,
	[Clk_Process] [nvarchar](1) NULL,
	[ManualTimeEntry_Status] [nvarchar](25) NULL,
	[Isdeleted] [bit] NULL,
	[TimeStamp] [datetime] NULL,
	[Emp_Id] [int] NULL,
	[YearSettings_Id] [int] NULL,
	[IsDiscrepancyEntry] [bit] NULL,
	[IsOnDuty] [bit] NULL,
	[Shift_Id] [int] NULL,
	[Shift_Date] [datetime] NULL,
	[IsImported] [int] NULL,
	[OnDuty_ID] [bigint] NULL,
	[modify_By] [int] NULL,
	[modify_date] [datetime] NULL,
	[Latitude_value] [varchar](20) NULL,
	[Longitude_value] [varchar](20) NULL,
	[Clock_Address] [varchar](500) NULL,
 CONSTRAINT [PK_TA_Tbl_ManualTimeEntry] PRIMARY KEY CLUSTERED 
(
	[ManualTimeEntry_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_ManualTimeEntrybck]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_ManualTimeEntrybck](
	[ManualTimeEntry_Id] [int] IDENTITY(1,1) NOT NULL,
	[ManualTimeEntry_Employee_Id] [nvarchar](20) NULL,
	[ManualTimeEntry_Date] [datetime] NULL,
	[ManualTimeEntry_InDate] [datetime] NULL,
	[ManualTimeEntry_InTime] [nvarchar](50) NULL,
	[ManualTimeEntry_InPunchType] [nvarchar](25) NULL,
	[ManualTimeEntry_OutDate] [datetime] NULL,
	[ManualTimeEntry_OutTime] [nvarchar](50) NULL,
	[ManualTimeEntry_OutPunchType] [nvarchar](25) NULL,
	[ManualTimeEntry_InReaderID] [int] NULL,
	[ManualTimeEntry_OutReaderID] [int] NULL,
	[ManualTimeEntry_Reason] [nvarchar](255) NULL,
	[ManualTimeEntry_Remarks] [nvarchar](255) NULL,
	[Route_Id] [int] NULL,
	[Clk_Process] [char](1) NULL,
	[ManualTimeEntry_Status] [nvarchar](25) NULL,
	[Isdeleted] [bit] NULL,
	[TimeStamp] [datetime] NULL,
	[Emp_Id] [int] NULL,
	[YearSettings_Id] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_MatchedPunches]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_MatchedPunches](
	[Clk_Id] [int] IDENTITY(1,1) NOT NULL,
	[Clk_EmpId] [nvarchar](20) NULL,
	[Clk_InDeviceId] [nvarchar](20) NULL,
	[Clk_InDate] [datetime] NULL,
	[Clk_InTime] [datetime] NULL,
	[Clk_InPunchType] [nvarchar](25) NULL,
	[Clk_OutDeviceId] [nvarchar](20) NULL,
	[Clk_OutDate] [datetime] NULL,
	[Clk_OutTime] [datetime] NULL,
	[Clk_OutPunchType] [nvarchar](25) NULL,
	[Clk_Date] [datetime] NULL,
	[PunchDiffInHours]  AS (isnull([clk_OutTime]-[clk_Intime],'')),
	[PunchDiffInMin]  AS (isnull(datepart(hour,[clk_OutTime]-[clk_Intime])*(60)+datepart(minute,[clk_OutTime]-[clk_Intime]),(0)))
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_mobileClockInAndOut]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_mobileClockInAndOut](
	[Autoid] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeCodeID] [varchar](20) NULL,
	[ClockDate] [datetime] NULL,
	[Clock_Time] [varchar](15) NULL,
	[PunchType] [varchar](20) NULL,
	[InsertedOn] [datetime] NULL,
	[Latitude_value] [varchar](20) NULL,
	[Longitude_value] [varchar](20) NULL,
	[Clock_Address] [varchar](500) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_MonthClosure]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_MonthClosure](
	[MonthClosure_Id] [int] IDENTITY(1,1) NOT NULL,
	[OrgLevel_Id] [int] NULL,
	[MonthClosure_Month] [nvarchar](15) NULL,
	[MonthClosure_Year] [int] NULL,
	[MonthClosure_StartDate] [datetime] NULL,
	[MonthClosure_EndDate] [datetime] NULL,
	[MonthClosure_ClosingDate] [datetime] NULL,
	[Emp_Id] [int] NULL,
	[Process] [char](1) NULL,
	[TimeStamp] [datetime] NULL,
	[IsDeleted] [bit] NULL,
	[YearSettings_Id] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_MonthClosure] PRIMARY KEY CLUSTERED 
(
	[MonthClosure_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_MultiLingual]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_MultiLingual](
	[Language_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Language_Name] [nvarchar](50) NULL,
	[Resource_File_Name] [nvarchar](50) NULL,
	[IsActive] [bit] NULL,
 CONSTRAINT [PK_TA_Tbl_MultiLingual] PRIMARY KEY CLUSTERED 
(
	[Language_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_MyProfileDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_MyProfileDetails](
	[myprofileID] [bigint] IDENTITY(1,1) NOT NULL,
	[Employee_Id] [int] NULL,
	[SwipeCardNo] [nvarchar](50) NULL,
	[Employee_FirstName] [nvarchar](50) NULL,
	[Employee_MiddleName] [nvarchar](50) NULL,
	[Employee_LastName] [nvarchar](50) NULL,
	[Father_name] [nvarchar](50) NULL,
	[Mother_name] [nvarchar](50) NULL,
	[DateofBirth] [datetime] NULL,
	[DateofBirth_Record] [datetime] NULL,
	[Blood_Group] [nvarchar](10) NULL,
	[EmailId] [nvarchar](100) NULL,
	[Personal_mailid] [nvarchar](100) NULL,
	[Contact_Address] [nvarchar](255) NULL,
	[Permanent_Address] [nvarchar](255) NULL,
	[Phone_Number] [nvarchar](50) NULL,
	[Mobile_Number] [nvarchar](50) NULL,
	[Marital_status] [nvarchar](10) NULL,
	[Nationality] [nvarchar](50) NULL,
	[Religion] [int] NULL,
	[Country] [int] NULL,
	[State] [int] NULL,
	[City] [int] NULL,
	[District] [nvarchar](50) NULL,
	[Status] [varchar](30) NULL,
	[ModifiedDate] [datetime] NULL,
	[IsPath] [nvarchar](200) NULL,
	[Remarks] [varchar](100) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_NewsEvents]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_NewsEvents](
	[NewsEvent_Id] [int] IDENTITY(1,1) NOT NULL,
	[NewsEventFromDate] [datetime] NULL,
	[NewsEventToDate] [datetime] NULL,
	[NewsEventTitle] [nvarchar](100) NULL,
	[NewsEventDescription] [nvarchar](500) NULL,
	[NewsEventActive] [bit] NULL,
	[NewsEventImage] [nvarchar](255) NULL,
	[LeftNewsEvent] [bit] NULL,
	[RightNewsEvent] [bit] NULL,
	[LeftBanner] [bit] NULL,
	[RightBanner] [bit] NULL,
	[IsDeleted] [bit] NULL,
	[TimeStamp] [datetime] NULL,
	[Emp_Id] [decimal](18, 0) NULL,
 CONSTRAINT [PK_TA_Tbl_NewsEvents] PRIMARY KEY CLUSTERED 
(
	[NewsEvent_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_NoOfDaysDeduction_Armis]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_NoOfDaysDeduction_Armis](
	[ArmisID] [int] IDENTITY(1,1) NOT NULL,
	[StartTime1] [int] NULL,
	[EndTime1] [int] NULL,
	[Day1] [decimal](18, 2) NULL,
	[StartTime2] [int] NULL,
	[EndTime2] [int] NULL,
	[Day2] [decimal](18, 2) NULL,
	[StartTime3] [int] NULL,
	[EndTime3] [int] NULL,
	[Day3] [decimal](18, 2) NULL,
	[StartTime4] [int] NULL,
	[EndTime4] [int] NULL,
	[Day4] [decimal](18, 2) NULL,
	[StartTime5] [int] NULL,
	[EndTime5] [int] NULL,
	[Day5] [decimal](18, 2) NULL,
	[StartTime6] [int] NULL,
	[EndTime6] [int] NULL,
	[Day6] [decimal](18, 2) NULL,
	[StartTime7] [int] NULL,
	[EndTime7] [int] NULL,
	[Day7] [decimal](18, 2) NULL,
	[StartTime8] [int] NULL,
	[EndTime8] [int] NULL,
	[Day8] [decimal](18, 2) NULL,
	[StartTime9] [int] NULL,
	[EndTime9] [int] NULL,
	[Day9] [decimal](18, 2) NULL,
	[StartTime10] [int] NULL,
	[EndTime10] [int] NULL,
	[Day10] [decimal](18, 2) NULL,
	[Datetime] [datetime] NULL,
 CONSTRAINT [PK_ta_tbl_NoOfDaysDeduction_Armis] PRIMARY KEY CLUSTERED 
(
	[ArmisID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_NoOfDaysDeduction_Lateentry]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_NoOfDaysDeduction_Lateentry](
	[LateEntryID] [int] IDENTITY(1,1) NOT NULL,
	[StartTime1] [int] NULL,
	[EndTime1] [int] NULL,
	[Day1] [decimal](18, 2) NULL,
	[StartTime2] [int] NULL,
	[EndTime2] [int] NULL,
	[Day2] [decimal](18, 2) NULL,
	[StartTime3] [int] NULL,
	[EndTime3] [int] NULL,
	[Day3] [decimal](18, 2) NULL,
	[StartTime4] [int] NULL,
	[EndTime4] [int] NULL,
	[Day4] [decimal](18, 2) NULL,
	[StartTime5] [int] NULL,
	[EndTime5] [int] NULL,
	[Day5] [decimal](18, 2) NULL,
	[StartTime6] [int] NULL,
	[EndTime6] [int] NULL,
	[Day6] [decimal](18, 2) NULL,
	[StartTime7] [int] NULL,
	[EndTime7] [int] NULL,
	[Day7] [decimal](18, 2) NULL,
	[StartTime8] [int] NULL,
	[EndTime8] [int] NULL,
	[Day8] [decimal](18, 2) NULL,
	[StartTime9] [int] NULL,
	[EndTime9] [int] NULL,
	[Day9] [decimal](18, 2) NULL,
	[StartTime10] [int] NULL,
	[EndTime10] [int] NULL,
	[Day10] [decimal](18, 2) NULL,
	[Datetime] [datetime] NULL,
 CONSTRAINT [PK_ta_tbl_NoOfDaysDeduction_Lateentry] PRIMARY KEY CLUSTERED 
(
	[LateEntryID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_NoOfDaysDeduction_WorkHrs]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_NoOfDaysDeduction_WorkHrs](
	[WorkhrsID] [int] IDENTITY(1,1) NOT NULL,
	[StartTime1] [int] NULL,
	[EndTime1] [int] NULL,
	[Day1] [decimal](18, 2) NULL,
	[StartTime2] [int] NULL,
	[EndTime2] [int] NULL,
	[Day2] [decimal](18, 2) NULL,
	[StartTime3] [int] NULL,
	[EndTime3] [int] NULL,
	[Day3] [decimal](18, 2) NULL,
	[StartTime4] [int] NULL,
	[EndTime4] [int] NULL,
	[Day4] [decimal](18, 2) NULL,
	[StartTime5] [int] NULL,
	[EndTime5] [int] NULL,
	[Day5] [decimal](18, 2) NULL,
	[StartTime6] [int] NULL,
	[EndTime6] [int] NULL,
	[Day6] [decimal](18, 2) NULL,
	[StartTime7] [int] NULL,
	[EndTime7] [int] NULL,
	[Day7] [decimal](18, 2) NULL,
	[StartTime8] [int] NULL,
	[EndTime8] [int] NULL,
	[Day8] [decimal](18, 2) NULL,
	[StartTime9] [int] NULL,
	[EndTime9] [int] NULL,
	[Day9] [decimal](18, 2) NULL,
	[StartTime10] [int] NULL,
	[EndTime10] [int] NULL,
	[Day10] [decimal](18, 2) NULL,
	[Datetime] [datetime] NULL,
 CONSTRAINT [PK_ta_tbl_NoOfDaysDeduction_WorkHrs] PRIMARY KEY CLUSTERED 
(
	[WorkhrsID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_NotProcessedDataDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_NotProcessedDataDetails](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Process_Rec_ID] [int] NULL,
	[SwipeCardNumber] [varchar](50) NULL,
	[ReaderId] [int] NULL,
	[Reason] [varchar](200) NULL,
	[RaisedFrom] [char](1) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_OnDutyConversation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_OnDutyConversation](
	[OnDutyConversationId] [bigint] IDENTITY(1,1) NOT NULL,
	[OnDutyApplicationId] [bigint] NOT NULL,
	[Comments] [nvarchar](1000) NULL,
	[OrderBy] [int] NOT NULL,
	[Emp_Id] [bigint] NOT NULL,
	[TimeStamp] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_OndutyEntry]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_OndutyEntry](
	[Onduty_ID] [bigint] IDENTITY(1,1) NOT NULL,
	[Onduty_EmployeeID] [nvarchar](20) NULL,
	[Onduty_EntryDate] [datetime] NULL,
	[Onduty_Type] [int] NULL,
	[IncludeWeekOff] [int] NULL,
	[Onduty_FromDate] [datetime] NULL,
	[Onduty_FromTime] [nvarchar](50) NULL,
	[Onduty_ToDate] [datetime] NULL,
	[Onduty_ToTime] [nvarchar](50) NULL,
	[Onduty_Reason] [nvarchar](255) NULL,
	[Onduty_Status] [nvarchar](25) NULL,
	[Isdeleted] [bit] NULL,
	[TimeStamp] [datetime] NULL,
	[Emp_Id] [int] NULL,
	[From_Session] [nvarchar](20) NULL,
	[To_Session] [nvarchar](20) NULL,
	[YearSettings_Id] [int] NULL,
	[isImported] [bit] NULL,
PRIMARY KEY CLUSTERED 
(
	[Onduty_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_OracleDBConfiguration]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_OracleDBConfiguration](
	[HostName] [varchar](100) NULL,
	[Port] [varchar](5) NULL,
	[ServiceName] [varchar](100) NULL,
	[UserName] [varchar](100) NULL,
	[Pwd] [varchar](100) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_oracleSync]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_oracleSync](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[SyncDate] [date] NULL,
	[SyncTime] [time](7) NULL,
	[flag] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_OTRoundoffSettings]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_OTRoundoffSettings](
	[OTRoundoffId] [int] IDENTITY(1,1) NOT NULL,
	[ShiftSettingId] [int] NOT NULL,
	[StartTime] [nvarchar](5) NOT NULL,
	[EndTime] [nvarchar](5) NOT NULL,
	[StartMins] [float] NOT NULL,
	[EndMins] [float] NOT NULL,
	[RoundedAs] [nvarchar](5) NOT NULL,
 CONSTRAINT [PK_TA_Tbl_OTRoundoffSettings] PRIMARY KEY CLUSTERED 
(
	[OTRoundoffId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_OtType]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_OtType](
	[OtTypeID] [int] IDENTITY(1,1) NOT NULL,
	[CompanyID] [int] NULL,
	[OtType] [varchar](50) NULL,
	[OtValue] [nchar](10) NULL,
	[EmpID] [int] NULL,
	[IsDeleted] [bit] NULL,
	[TimeStamp] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_OverTimeStatus]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_OverTimeStatus](
	[ExtraTime_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Process_RecID] [bigint] NULL,
	[Employee_Id] [int] NULL,
	[Date] [datetime] NULL,
	[HrsExtra] [varchar](5) NULL,
	[ExtraMins] [int] NULL,
	[OverTimeStatus] [varchar](50) NULL,
	[CompOffEligible] [bit] NULL,
	[OTEligible] [bit] NULL,
	[DateToExpired] [datetime] NULL,
	[NoOfDays] [numeric](18, 1) NULL,
	[RemainingDays] [numeric](18, 1) NULL,
	[CompOffSatus] [varchar](30) NULL,
	[LeaveApplicationId] [varchar](150) NULL,
	[ActHrsExtra] [varchar](6) NULL,
	[ActExtraMins] [int] NULL,
	[isdelete] [bit] NULL,
	[isRequest] [bit] NULL,
	[DaysWorked] [nvarchar](100) NULL,
	[InTime] [nvarchar](20) NULL,
	[OutTime] [nvarchar](20) NULL,
	[Reason] [nvarchar](250) NULL,
	[ApplicationDate] [datetime] NULL,
	[Modified_By] [int] NULL,
	[Modified_On] [datetime] NULL,
	[Emp_Id] [int] NULL,
	[TimeStamp] [datetime] NULL,
	[Remarks] [nvarchar](250) NULL,
	[Forward_By] [int] NULL,
	[Forward_Date] [datetime] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Page]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Page](
	[pageId] [float] NOT NULL,
	[displayName] [nvarchar](100) NULL,
	[path] [nvarchar](200) NULL,
	[parentId] [int] NULL,
	[orderBy] [float] NULL,
	[ParentIdForSubMenu] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PageError]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PageError](
	[ErrorId] [bigint] IDENTITY(1,1) NOT NULL,
	[ErrorMsg] [varchar](max) NULL,
	[ErrorDetails] [varchar](max) NULL,
	[PageName] [varchar](150) NULL,
	[ProductName] [varchar](100) NULL,
	[ProductVersion] [varchar](25) NULL,
	[ClientName] [varchar](260) NULL,
	[TrackingPlatForm] [varchar](150) NULL,
	[ErrorTime] [datetime] NULL,
	[BugStatus] [varchar](15) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_PageMandatoryFlag]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_PageMandatoryFlag](
	[MandatoryChecking] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PageMandatoryFlagStandard]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PageMandatoryFlagStandard](
	[MandatoryChecking] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_PageRedirect]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_PageRedirect](
	[ID] [float] NULL,
	[PageId] [int] NULL,
	[TableName] [varchar](100) NULL,
	[Page] [varchar](500) NULL,
	[PageFullPath] [varchar](500) NULL,
	[Module] [varchar](150) NULL,
	[Rows] [int] NULL,
	[Active] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_PageRedirectStandard]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_PageRedirectStandard](
	[ID] [float] NULL,
	[PageId] [int] NULL,
	[TableName] [varchar](100) NULL,
	[Page] [varchar](500) NULL,
	[PageFullPath] [varchar](500) NULL,
	[Module] [varchar](150) NULL,
	[Rows] [int] NULL,
	[Active] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ParentIDs]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ParentIDs](
	[LevelID] [int] NOT NULL,
	[LevelName] [nvarchar](50) NULL,
	[pid] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PayrollConfigSetting]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PayrollConfigSetting](
	[payroll_SettingId] [int] IDENTITY(1,1) NOT NULL,
	[CompanyId] [int] NULL,
	[D_Allowance] [float] NULL,
	[HRA_Metro] [float] NULL,
	[HRA_NonMetro] [float] NULL,
	[MedicalAmount] [bigint] NULL,
	[MedicalPercent] [float] NULL,
	[CEAAmount] [bigint] NULL,
	[CEAPercentage] [float] NULL,
	[isMedicalflag] [bit] NULL,
	[isCEAflag] [bit] NULL,
	[LessTaxDeduction] [bigint] NULL,
	[isDeleted] [bit] NULL,
	[createdBy] [int] NULL,
	[createDate] [date] NULL,
	[modifyDate] [date] NULL,
 CONSTRAINT [PK__TA_Tbl_P__6737CBEA4A805D72] PRIMARY KEY CLUSTERED 
(
	[payroll_SettingId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PayrollProcessDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PayrollProcessDetails](
	[PayrollProcess_Id] [int] IDENTITY(1,1) NOT NULL,
	[MonthClosure_Id] [int] NULL,
	[Employee_Id] [nvarchar](20) NULL,
	[HrsWork] [nvarchar](25) NULL,
	[HrsOT] [nvarchar](25) NULL,
	[NormOT] [nvarchar](25) NULL,
	[OffOT] [nvarchar](25) NULL,
	[HolOT] [nvarchar](25) NULL,
	[EarlyOut] [nvarchar](25) NULL,
	[LateIn] [nvarchar](25) NULL,
	[WorkHrs] [nvarchar](25) NULL,
	[HrsLess] [nvarchar](25) NULL,
	[HrsExtra] [nvarchar](25) NULL,
	[LeaveDays] [numeric](18, 1) NULL,
	[AbsentDays] [numeric](18, 1) NULL,
	[PresentDays] [numeric](18, 1) NULL,
	[Holidays] [numeric](18, 1) NULL,
	[LOPDays] [numeric](18, 1) NULL,
	[Emp_Id] [int] NULL,
	[TimeStamp] [datetime] NULL,
	[TotalPermissionHours] [varchar](100) NULL,
	[WeekOffDays] [decimal](18, 1) NULL,
	[SPEC_NormOT1] [nvarchar](10) NULL,
	[SPEC_NormOT2] [nvarchar](10) NULL,
	[SPEC_OffOT1] [nvarchar](10) NULL,
	[SPEC_OffOT2] [nvarchar](10) NULL,
	[SPEC_HOLOT1] [nvarchar](10) NULL,
	[SPEC_HOLOT2] [nvarchar](10) NULL,
 CONSTRAINT [PK_TA_Tbl_PayrollProcessDetails] PRIMARY KEY CLUSTERED 
(
	[PayrollProcess_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PayrollProcessLeaveDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PayrollProcessLeaveDetails](
	[PayrollProcessLeave_id] [int] IDENTITY(1,1) NOT NULL,
	[MonthClosure_Id] [int] NOT NULL,
	[Employee_Id] [nvarchar](20) NULL,
	[LeaveType_id] [int] NULL,
	[Leave_Count] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_PayrollProcessLeaveDetails] PRIMARY KEY CLUSTERED 
(
	[PayrollProcessLeave_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PaySlip]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PaySlip](
	[EmployeeName] [nvarchar](30) NULL,
	[Employee_Code_Id] [nvarchar](20) NULL,
	[Designation] [nvarchar](30) NULL,
	[Gender] [char](10) NULL,
	[PayslipMonth] [nvarchar](20) NULL,
	[Calender_Days] [int] NULL,
	[Present_Days] [int] NULL,
	[Absent_Days] [int] NULL,
	[Leave_Days] [int] NULL,
	[Weekly_OFF_Days] [int] NULL,
	[Holiday_Days] [int] NULL,
	[LossofPay_Days] [int] NULL,
	[TotalOTHrs] [nvarchar](10) NULL,
	[CostToCompany] [bigint] NULL,
	[BasicSalary] [bigint] NULL,
	[EarnedAmount] [bigint] NULL,
	[Dearness_Allowance] [bigint] NULL,
	[HouseRent_Allowance] [bigint] NULL,
	[Conveyance_Allowance] [bigint] NULL,
	[Medical_Allowance] [bigint] NULL,
	[Children_Education_Allowance] [bigint] NULL,
	[Tds_PolicyId] [int] NULL,
	[ProvidentFund] [bigint] NULL,
	[ESI] [bigint] NULL,
	[LoanCount] [int] NULL,
	[LoanDueAmount] [bigint] NULL,
	[TDSAmount] [bigint] NULL,
	[Professional_Tax] [bigint] NULL,
	[TotalAdditions] [bigint] NULL,
	[TotalDeduction] [bigint] NULL,
	[NetSalary] [bigint] NULL,
	[generateDate] [nvarchar](20) NULL,
	[OA] [bigint] NULL,
	[PayslipYear] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_PenaltyPercentage]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_PenaltyPercentage](
	[CompanyId] [int] NULL,
	[categoryID] [int] NULL,
	[StartTime1] [varchar](5) NULL,
	[EndTime1] [varchar](5) NULL,
	[StartTime2] [varchar](5) NULL,
	[EndTime2] [varchar](5) NULL,
	[StartTime3] [varchar](5) NULL,
	[EndTime3] [varchar](5) NULL,
	[Day1] [decimal](18, 2) NULL,
	[Day2] [decimal](18, 2) NULL,
	[Day3] [decimal](18, 2) NULL,
	[Day4] [decimal](18, 2) NULL,
	[Day5] [decimal](18, 2) NULL,
	[Day6] [decimal](18, 2) NULL,
	[Day7] [decimal](18, 2) NULL,
	[Day8] [decimal](18, 2) NULL,
	[Day9] [decimal](18, 2) NULL,
	[Day10] [decimal](18, 2) NULL,
	[Day11] [decimal](18, 2) NULL,
	[Day12] [decimal](18, 2) NULL,
	[StartTime1Mins]  AS (substring([StartTime1],(0),charindex(':',[StartTime1]))*(60)+substring([StartTime1],charindex(':',[StartTime1])+(1),len([StartTime1]))),
	[EndTime1Mins]  AS (substring([EndTime1],(0),charindex(':',[EndTime1]))*(60)+substring([EndTime1],charindex(':',[EndTime1])+(1),len([EndTime1]))),
	[StartTime2Mins]  AS (substring([StartTime2],(0),charindex(':',[StartTime2]))*(60)+substring([StartTime2],charindex(':',[StartTime2])+(1),len([StartTime2]))),
	[EndTime2Mins]  AS (substring([EndTime2],(0),charindex(':',[EndTime2]))*(60)+substring([EndTime2],charindex(':',[EndTime2])+(1),len([EndTime2]))),
	[StartTime3Mins]  AS (substring([StartTime3],(0),charindex(':',[StartTime3]))*(60)+substring([StartTime3],charindex(':',[StartTime3])+(1),len([StartTime3]))),
	[EndTime3Mins]  AS (substring([EndTime3],(0),charindex(':',[EndTime3]))*(60)+substring([EndTime3],charindex(':',[EndTime3])+(1),len([EndTime3])))
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PermanentShiftAllocation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PermanentShiftAllocation](
	[EmployeeId] [int] NOT NULL,
	[Year] [int] NOT NULL,
	[Month] [int] NOT NULL,
	[Day1Shift] [int] NOT NULL,
	[Day2Shift] [int] NOT NULL,
	[Day3Shift] [int] NOT NULL,
	[Day4Shift] [int] NOT NULL,
	[Day5Shift] [int] NOT NULL,
	[Day6Shift] [int] NOT NULL,
	[Day7Shift] [int] NOT NULL,
	[Day8Shift] [int] NOT NULL,
	[Day9Shift] [int] NOT NULL,
	[Day10Shift] [int] NOT NULL,
	[Day11Shift] [int] NOT NULL,
	[Day12Shift] [int] NOT NULL,
	[Day13Shift] [int] NOT NULL,
	[Day14Shift] [int] NOT NULL,
	[Day15Shift] [int] NOT NULL,
	[Day16Shift] [int] NOT NULL,
	[Day17Shift] [int] NOT NULL,
	[Day18Shift] [int] NOT NULL,
	[Day19Shift] [int] NOT NULL,
	[Day20Shift] [int] NOT NULL,
	[Day21Shift] [int] NOT NULL,
	[Day22Shift] [int] NOT NULL,
	[Day23Shift] [int] NOT NULL,
	[Day24Shift] [int] NOT NULL,
	[Day25Shift] [int] NOT NULL,
	[Day26Shift] [int] NOT NULL,
	[Day27Shift] [int] NOT NULL,
	[Day28Shift] [int] NOT NULL,
	[Day29Shift] [int] NOT NULL,
	[Day30Shift] [int] NOT NULL,
	[Day31Shift] [int] NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
	[DateShift] [datetime] NOT NULL,
	[ShiftAllocationID] [bigint] IDENTITY(1,1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PermanentShiftAllocationbck]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PermanentShiftAllocationbck](
	[EmployeeId] [int] NOT NULL,
	[Year] [int] NOT NULL,
	[Month] [int] NOT NULL,
	[Day1Shift] [int] NOT NULL,
	[Day2Shift] [int] NOT NULL,
	[Day3Shift] [int] NOT NULL,
	[Day4Shift] [int] NOT NULL,
	[Day5Shift] [int] NOT NULL,
	[Day6Shift] [int] NOT NULL,
	[Day7Shift] [int] NOT NULL,
	[Day8Shift] [int] NOT NULL,
	[Day9Shift] [int] NOT NULL,
	[Day10Shift] [int] NOT NULL,
	[Day11Shift] [int] NOT NULL,
	[Day12Shift] [int] NOT NULL,
	[Day13Shift] [int] NOT NULL,
	[Day14Shift] [int] NOT NULL,
	[Day15Shift] [int] NOT NULL,
	[Day16Shift] [int] NOT NULL,
	[Day17Shift] [int] NOT NULL,
	[Day18Shift] [int] NOT NULL,
	[Day19Shift] [int] NOT NULL,
	[Day20Shift] [int] NOT NULL,
	[Day21Shift] [int] NOT NULL,
	[Day22Shift] [int] NOT NULL,
	[Day23Shift] [int] NOT NULL,
	[Day24Shift] [int] NOT NULL,
	[Day25Shift] [int] NOT NULL,
	[Day26Shift] [int] NOT NULL,
	[Day27Shift] [int] NOT NULL,
	[Day28Shift] [int] NOT NULL,
	[Day29Shift] [int] NOT NULL,
	[Day30Shift] [int] NOT NULL,
	[Day31Shift] [int] NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
	[DateShift] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PermanentShiftAllocationoldbeforeshift]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PermanentShiftAllocationoldbeforeshift](
	[EmployeeId] [int] NOT NULL,
	[Year] [int] NOT NULL,
	[Month] [int] NOT NULL,
	[Day1Shift] [int] NOT NULL,
	[Day2Shift] [int] NOT NULL,
	[Day3Shift] [int] NOT NULL,
	[Day4Shift] [int] NOT NULL,
	[Day5Shift] [int] NOT NULL,
	[Day6Shift] [int] NOT NULL,
	[Day7Shift] [int] NOT NULL,
	[Day8Shift] [int] NOT NULL,
	[Day9Shift] [int] NOT NULL,
	[Day10Shift] [int] NOT NULL,
	[Day11Shift] [int] NOT NULL,
	[Day12Shift] [int] NOT NULL,
	[Day13Shift] [int] NOT NULL,
	[Day14Shift] [int] NOT NULL,
	[Day15Shift] [int] NOT NULL,
	[Day16Shift] [int] NOT NULL,
	[Day17Shift] [int] NOT NULL,
	[Day18Shift] [int] NOT NULL,
	[Day19Shift] [int] NOT NULL,
	[Day20Shift] [int] NOT NULL,
	[Day21Shift] [int] NOT NULL,
	[Day22Shift] [int] NOT NULL,
	[Day23Shift] [int] NOT NULL,
	[Day24Shift] [int] NOT NULL,
	[Day25Shift] [int] NOT NULL,
	[Day26Shift] [int] NOT NULL,
	[Day27Shift] [int] NOT NULL,
	[Day28Shift] [int] NOT NULL,
	[Day29Shift] [int] NOT NULL,
	[Day30Shift] [int] NOT NULL,
	[Day31Shift] [int] NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
	[DateShift] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Permission]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Permission](
	[Permission_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Employee_Id] [int] NOT NULL,
	[Permission_AppliedDate] [datetime] NOT NULL,
	[Permission_Date] [datetime] NOT NULL,
	[Permission_Type] [nvarchar](50) NULL,
	[Permission_FromTime] [datetime] NOT NULL,
	[Permission_ToTime] [datetime] NOT NULL,
	[Permission_Reason] [nvarchar](1000) NULL,
	[Permission_Status] [nvarchar](50) NULL,
	[Emp_Id_Sanction] [int] NULL,
	[Remarks] [nvarchar](1000) NULL,
	[IsDeleted] [bit] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
	[Emp_Id] [int] NULL,
	[YearSettings_Id] [int] NULL,
	[UnPlanned] [int] NULL,
	[CCMail] [varchar](3000) NULL,
	[Permission_Hours] [varchar](5) NULL,
	[No_Of_Hours] [nvarchar](10) NULL,
 CONSTRAINT [PK_TA_Tbl_Permission] PRIMARY KEY CLUSTERED 
(
	[Permission_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PermissionConversation]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PermissionConversation](
	[PermissionConversationId] [bigint] IDENTITY(1,1) NOT NULL,
	[PermissionId] [bigint] NOT NULL,
	[CommentsBy] [int] NOT NULL,
	[Comments] [nvarchar](1000) NULL,
	[OrderBy] [int] NOT NULL,
	[Emp_Id] [bigint] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_PermissionConversation] PRIMARY KEY CLUSTERED 
(
	[PermissionConversationId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PF_ESIDetails]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PF_ESIDetails](
	[PFESI_Id] [int] IDENTITY(1,1) NOT NULL,
	[PFESI_PolicyName] [varchar](50) NULL,
	[CompanyId] [int] NULL,
	[EmployeeCategory] [int] NULL,
	[EmployeeType] [int] NULL,
	[Gender] [varchar](5) NULL,
	[PF_Employer] [float] NULL,
	[PF_Employee] [float] NULL,
	[ESI_Employer] [float] NULL,
	[ESI_Employee] [float] NULL,
	[Created_Date] [date] NULL,
	[Creadted_BY] [int] NULL,
	[Modifi_Date] [date] NULL,
	[isDeleted] [bit] NULL,
 CONSTRAINT [PK__TA_Tbl_P__F0B6010EBD3C56BD] PRIMARY KEY CLUSTERED 
(
	[PFESI_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_PolicyConfiguration]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_PolicyConfiguration](
	[Pol_Config_id] [int] IDENTITY(1,1) NOT NULL,
	[Daily_Rrd] [bit] NULL,
	[Daily_Hrs] [int] NULL,
	[Day_Rqrd] [bit] NULL,
	[Day_Value] [int] NULL,
	[Weekly_Rqrd] [bit] NULL,
	[Weekly_Hrs] [int] NULL,
	[Quarterly_Rqrd] [bit] NULL,
	[Quarterly_Hrs] [int] NULL,
	[Cont_Absent] [bit] NULL,
	[Cont_Value] [int] NULL,
	[ApproFolderPath] [varchar](max) NULL,
	[CreatedDate] [datetime] NULL,
	[ModifiedDate] [datetime] NULL,
	[CreatedBy] [int] NULL,
	[ModifiedBy] [int] NULL,
	[EmpAPI1] [varchar](max) NULL,
	[EmpAPI2] [varchar](max) NULL,
	[EmpAPI3] [varchar](max) NULL,
	[BlockAPI] [varchar](max) NULL,
	[LogDownloadAPI] [varchar](max) NULL,
	[userName] [varchar](50) NULL,
	[password] [varchar](50) NULL,
	[DataProcessDate] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Preferences]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Preferences](
	[isDomain] [int] NULL,
	[DomainName] [nvarchar](500) NULL,
	[DomainAdminUserName] [nvarchar](max) NULL,
	[DomainAdminPassword] [nvarchar](max) NULL,
	[Emp_ID] [int] NULL,
	[Time_Stamp] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_PrevPermissionDetails_EastMan]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_PrevPermissionDetails_EastMan](
	[AutoID] [bigint] IDENTITY(1,1) NOT NULL,
	[Cur_Perm_ID] [bigint] NULL,
	[Prev_Perm_ID] [bigint] NULL,
	[Timestamp] [datetime] NULL,
	[Prev_Perm_date] [varchar](20) NULL,
	[Prev_Perm_ShiftTime] [varchar](20) NULL,
	[Prev_Perm_InTime] [varchar](20) NULL,
	[Prev_Perm_LateHours] [varchar](20) NULL,
	[Prev_Perm_Reason] [varchar](500) NULL,
	[Prev_Perm_ReceivedDate] [varchar](20) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ProcessedData]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ProcessedData](
	[Process_Rec_ID] [bigint] IDENTITY(1,1) NOT NULL,
	[Employee_Code_Id] [nvarchar](20) NULL,
	[Date] [datetime] NULL,
	[Shift_Id] [int] NULL,
	[InTime] [nvarchar](25) NULL,
	[OutTime] [nvarchar](25) NULL,
	[HrsWork] [nvarchar](10) NULL,
	[HrsOT] [nvarchar](10) NULL,
	[NormOT] [nvarchar](10) NULL,
	[OffOT] [nvarchar](10) NULL,
	[HolOT] [nvarchar](10) NULL,
	[EarlyOut] [nvarchar](10) NULL,
	[LateIn] [nvarchar](10) NULL,
	[Attendance] [nvarchar](20) NULL,
	[WorkHrs] [nvarchar](10) NULL,
	[HrsLess] [nvarchar](10) NULL,
	[HrsExtra] [nvarchar](10) NULL,
	[LateInMins] [float] NULL,
	[EarlyOutMins] [float] NULL,
	[ExtraMins] [float] NULL,
	[OtMins] [float] NULL,
	[OvertimeStatus] [nvarchar](50) NULL,
	[TotalDays] [numeric](18, 1) NULL,
	[LeaveCode] [nvarchar](20) NULL,
	[LateEntryReason] [nvarchar](260) NULL,
	[EarlyOutReason] [nvarchar](260) NULL,
	[BreakOut] [nvarchar](25) NULL,
	[BreakIn] [nvarchar](25) NULL,
	[BreakHours] [nvarchar](10) NULL,
	[BreakLate] [nvarchar](10) NULL,
	[BreakLateMins] [float] NULL,
	[TotalLate] [nvarchar](10) NULL,
	[TotalLateMins] [float] NULL,
	[ProcessFlag] [int] NULL,
	[Status] [nvarchar](50) NULL,
	[FNAttendanceCode] [nvarchar](15) NULL,
	[ANAttendanceCode] [nvarchar](15) NULL,
	[DinnerOut] [nvarchar](25) NULL,
	[DinnerIn] [nvarchar](25) NULL,
	[DinnerHours] [nvarchar](10) NULL,
	[DinnerLate] [nvarchar](10) NULL,
	[DinnerLateMins] [float] NULL,
	[LateExit] [bit] NULL,
	[EarlyEntry] [bit] NULL,
	[BreakHrs] [nvarchar](10) NULL,
	[LunchHrs] [nvarchar](10) NULL,
	[BreakHrsInMins] [float] NULL,
	[LunchHrsInMins] [float] NULL,
	[InNotation] [char](1) NULL,
	[OutNotation] [char](1) NULL,
	[Shift_StartTime] [nvarchar](20) NULL,
	[Shift_EndTime] [nvarchar](20) NULL,
	[PermissionHrs] [nvarchar](10) NULL,
	[PermissionHrsInMins] [float] NULL,
	[HoursWorkInMins] [float] NULL,
	[WorkHoursInMins] [float] NULL,
	[LessHoursInMins] [float] NULL,
	[IsOnduty] [bit] NULL,
	[LeaveStatus] [nvarchar](50) NULL,
	[PermissionStatus] [nvarchar](50) NULL,
	[NormOtmins] [float] NULL,
	[OffOtmins] [float] NULL,
	[HolOtMins] [float] NULL,
	[CLAvailed]  AS (case when [FNAttendanceCode]='CL' AND [ANAttendanceCode]='CL' then (1) when [FNAttendanceCode]='CL' AND [ANAttendanceCode]<>'CL' then (0.5) when [FNAttendanceCode]<>'CL' AND [ANAttendanceCode]='CL' then (0.5) else (0) end),
	[YearSettingId] [int] NULL,
	[LeaveType_Id] [int] NULL,
	[Holiday_Description] [nvarchar](250) NULL,
	[EarlyInmins] [int] NULL,
	[EarlyInHrs] [varchar](20) NULL,
	[lateExitMins] [int] NULL,
	[LateExitHours] [varchar](20) NULL,
	[ActNormOTMins] [float] NULL,
	[ActOffOTMins] [float] NULL,
	[ActHolOTMins] [float] NULL,
	[ActOTMins] [float] NULL,
	[ActHrsOT] [nvarchar](20) NULL,
	[ActNormOT] [nvarchar](20) NULL,
	[ActOffOT] [nvarchar](20) NULL,
	[ActHolOT] [nvarchar](20) NULL,
	[Inpunch] [varchar](20) NULL,
	[Outpunch] [varchar](20) NULL,
	[Indate] [datetime] NULL,
	[Outdate] [datetime] NULL,
	[SPEC_NormOT1] [varchar](10) NULL,
	[SPEC_NormOTMins1] [int] NULL,
	[SPEC_NormOT2] [varchar](10) NULL,
	[SPEC_NormOTMins2] [int] NULL,
	[SPEC_OffOT1] [varchar](10) NULL,
	[SPEC_OffOTMins1] [int] NULL,
	[SPEC_OffOT2] [varchar](10) NULL,
	[SPEC_OffOTMins2] [int] NULL,
	[SPEC_HOLOT1] [varchar](10) NULL,
	[SPEC_HOLOTMins1] [int] NULL,
	[SPEC_HOLOT2] [varchar](10) NULL,
	[SPEC_HOLOTMins2] [int] NULL,
	[InLocation] [varchar](500) NULL,
	[OutLocation] [varchar](500) NULL,
	[Level_Id] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_ProcessedData] PRIMARY KEY CLUSTERED 
(
	[Process_Rec_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ProcessedDataTrigger]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ProcessedDataTrigger](
	[ReporcessID] [int] IDENTITY(1,1) NOT NULL,
	[RecordCount] [int] NULL,
	[ModifyFromDate] [datetime] NULL,
	[ModifyToDate] [datetime] NULL,
	[EmployeeID] [int] NULL,
	[ModifyType] [nvarchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_ProfSlab]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_ProfSlab](
	[ProfId] [int] IDENTITY(1,1) NOT NULL,
	[Prof_SlabName] [nchar](20) NULL,
	[Prof_RangeFrom] [bigint] NULL,
	[Prof_RangeTO] [bigint] NULL,
	[Prof_Amount] [nvarchar](50) NULL,
	[Tax_PolicyId] [int] NULL,
	[IsPercentage] [bit] NULL,
 CONSTRAINT [PK__Ta_Tbl_P__0A883611B6B24E93] PRIMARY KEY CLUSTERED 
(
	[ProfId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Project]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Project](
	[Project_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Project_Name] [varchar](250) NULL,
	[Project_Code] [varchar](15) NULL,
	[Client_Name] [varchar](150) NULL,
	[Project_Description] [varchar](500) NULL,
	[Project_StartTime] [datetime] NULL,
	[Project_EndTime] [datetime] NULL,
	[Project_Status] [varchar](15) NULL,
	[IsDeleted] [bit] NULL,
	[Created_By] [bigint] NULL,
	[Created_On] [datetime] NULL,
	[Modified_By] [bigint] NULL,
	[Modified_On] [datetime] NULL,
	[LevelID] [int] NULL,
	[Mandays] [int] NULL,
	[ManHours] [int] NULL,
 CONSTRAINT [PK__TA_Tbl_P__1CB92E03DA08B5D4] PRIMARY KEY CLUSTERED 
(
	[Project_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_ProjectTaskList]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_ProjectTaskList](
	[ProjectID] [bigint] NOT NULL,
	[TaskID] [int] IDENTITY(1,1) NOT NULL,
	[TaskName] [nvarchar](max) NULL,
	[TaskHours] [varchar](25) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ProjectTerminals]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ProjectTerminals](
	[Project_Terminal_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[Project_Id] [bigint] NOT NULL,
	[Terminal_id] [bigint] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_PunchtypeRemarks]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_PunchtypeRemarks](
	[Remarks_id] [int] IDENTITY(1,1) NOT NULL,
	[Clk_Type] [nvarchar](10) NULL,
	[PunchType] [nvarchar](50) NULL,
	[Punchtype_Remarks] [nvarchar](max) NULL,
	[Timestamp] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_PunchTypes]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_PunchTypes](
	[PunchType_Id] [int] IDENTITY(1,1) NOT NULL,
	[Terminal_Id] [int] NOT NULL,
	[PunchType] [nvarchar](25) NOT NULL,
	[Value] [nvarchar](25) NOT NULL,
	[Isdeleted] [bit] NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[Time_Stamp] [datetime] NOT NULL,
	[Addedby] [char](1) NULL,
	[Flag] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_INOUT] PRIMARY KEY CLUSTERED 
(
	[PunchType_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_ReasonForNonProcessedData]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_ReasonForNonProcessedData](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[ReasonId] [int] NULL,
	[Reasons] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Religion]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Religion](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](50) NOT NULL,
	[Description] [nvarchar](250) NULL,
	[IsDeleted] [bit] NULL,
 CONSTRAINT [PK_TA_Tbl_Religion] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Results]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Results](
	[CardNo] [nvarchar](10) NULL,
	[EmpName] [nvarchar](100) NULL,
	[Department] [nvarchar](50) NULL,
	[SwipeData] [smalldatetime] NULL,
	[Swipes] [ntext] NULL,
	[SwipesCount] [nvarchar](50) NULL,
	[TotalHrs] [nvarchar](50) NULL,
	[d1] [nvarchar](20) NULL,
	[d2] [nvarchar](20) NULL,
	[d3] [nvarchar](20) NULL,
	[d4] [nvarchar](20) NULL,
	[d5] [nvarchar](20) NULL,
	[d6] [nvarchar](20) NULL,
	[d7] [nvarchar](20) NULL,
	[d8] [nvarchar](20) NULL,
	[d9] [nvarchar](20) NULL,
	[d10] [nvarchar](20) NULL,
	[d11] [nvarchar](20) NULL,
	[d12] [nvarchar](20) NULL,
	[d13] [nvarchar](20) NULL,
	[d14] [nvarchar](20) NULL,
	[d15] [nvarchar](20) NULL,
	[d16] [nvarchar](20) NULL,
	[d17] [nvarchar](20) NULL,
	[d18] [nvarchar](20) NULL,
	[d19] [nvarchar](20) NULL,
	[d20] [nvarchar](20) NULL,
	[d21] [nvarchar](20) NULL,
	[d22] [nvarchar](20) NULL,
	[d23] [nvarchar](20) NULL,
	[d24] [nvarchar](20) NULL,
	[d25] [nvarchar](20) NULL,
	[d26] [nvarchar](20) NULL,
	[d27] [nvarchar](20) NULL,
	[d28] [nvarchar](20) NULL,
	[d29] [nvarchar](20) NULL,
	[d30] [nvarchar](20) NULL,
	[d31] [nvarchar](20) NULL,
	[MusterComplete] [tinyint] NULL,
	[Emp_Location] [nvarchar](20) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_RouteMaster]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_RouteMaster](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Level_Id] [int] NULL,
	[VehicleID] [int] NULL,
	[Route_Name] [nvarchar](50) NOT NULL,
	[Route_Description] [nvarchar](250) NULL,
	[Time_Stamp] [datetime] NULL,
	[Emp_ID] [int] NULL,
	[IsDeleted] [bit] NOT NULL,
	[IsMapped] [int] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_RouteMaster] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Shift]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Shift](
	[Shift_Id] [int] IDENTITY(1,1) NOT NULL,
	[Level_Id] [int] NULL,
	[Shift_Name] [nvarchar](50) NULL,
	[Shift_ShortName] [varchar](8) NULL,
	[Shift_Description] [nvarchar](255) NULL,
	[Shift_StartTime] [nvarchar](10) NULL,
	[Shift_EndTime] [nvarchar](10) NOT NULL,
	[Shift_FirstHalf_StartTime] [nvarchar](10) NULL,
	[Shift_FirstHalf_EndTime] [nvarchar](10) NULL,
	[Shift_SecondHalf_StartTime] [nvarchar](10) NULL,
	[Shift_SecondHalf_EndTime] [nvarchar](10) NULL,
	[Shift_GraceInTime] [nvarchar](10) NOT NULL,
	[Shift_GraceOutTime] [nvarchar](10) NULL,
	[Shift_BreakStartTime1] [nvarchar](10) NULL,
	[Shift_BreakEndTime1] [nvarchar](10) NULL,
	[Shift_BreakStartTime2] [nvarchar](10) NULL,
	[Shift_BreakEndTime2] [nvarchar](10) NULL,
	[Shift_BreakStartTime3] [nvarchar](10) NULL,
	[Shift_BreakEndTime3] [nvarchar](10) NULL,
	[Shift_MinTimeOT] [nvarchar](50) NULL,
	[Shift_MaxTimeOT] [nvarchar](50) NULL,
	[Shift_WorkingDay_OverTime] [float] NULL,
	[Shift_TotalWorkingHours] [nvarchar](50) NULL,
	[Shift_LunchOutTimeGrace] [nvarchar](10) NULL,
	[Shift_LunchInTimeGrace] [nvarchar](10) NULL,
	[Shift_LunchOutTimeGraceBefore] [nvarchar](10) NULL,
	[Shift_LunchOutTimeGraceAfter] [nvarchar](10) NULL,
	[Shift_LunchInTimeGraceBefore] [nvarchar](10) NULL,
	[Shift_LunchInTimeGraceAfter] [nvarchar](10) NULL,
	[Shift_LunchOutTimeGraceBeforeChk] [bit] NULL,
	[Shift_LunchOutTimeGraceAfterChk] [bit] NULL,
	[Shift_LunchInTimeGraceBeforeChk] [bit] NULL,
	[Shift_LunchInTimeGraceAfterChk] [bit] NULL,
	[Isdeleted] [bit] NULL,
	[Emp_ID] [nvarchar](50) NULL,
	[Shift_FirstHalfWorkingHours] [nvarchar](5) NULL,
	[Shift_SecondHalfWorkingHours] [nvarchar](5) NULL,
	[IsBreakDeducted] [bit] NULL,
	[DefaultShift] [bit] NULL,
	[ShiftType] [bit] NULL,
	[CreatedDate] [datetime] NULL,
	[ModifiedDate] [datetime] NULL,
	[24HrsShift] [bit] NULL,
	[isStraightShift] [bit] NULL,
	[StraightPresentTime] [nvarchar](10) NULL,
	[BreakHours] [nvarchar](6) NULL,
	[empCategory] [int] NULL,
	[specialOvertime_start1] [varchar](10) NULL,
	[specialOvertime_start2] [varchar](10) NULL,
	[MaxShiftWorkHours] [varchar](10) NOT NULL,
 CONSTRAINT [PK_TA_Tbl_Shift] PRIMARY KEY CLUSTERED 
(
	[Shift_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_ShiftAdd_Location]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_ShiftAdd_Location](
	[Shift_Lcoation_Id] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeId] [int] NULL,
	[LocationId] [int] NULL,
	[ShiftDate] [datetime] NULL,
	[CreatedBy] [int] NULL,
	[CreatedOn] [datetime] NULL,
	[ModifiedBy] [int] NULL,
	[ModifiedOn] [datetime] NULL,
	[months]  AS (datepart(month,[ShiftDate])),
 CONSTRAINT [PK_TA_tbl_ShiftAdd_Location] PRIMARY KEY CLUSTERED 
(
	[Shift_Lcoation_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ShiftExchange]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ShiftExchange](
	[ShiftExchange_id] [bigint] IDENTITY(1,1) NOT NULL,
	[Level_Id] [int] NOT NULL,
	[Date] [datetime] NOT NULL,
	[Employee1_Id] [int] NOT NULL,
	[Employee1_ActualShift] [int] NOT NULL,
	[Employee2_Id] [int] NOT NULL,
	[Employee2_ActualShift] [int] NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[YearSettings_Id] [int] NULL,
	[TimeStamp] [datetime] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_ShiftExchange] PRIMARY KEY CLUSTERED 
(
	[ShiftExchange_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ShiftPattern]    Script Date: 08-02-2025 13:42:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ShiftPattern](
	[ShiftPattern_Id] [int] IDENTITY(1,1) NOT NULL,
	[Level_Id] [int] NULL,
	[Pattern_Name] [nvarchar](50) NOT NULL,
	[Shift_days] [int] NOT NULL,
	[Day1_Shift] [int] NULL,
	[Day2_shift] [int] NULL,
	[Day3_Shift] [int] NULL,
	[Day4_Shift] [int] NULL,
	[Day5_Shift] [int] NULL,
	[Day6_Shift] [int] NULL,
	[Day7_Shift] [int] NULL,
	[Day8_Shift] [int] NULL,
	[Day9_Shift] [int] NULL,
	[Day10_Shift] [int] NULL,
	[Day11_Shift] [int] NULL,
	[Day12_Shift] [int] NULL,
	[Day13_Shift] [int] NULL,
	[Day14_Shift] [int] NULL,
	[Day15_Shift] [int] NULL,
	[Day16_Shift] [int] NULL,
	[Day17_Shift] [int] NULL,
	[Day18_Shift] [int] NULL,
	[Day19_Shift] [int] NULL,
	[Day20_Shift] [int] NULL,
	[Day21_Shift] [int] NULL,
	[Day22_Shift] [int] NULL,
	[Day23_Shift] [int] NULL,
	[Day24_Shift] [int] NULL,
	[Day25_Shift] [int] NULL,
	[Day26_Shift] [int] NULL,
	[Day27_Shift] [int] NULL,
	[Day28_Shift] [int] NULL,
	[Day29_Shift] [int] NULL,
	[Day30_Shift] [int] NULL,
	[Day31_Shift] [int] NULL,
	[Emp_Id] [int] NULL,
	[Isdeleted] [bit] NULL,
 CONSTRAINT [PK_TA_Tbl] PRIMARY KEY CLUSTERED 
(
	[ShiftPattern_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ShiftRequisition]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ShiftRequisition](
	[ShiftRequisitionID] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeID] [nvarchar](50) NULL,
	[RequisitionDate] [datetime] NULL,
	[Status] [nvarchar](50) NULL,
	[Timestamp] [datetime] NULL,
	[EMP_ID] [nvarchar](50) NULL,
	[DAY1] [nvarchar](50) NULL,
	[DAY2] [nvarchar](50) NULL,
	[DAY3] [nvarchar](50) NULL,
	[DAY4] [nvarchar](50) NULL,
	[DAY5] [nvarchar](50) NULL,
	[DAY6] [nvarchar](50) NULL,
	[DAY7] [nvarchar](50) NULL,
	[DAY8] [nvarchar](50) NULL,
	[DAY9] [nvarchar](50) NULL,
	[DAY10] [nvarchar](50) NULL,
	[DAY11] [nvarchar](50) NULL,
	[DAY12] [nvarchar](50) NULL,
	[DAY13] [nvarchar](50) NULL,
	[DAY14] [nvarchar](50) NULL,
	[DAY15] [nvarchar](50) NULL,
	[DAY16] [nvarchar](50) NULL,
	[DAY17] [nvarchar](50) NULL,
	[DAY18] [nvarchar](50) NULL,
	[DAY19] [nvarchar](50) NULL,
	[DAY20] [nvarchar](50) NULL,
	[DAY21] [nvarchar](50) NULL,
	[DAY22] [nvarchar](50) NULL,
	[DAY23] [nvarchar](50) NULL,
	[DAY24] [nvarchar](50) NULL,
	[DAY25] [nvarchar](50) NULL,
	[DAY26] [nvarchar](50) NULL,
	[DAY27] [nvarchar](50) NULL,
	[DAY28] [nvarchar](50) NULL,
	[DAY29] [nvarchar](50) NULL,
	[DAY30] [nvarchar](50) NULL,
	[DAY31] [nvarchar](50) NULL,
	[CompanyID] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ShiftRoaster]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ShiftRoaster](
	[ShiftRoaster_Id] [int] IDENTITY(1,1) NOT NULL,
	[Level_Id] [int] NULL,
	[ShiftRoaster_Name] [nvarchar](50) NULL,
	[NumberOfPatterns] [int] NOT NULL,
	[Pattern1] [int] NULL,
	[Pattern2] [int] NULL,
	[Pattern3] [int] NULL,
	[Pattern4] [int] NULL,
	[Pattern5] [int] NULL,
	[Pattern6] [int] NULL,
	[Pattern7] [int] NULL,
	[Pattern8] [int] NULL,
	[Pattern9] [int] NULL,
	[Pattern10] [int] NULL,
	[Emp_Id] [int] NULL,
	[IsDeleted] [int] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_ShiftRoaster] PRIMARY KEY CLUSTERED 
(
	[ShiftRoaster_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_ShiftSettings]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_ShiftSettings](
	[ShiftSettingId] [int] IDENTITY(1,1) NOT NULL,
	[CompanyId] [int] NULL,
	[MaxHoursBeforeShift] [nvarchar](50) NULL,
	[MaxHoursAfterShift] [nvarchar](50) NULL,
	[ShiftBreak] [nvarchar](50) NULL,
	[ShiftMaxBreakHours] [nvarchar](50) NULL,
	[MonthlyWorkingHours] [nvarchar](50) NULL,
	[WeeklyWorkingHours] [nvarchar](50) NULL,
	[EmpID] [nvarchar](50) NULL,
	[HolidayOT] [decimal](18, 2) NULL,
	[WeekOffOT] [decimal](18, 2) NULL,
	[otOption] [nvarchar](50) NULL,
	[DefaultMonthClosureDate] [datetime] NULL,
	[IsFlexible] [bit] NULL,
	[FlexibleFlag] [tinyint] NULL,
	[OTRoundoffEnable] [bit] NULL,
	[FullDayAttendanceHrs] [nvarchar](5) NULL,
	[HalfDayAttendanceHrs] [nvarchar](5) NULL,
	[HalfDayAttendance] [bit] NULL,
	[FullDayAttendance] [bit] NULL,
	[DefaultLunchHours] [nvarchar](5) NULL,
	[MaxLunchHours] [nvarchar](5) NULL,
	[WeeklyOffStartHours] [nvarchar](5) NULL,
	[IgnoreDuplicatePunch] [bit] NULL,
	[PunchInterval] [nvarchar](5) NULL,
	[AfterShiftTime] [bit] NULL,
	[BeforeShiftTime] [bit] NULL,
	[DefinedWorkhrs] [bit] NULL,
	[NoOfSuccessiveDaysInYear] [int] NULL,
	[CompensationValitityDays] [int] NULL,
	[VaildityCompOffDays] [int] NULL,
	[HalfDayCompOff] [varchar](5) NULL,
	[FullDayCompOff] [varchar](50) NULL,
	[LateEntry] [bit] NULL,
	[EarlyEntry] [bit] NULL,
	[EarlyExit] [bit] NULL,
	[LateExit] [bit] NULL,
	[TimeStamp] [datetime] NULL,
	[TimeStamp1] [datetime] NULL,
	[IsLunchDeduction] [bit] NULL,
	[LunchDeductionHours] [nvarchar](10) NULL,
	[MaxWorkPlaceInHours] [nvarchar](5) NULL,
	[Flexi_AfterShiftTime] [bit] NULL,
	[Flexi_BeforeShiftTime] [bit] NULL,
	[Flexi_DefinedWorkhrs] [bit] NULL,
	[MaxHoursBeforeShift_24HrsShift] [nvarchar](50) NULL,
	[WeeklyOffStartHours_24HrsShift] [nvarchar](50) NULL,
	[CumulativeWeekStartDay] [nvarchar](10) NULL,
	[CumulativeWeekEndDay] [nvarchar](10) NULL,
	[MonthStartDay] [int] NULL,
	[MonthEndDay] [int] NULL,
	[isRequestingforCompOff] [bit] NULL,
	[FirstAndLast] [bit] NULL,
	[Carry_Forward_COff_Year] [int] NULL,
	[MapKey] [varchar](max) NULL,
	[SpecialOverTime1] [int] NULL,
	[SpecialOverTime2] [int] NULL,
	[LateMinsPerDay] [int] NOT NULL,
	[LateDaysPerMonth] [int] NOT NULL,
	[EarlyExitMinsPerDay] [int] NULL,
	[EarlyExitDaysPerMonth] [int] NULL,
	[EnableAbsent] [int] NOT NULL,
	[isLOPDisplayed] [bit] NULL,
	[isRemindRrd_Pas_Vis] [bit] NULL,
	[reminderDays] [int] NULL,
	[mon] [int] NULL,
	[tues] [int] NULL,
	[wed] [int] NULL,
	[thurs] [int] NULL,
	[fri] [int] NULL,
	[satur] [int] NULL,
	[sun] [int] NULL,
	[NightShiftEndTime_Autoshift] [nvarchar](10) NULL,
 CONSTRAINT [PK_TA_Tbl_ShiftSettings] PRIMARY KEY CLUSTERED 
(
	[ShiftSettingId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_SMSGateway]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_SMSGateway](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[ServiceUrl] [varchar](max) NULL,
	[DestinationKey] [varchar](100) NULL,
	[MessageKey] [varchar](100) NULL,
	[TimeStamp] [datetime] NULL,
	[PhNo] [varchar](20) NULL,
	[EmployeeID] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_SMSLogChild]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_SMSLogChild](
	[logchildid] [int] IDENTITY(1,1) NOT NULL,
	[logid] [int] NULL,
	[Employeesids] [varchar](50) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_SMSLogDetails]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_SMSLogDetails](
	[logid] [int] IDENTITY(1,1) NOT NULL,
	[TemplateID] [int] NULL,
	[TriggeredDate] [datetime] NULL,
	[Receivers] [varchar](50) NULL,
	[NextTriggeringTime] [datetime] NULL,
	[Status] [bit] NULL,
	[StatusMessage] [varchar](max) NULL,
	[ShiftId] [int] NULL,
	[Message] [varchar](max) NULL,
	[TriggeredTimings] [datetime] NULL,
 CONSTRAINT [PK__TA_Tbl_S__7838F2653B5D1C78] PRIMARY KEY CLUSTERED 
(
	[logid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_SMSReceivers]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_SMSReceivers](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Usergroupid] [int] NULL,
	[TemplateId] [int] NULL,
	[TimeStamp] [datetime] NULL,
	[CreatedBy] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_SMSTags]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_SMSTags](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Tags] [varchar](50) NULL,
	[TemplateName] [varchar](50) NULL,
	[Timestamp] [datetime] NULL,
 CONSTRAINT [PK__Ta_Tbl_S__3213E83FEB774D5C] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_SMSTemplateFilters]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_SMSTemplateFilters](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[TemplateId] [int] NULL,
	[Filters] [varchar](max) NULL,
	[ReportType] [varchar](50) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_SMSTemplates]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_SMSTemplates](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[TemplateName] [varchar](50) NULL,
	[Message] [varchar](max) NULL,
	[Status] [bit] NULL,
	[LastModified] [datetime] NULL,
	[ModifiedBy] [int] NULL,
	[First_TriggeringTime] [varchar](5) NULL,
	[Second_TriggeringTime] [varchar](5) NULL,
	[ToEmployee] [bit] NULL,
	[LessHrsLimitation] [varchar](5) NULL,
	[Continue_AbsentDays] [int] NULL,
	[Tags] [varchar](max) NULL,
 CONSTRAINT [PK__Ta_Tbl_S__3213E83F141C6E29] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_specialOvertimeDetails]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_specialOvertimeDetails](
	[Employee_code_id] [varchar](50) NULL,
	[Date] [datetime] NULL,
	[Modified_Spec_NormOTMins1] [int] NULL,
	[Modified_Spec_NormOTMins2] [int] NULL,
	[Modified_Spec_OffOTMins1] [int] NULL,
	[Modified_Spec_OffOTMins2] [int] NULL,
	[Modified_Spec_HolOTMins1] [int] NULL,
	[Modified_Spec_HolOTMins2] [int] NULL,
	[Modified_Spec_NormOTHrs1] [varchar](10) NULL,
	[Modified_Spec_NormOTHrs2] [varchar](10) NULL,
	[Modified_Spec_OffOTHrs1] [varchar](10) NULL,
	[Modified_Spec_OffOTHrs2] [varchar](10) NULL,
	[Modified_Spec_HolOTHrs1] [varchar](10) NULL,
	[Modified_Spec_HolOTHrs2] [varchar](10) NULL,
	[Inserted_By] [bigint] NULL,
	[Inserted_Date] [datetime] NULL,
	[Modified_By] [bigint] NULL,
	[Modified_Date] [datetime] NULL,
	[Rec_ID] [bigint] IDENTITY(1,1) NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_TaskProgressDetails]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_TaskProgressDetails](
	[TaskDetailID] [bigint] IDENTITY(1,1) NOT NULL,
	[TaskID] [int] NULL,
	[ProjectID] [bigint] NULL,
	[ShiftDate] [datetime] NULL,
	[TaskHours] [varchar](10) NULL,
	[TaskDescription] [varchar](5000) NULL,
	[SpentHours] [varchar](10) NULL,
	[TaskSubmittedDate] [datetime] NULL,
	[TaskSubmittedBy] [bigint] NULL,
	[TaskModifiedDate] [datetime] NULL,
	[TaskModifiedBy] [bigint] NULL,
	[ModificationReason] [varchar](5000) NULL,
	[ApprovedHours] [varchar](10) NULL,
	[ApprovedBy1] [bigint] NULL,
	[ApprovedDate1] [datetime] NULL,
	[ApprovedBy2] [bigint] NULL,
	[ApprovedDate2] [datetime] NULL,
	[Status] [varchar](10) NULL,
	[isSubmitted_Completely] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_taskprogressStatus]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_taskprogressStatus](
	[ProgressAutoID] [bigint] IDENTITY(1,1) NOT NULL,
	[TaskDetailID] [bigint] NULL,
	[ApprovedHours] [varchar](10) NULL,
	[ApprovedBy] [bigint] NULL,
	[ApprovedDate] [datetime] NULL,
	[Comments] [varchar](500) NULL,
	[Status] [varchar](500) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TaxMasterDetails]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TaxMasterDetails](
	[TaxPolicy_Id] [int] IDENTITY(1,1) NOT NULL,
	[TaxPolicyName] [nvarchar](50) NULL,
	[CompanyId] [int] NULL,
	[EmployeeCategory] [int] NULL,
	[EmployeeType] [int] NULL,
	[Gender] [varchar](10) NULL,
	[isDeleted] [bit] NULL,
	[Created_By] [int] NULL,
	[Created_DateTime] [date] NULL,
	[Modify_DateTime] [date] NULL,
	[isTdsflag] [bit] NULL,
	[isProfessflag] [bit] NULL,
	[TdsSlabCount] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[TaxPolicy_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TDSSlab]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TDSSlab](
	[TdsId] [int] IDENTITY(1,1) NOT NULL,
	[Tds_SlabNo] [nchar](20) NULL,
	[Tds_RangeFrom] [bigint] NULL,
	[Tds_RangeTo] [bigint] NULL,
	[Tds_Percentage] [bigint] NULL,
	[Tds_CessPercentage] [float] NULL,
	[Tax_PolicyId] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[TdsId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Temp_WeeklyOff_Levels]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Temp_WeeklyOff_Levels](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[TempWeekday_Id] [int] NULL,
	[Temp_WeeklyOff_Levels] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_Temp_WeeklyOff_Levels] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TempGroupPolicyAllocation]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TempGroupPolicyAllocation](
	[EmpID] [int] NOT NULL,
	[EmployeeId] [nvarchar](50) NOT NULL,
	[EmployeeName] [nvarchar](50) NOT NULL,
	[LoginEmployeeId] [int] NOT NULL,
	[DateOfJoining] [datetime] NOT NULL,
	[LevelID] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TempInsertEmployee]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TempInsertEmployee](
	[employee_code] [bigint] NOT NULL,
	[first_name] [nvarchar](50) NULL,
	[last_name] [nvarchar](50) NULL,
	[birth_date] [datetime] NULL,
	[local_addr1] [nvarchar](50) NULL,
	[local_addr2] [nvarchar](50) NULL,
	[local_addr3] [nvarchar](50) NULL,
	[join_date] [datetime] NULL,
	[section_name] [nvarchar](50) NULL,
	[desg_name] [nvarchar](50) NULL,
	[category_name] [nvarchar](50) NULL,
	[basic] [numeric](16, 3) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_Temporary_WeeklyOff_Levels]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_Temporary_WeeklyOff_Levels](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[TempWeekday_Id] [int] NULL,
	[LevelId] [int] NULL,
 CONSTRAINT [PK_Ta_Tbl_Temporary_WeeklyOff_Levels] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TemporaryShiftAllocation]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation](
	[EmployeeId] [int] NOT NULL,
	[Year] [int] NOT NULL,
	[Month] [int] NOT NULL,
	[Day1Shift] [int] NOT NULL,
	[Day2Shift] [int] NOT NULL,
	[Day3Shift] [int] NOT NULL,
	[Day4Shift] [int] NOT NULL,
	[Day5Shift] [int] NOT NULL,
	[Day6Shift] [int] NOT NULL,
	[Day7Shift] [int] NOT NULL,
	[Day8Shift] [int] NOT NULL,
	[Day9Shift] [int] NOT NULL,
	[Day10Shift] [int] NOT NULL,
	[Day11Shift] [int] NOT NULL,
	[Day12Shift] [int] NOT NULL,
	[Day13Shift] [int] NOT NULL,
	[Day14Shift] [int] NOT NULL,
	[Day15Shift] [int] NOT NULL,
	[Day16Shift] [int] NOT NULL,
	[Day17Shift] [int] NOT NULL,
	[Day18Shift] [int] NOT NULL,
	[Day19Shift] [int] NOT NULL,
	[Day20Shift] [int] NOT NULL,
	[Day21Shift] [int] NOT NULL,
	[Day22Shift] [int] NOT NULL,
	[Day23Shift] [int] NOT NULL,
	[Day24Shift] [int] NOT NULL,
	[Day25Shift] [int] NOT NULL,
	[Day26Shift] [int] NOT NULL,
	[Day27Shift] [int] NOT NULL,
	[Day28Shift] [int] NOT NULL,
	[Day29Shift] [int] NOT NULL,
	[Day30Shift] [int] NOT NULL,
	[Day31Shift] [int] NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
	[DateShift] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TemporaryShiftAllocationbkup]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TemporaryShiftAllocationbkup](
	[EmployeeId] [int] NOT NULL,
	[Year] [int] NOT NULL,
	[Month] [int] NOT NULL,
	[Day1Shift] [int] NOT NULL,
	[Day2Shift] [int] NOT NULL,
	[Day3Shift] [int] NOT NULL,
	[Day4Shift] [int] NOT NULL,
	[Day5Shift] [int] NOT NULL,
	[Day6Shift] [int] NOT NULL,
	[Day7Shift] [int] NOT NULL,
	[Day8Shift] [int] NOT NULL,
	[Day9Shift] [int] NOT NULL,
	[Day10Shift] [int] NOT NULL,
	[Day11Shift] [int] NOT NULL,
	[Day12Shift] [int] NOT NULL,
	[Day13Shift] [int] NOT NULL,
	[Day14Shift] [int] NOT NULL,
	[Day15Shift] [int] NOT NULL,
	[Day16Shift] [int] NOT NULL,
	[Day17Shift] [int] NOT NULL,
	[Day18Shift] [int] NOT NULL,
	[Day19Shift] [int] NOT NULL,
	[Day20Shift] [int] NOT NULL,
	[Day21Shift] [int] NOT NULL,
	[Day22Shift] [int] NOT NULL,
	[Day23Shift] [int] NOT NULL,
	[Day24Shift] [int] NOT NULL,
	[Day25Shift] [int] NOT NULL,
	[Day26Shift] [int] NOT NULL,
	[Day27Shift] [int] NOT NULL,
	[Day28Shift] [int] NOT NULL,
	[Day29Shift] [int] NOT NULL,
	[Day30Shift] [int] NOT NULL,
	[Day31Shift] [int] NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
	[DateShift] [datetime] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TempPayrollProcessDetails]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TempPayrollProcessDetails](
	[PayrollProcess_Id] [int] IDENTITY(1,1) NOT NULL,
	[MonthClosure_Id] [int] NULL,
	[Employee_Id] [nvarchar](20) NULL,
	[HrsWork] [nvarchar](25) NULL,
	[HrsOT] [nvarchar](25) NULL,
	[NormOT] [nvarchar](25) NULL,
	[OffOT] [nvarchar](25) NULL,
	[HolOT] [nvarchar](25) NULL,
	[EarlyOut] [nvarchar](25) NULL,
	[LateIn] [nvarchar](25) NULL,
	[WorkHrs] [nvarchar](25) NULL,
	[HrsLess] [nvarchar](25) NULL,
	[HrsExtra] [nvarchar](25) NULL,
	[LeaveDays] [numeric](18, 1) NULL,
	[AbsentDays] [numeric](18, 1) NULL,
	[PresentDays] [numeric](18, 1) NULL,
	[Holidays] [numeric](18, 1) NULL,
	[LOPDays] [numeric](18, 1) NULL,
	[Emp_Id] [int] NULL,
	[TimeStamp] [datetime] NULL,
	[TotalPermissionHours] [varchar](100) NULL,
	[WeekOffDays] [decimal](18, 1) NULL,
 CONSTRAINT [PK_TA_Tbl_TempPayrollProcessDetails] PRIMARY KEY CLUSTERED 
(
	[PayrollProcess_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TempShiftAllocation]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TempShiftAllocation](
	[EmpID] [int] NOT NULL,
	[EmployeeId] [nvarchar](50) NOT NULL,
	[EmployeeName] [nvarchar](50) NOT NULL,
	[LoginEmployeeId] [int] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TempUpdateEmployee]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TempUpdateEmployee](
	[employee_code] [bigint] NOT NULL,
	[first_name] [nvarchar](50) NULL,
	[last_name] [nvarchar](50) NULL,
	[birth_date] [datetime] NULL,
	[local_addr1] [nvarchar](50) NULL,
	[local_addr2] [nvarchar](50) NULL,
	[local_addr3] [nvarchar](50) NULL,
	[join_date] [datetime] NULL,
	[section_name] [nvarchar](50) NULL,
	[desg_name] [nvarchar](50) NULL,
	[category_name] [nvarchar](50) NULL,
	[basic] [numeric](16, 3) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TemWeekday]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TemWeekday](
	[TempWeekday_Id] [int] IDENTITY(1,1) NOT NULL,
	[TempWeekday_FromDate] [datetime] NOT NULL,
	[TempWeekday_ToDate] [datetime] NOT NULL,
	[ClosingTime] [nvarchar](50) NULL,
	[Reason] [nvarchar](255) NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[IsDeleted] [bit] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
	[ShiftId] [nvarchar](max) NULL,
 CONSTRAINT [PK_TA_Tbl_TemWeekday] PRIMARY KEY CLUSTERED 
(
	[TempWeekday_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Terminal]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Terminal](
	[Terminal_Id] [int] IDENTITY(1,1) NOT NULL,
	[Terminal_ReaderID] [nvarchar](20) NULL,
	[Terminal_Name] [nvarchar](50) NOT NULL,
	[Terminal_Description] [nvarchar](250) NOT NULL,
	[TerminalDatatype_ID] [int] NULL,
	[Time_Stamp] [datetime] NULL,
	[Emp_ID] [int] NULL,
	[IsDeleted] [bit] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_Terminal] PRIMARY KEY CLUSTERED 
(
	[Terminal_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TerminalBrand]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TerminalBrand](
	[BrandID] [int] IDENTITY(1,1) NOT NULL,
	[DisplayName] [nvarchar](500) NULL,
	[KeyValue] [varchar](500) NULL,
 CONSTRAINT [PK_TA_Tbl_TerminalBrand] PRIMARY KEY CLUSTERED 
(
	[BrandID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_TerminalDatatype]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_TerminalDatatype](
	[TerminalDatatype_ID] [int] IDENTITY(1,1) NOT NULL,
	[Raw_Data_Format] [nvarchar](25) NOT NULL,
	[FileType] [nvarchar](15) NOT NULL,
	[File_SourcePath] [nvarchar](2000) NULL,
	[File_BackupPath] [nvarchar](2000) NULL,
	[File_BackupType] [nvarchar](10) NULL,
	[Delimiter_NoOfFields] [int] NULL,
	[Delimiter_Delimiter] [char](5) NULL,
	[Delimiter_StringEnclosedBy] [nvarchar](5) NULL,
	[Delimiter_ReaderNo] [nvarchar](10) NULL,
	[Delimiter_CardNo] [nvarchar](10) NULL,
	[Delimiter_DateTimeBit] [bit] NULL,
	[Delimiter_Date] [nvarchar](10) NULL,
	[Delimiter_Time] [nvarchar](10) NULL,
	[Delimiter_DateTime] [nvarchar](10) NULL,
	[Delimiter_Type] [nvarchar](10) NULL,
	[Delimiter_TransactionIdentifier] [nvarchar](10) NULL,
	[FixedLength_ReaderNoFrom] [int] NULL,
	[FixedLength_ReaderNoTo] [int] NULL,
	[FixedLength_CardNoFrom] [int] NULL,
	[FixedLength_CardNoTo] [int] NULL,
	[FixedLength_DateTimeBit] [bit] NULL,
	[FixedLength_DateFrom] [int] NULL,
	[FixedLength_DateTo] [int] NULL,
	[FixedLength_TimeFrom] [int] NULL,
	[FixedLength_TimeTo] [int] NULL,
	[FixedLength_DateTimeFrom] [int] NULL,
	[FixedLength_DateTimeTo] [int] NULL,
	[FixedLength_TypeFrom] [int] NULL,
	[FixedLength_TypeTo] [int] NULL,
	[FixedLength_TransactionIdentifierFrom] [int] NULL,
	[FixedLength_TransactionIdentifierTo] [int] NULL,
	[ConnectionString] [nvarchar](2000) NULL,
	[TableName] [nvarchar](50) NULL,
	[MDB_ReaderNo] [nvarchar](25) NULL,
	[MDB_CardNo] [nvarchar](25) NULL,
	[MDB_DateTimeBit] [bit] NULL,
	[MDB_Date] [nvarchar](25) NULL,
	[MDB_Time] [nvarchar](25) NULL,
	[MDB_DateTime] [nvarchar](25) NULL,
	[MDB_Type] [nvarchar](25) NULL,
	[MDB_TransactionIdentifier] [nvarchar](25) NULL,
	[RDBMS_ReaderNo] [nvarchar](25) NULL,
	[RDBMS_CardNo] [nvarchar](25) NULL,
	[RDBMS_DateTimeBit] [bit] NULL,
	[RDBMS_Date] [nvarchar](25) NULL,
	[RDBMS_Time] [nvarchar](25) NULL,
	[RDBMS_DateTime] [nvarchar](25) NULL,
	[RDBMS_Type] [nvarchar](25) NULL,
	[RDBMS_TransactionIdentifier] [nvarchar](25) NULL,
	[RDBMS_MDB_Flag] [nvarchar](25) NULL,
	[IsEmployeeId] [bit] NULL,
	[DateTimeFormat] [nvarchar](40) NULL,
	[DateFormat] [nvarchar](15) NULL,
	[TimeFormat] [nvarchar](15) NULL,
	[IsEncrypted] [bit] NULL,
	[TransactionIdentifierBit] [bit] NULL,
	[TransactionIdentifierValue] [nvarchar](50) NULL,
	[Emp_Id] [int] NOT NULL,
	[TimeStamp] [datetime] NOT NULL,
	[IsDeleted] [bit] NOT NULL,
	[BrandId] [int] NULL,
	[IsFreeScan] [int] NULL,
	[ISUTCTime] [int] NULL,
 CONSTRAINT [PK_TA_tbl_TerminalDatatype] PRIMARY KEY CLUSTERED 
(
	[TerminalDatatype_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TerminalMapping]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TerminalMapping](
	[TerMap_Id] [int] IDENTITY(1,1) NOT NULL,
	[EntranceName] [nvarchar](50) NOT NULL,
	[EntranceDescription] [nvarchar](50) NULL,
	[InTerminalID] [int] NULL,
	[OutTerminalID] [int] NULL,
	[IsDeleted] [bit] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_TerminalMapping] PRIMARY KEY CLUSTERED 
(
	[TerMap_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_TimeSheetProjectTaskDetails]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_TimeSheetProjectTaskDetails](
	[ProjectTaskDetailID] [bigint] IDENTITY(1,1) NOT NULL,
	[TaskID] [int] NULL,
	[ProjectID] [bigint] NULL,
	[ShiftID] [int] NULL,
	[ShiftDate] [datetime] NULL,
	[EmployeeID] [nvarchar](max) NULL,
	[TaskHours] [nvarchar](50) NULL,
	[TaskDiscription] [nvarchar](max) NULL,
	[SpentHours] [nvarchar](50) NULL,
	[BalanceHours] [nvarchar](50) NULL,
	[TaskSubmittedDate] [datetime] NULL,
	[TasksubmittedBY] [bigint] NULL,
	[TaskModifyDate] [datetime] NULL,
	[TaskModifyBy] [bigint] NULL,
	[ModificationReason] [nvarchar](50) NULL,
	[ApprovedHours] [nvarchar](50) NULL,
	[ApprovedBy1] [bigint] NULL,
	[ApprovedDate1] [datetime] NULL,
	[Comments1] [nvarchar](max) NULL,
	[ApprovedBy2] [bigint] NULL,
	[ApprovedDate2] [datetime] NULL,
	[Comments2] [nvarchar](max) NULL,
	[Status] [nvarchar](50) NULL,
	[IsDeleted] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_TimeZones]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_TimeZones](
	[TimeZoneID] [int] NOT NULL,
	[TimeZoneName] [varchar](100) NOT NULL,
	[TimeZoneDesc] [varchar](10) NULL,
	[HoursToBeAdded] [int] NOT NULL,
	[MinToBeAdded] [int] NOT NULL,
 CONSTRAINT [PK_Ta_tbl_TimeZones] PRIMARY KEY CLUSTERED 
(
	[TimeZoneID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_TimeZonesList]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_TimeZonesList](
	[TimezoneID] [int] IDENTITY(1,1) NOT NULL,
	[CountryCode] [nvarchar](10) NULL,
	[TimezoneName] [nvarchar](max) NULL,
	[TimezoneDesc] [nvarchar](max) NULL,
	[TimeZoneValue] [nvarchar](max) NULL,
	[HoursToBeAdded] [int] NULL,
	[MinToBeAdded] [int] NULL,
	[ServerDefault] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Title]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Title](
	[TitleId] [int] IDENTITY(1,1) NOT NULL,
	[TitleName] [nvarchar](50) NOT NULL,
	[TitleDescription] [nvarchar](250) NULL,
	[LevelID] [int] NULL,
	[LeavePolicyID] [int] NULL,
	[GradeID] [int] NULL,
	[Emp_Id] [int] NULL,
	[IsDeleted] [bit] NOT NULL,
	[Time_Stamp] [datetime] NULL,
 CONSTRAINT [PK_TA_Tbl_Title] PRIMARY KEY CLUSTERED 
(
	[TitleId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_TitleMapping]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_TitleMapping](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[Company_Id] [int] NOT NULL,
	[Region_Id] [int] NOT NULL,
	[Branch_Id] [int] NOT NULL,
	[Department_Id] [int] NOT NULL,
	[Section_Id] [int] NOT NULL,
	[TitleId] [int] NOT NULL,
	[IsDeleted] [bit] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[ta_tbl_TotalBreakHours]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ta_tbl_TotalBreakHours](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[ShiftDate] [datetime] NULL,
	[Employee_Code_Id] [nvarchar](10) NOT NULL,
	[TotalBreakmin] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_Tbl_Trace]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Tbl_Trace](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[PageName] [nvarchar](200) NULL,
	[ErrDescription] [nvarchar](2000) NULL,
	[DateOfError] [datetime] NULL,
 CONSTRAINT [PK_Ta_Tbl_Trace] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Ta_tbl_Transfer]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_tbl_Transfer](
	[TrnsfrID] [bigint] IDENTITY(1,1) NOT NULL,
	[Emp_AutoID] [bigint] NULL,
	[Trnsfr_frm] [int] NULL,
	[Trnsfr_To] [int] NULL,
	[Trnsfr_EtyDteTme] [datetime] NULL,
	[Trnsfr_Dte] [datetime] NULL,
	[Etry_RsdBy] [int] NULL,
	[NwDsgtonID] [int] NULL,
	[NwReprtngTo] [int] NULL,
	[NwApprvlAuthrty] [int] NULL,
	[Remarks] [varchar](500) NULL,
	[IsImprtd] [int] NULL,
	[Trnsfr_status] [varchar](10) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Transportation]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Transportation](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[VehicleNo] [int] NOT NULL,
	[RouteName] [nvarchar](50) NOT NULL,
	[Company_Id] [int] NOT NULL,
	[Region_Id] [int] NOT NULL,
	[Branch_Id] [int] NOT NULL,
	[IsDeleted] [bit] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Transportation_Mapping]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Transportation_Mapping](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[VehicleId] [int] NOT NULL,
	[RouteId] [int] NOT NULL,
	[Company_Id] [int] NOT NULL,
	[Region_Id] [int] NOT NULL,
	[Branch_Id] [int] NOT NULL,
	[IsDeleted] [bit] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Transportation_Route]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Transportation_Route](
	[RouteId] [int] IDENTITY(1,1) NOT NULL,
	[VehicleId] [int] NULL,
	[RouteName] [nvarchar](20) NULL,
	[RouteDescription] [nvarchar](250) NULL,
	[IsDeleted] [bit] NOT NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Transportation_Vehicle]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Transportation_Vehicle](
	[VehicleId] [int] IDENTITY(1,1) NOT NULL,
	[VehicleNo] [nvarchar](20) NOT NULL,
	[VehicleDescription] [nvarchar](250) NOT NULL,
	[IsDeleted] [bit] NOT NULL,
	[Emp_Id] [int] NULL,
	[Time_stamp] [datetime] NULL,
 CONSTRAINT [PK_TA_Tbl_Transportation_Vehicle] PRIMARY KEY CLUSTERED 
(
	[VehicleId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Type]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Type](
	[TypeId] [bigint] IDENTITY(1,1) NOT NULL,
	[TypeName] [nvarchar](50) NULL,
	[IsDeleted] [bit] NULL,
	[EmpId] [bigint] NULL,
	[IsFlexible] [bit] NULL,
	[Isdisply_MyProf] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Usergroup]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Usergroup](
	[groupId] [int] IDENTITY(1,1) NOT NULL,
	[groupName] [nvarchar](50) NULL,
	[IndividualUsers] [bit] NULL,
	[hasSpecialRights] [bit] NULL,
	[timeStamp] [datetime] NULL,
	[isDeleted] [bit] NULL,
	[Emp_Id] [nchar](10) NULL,
	[ReportsBasedOn] [bit] NULL,
	[AllowLeaveApprovalPastEntry] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_userRights]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_userRights](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[groupName] [nvarchar](50) NULL,
	[groupId] [int] NULL,
	[pageId] [float] NULL,
	[pageGroupId] [int] NULL,
	[addPrv] [bit] NULL,
	[modifyPrv] [bit] NULL,
	[deletePrv] [bit] NULL,
	[viewPrv] [bit] NULL,
	[isDeleted] [bit] NULL,
	[timeStamp] [datetime] NULL,
	[employeeId] [decimal](18, 0) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_UTCEmployeeLoginDetails]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_UTCEmployeeLoginDetails](
	[UTC_Auto_ID] [int] IDENTITY(1,1) NOT NULL,
	[EmployeeCode] [int] NULL,
	[UTC_TimeZone_ID] [int] NULL,
	[LogInDate] [datetime] NULL,
	[Flag] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_UTCTimeZonesCountryDetails]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_UTCTimeZonesCountryDetails](
	[TimezoneID] [int] IDENTITY(1,1) NOT NULL,
	[CountryCode] [char](5) NULL,
	[TimezoneName] [varchar](200) NULL,
	[TimezoneDesc] [varchar](200) NULL,
	[TimeZoneValue] [nvarchar](300) NULL,
	[HoursToBeAdded] [int] NULL,
	[MinToBeAdded] [int] NULL,
	[ServerDefault] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_Version]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_Version](
	[VersionId] [bigint] IDENTITY(1,1) NOT NULL,
	[DatabaseVersionNo] [float] NULL,
	[DatabaseVersionName] [nvarchar](250) NULL,
	[ApplicationVersionNo] [float] NULL,
	[ApplicationVersionName] [nvarchar](250) NULL,
	[DatabaseVersionDate] [datetime] NULL,
	[ApplicationVersionDate] [datetime] NULL,
 CONSTRAINT [PK_TA_Tbl_Version] PRIMARY KEY CLUSTERED 
(
	[VersionId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_WhatsAppIdsForTriggering]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_WhatsAppIdsForTriggering](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleId] [bigint] NOT NULL,
	[MobileNumber] [varchar](250) NOT NULL,
 CONSTRAINT [PK_TA_tbl_WhatsAppIdsForTriggering] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_WhatsAppNumberForTriggeringMessage]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_WhatsAppNumberForTriggeringMessage](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleId] [bigint] NOT NULL,
	[WhatsAppType] [varchar](5) NOT NULL,
	[MobileNum] [varchar](250) NOT NULL,
 CONSTRAINT [PK_TA_tbl_WhatsAppNumberForTriggeringMessage] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_WhatsAppSchedule]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_WhatsAppSchedule](
	[ScheduleId] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleName] [varchar](250) NOT NULL,
	[ReportId] [int] NOT NULL,
	[Frequency] [varchar](20) NOT NULL,
	[DayToSend] [varchar](10) NOT NULL,
	[DayFrom] [varchar](10) NOT NULL,
	[DayTo] [varchar](10) NOT NULL,
	[DateToSend] [int] NOT NULL,
	[DateFrom] [int] NOT NULL,
	[DateTo] [int] NOT NULL,
	[TimeToSend] [varchar](20) NOT NULL,
	[EmployeeId] [int] NOT NULL,
	[WhatsAppSendType] [bit] NOT NULL,
	[FileType] [varchar](20) NOT NULL,
	[Enabled] [bit] NOT NULL,
	[IsDeleted] [bit] NULL,
	[TimeStamp] [datetime] NULL,
	[ReportName] [varchar](50) NULL,
	[ToWhom] [int] NULL,
	[TimeSendOption] [int] NULL,
	[Reminder_afterDays] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_WhatsAppSchedule] PRIMARY KEY CLUSTERED 
(
	[ScheduleId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_WhatsAppScheduled_Employees]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_WhatsAppScheduled_Employees](
	[ScheduleId] [bigint] NULL,
	[Employee_id] [bigint] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_WhatsAppScheduleFilters]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_WhatsAppScheduleFilters](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleId] [bigint] NOT NULL,
	[Filters] [varchar](max) NULL,
	[ReportType] [varchar](25) NULL,
	[CompanyId] [int] NULL,
 CONSTRAINT [PK_TA_Tbl_WhatsAppScheduleFilters] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_tbl_WhatsAppScheduleStatus]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_tbl_WhatsAppScheduleStatus](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleId] [bigint] NOT NULL,
	[DurationFrom] [datetime] NOT NULL,
	[DurationTo] [datetime] NOT NULL,
	[SentDate] [datetime] NOT NULL,
	[Status] [bit] NOT NULL,
	[To_EmpID] [varchar](50) NULL,
	[MobileNumber] [varchar](max) NULL,
	[ErrorMessage] [nvarchar](max) NULL,
 CONSTRAINT [PK_TA_tbl_WhatsAppScheduleStatus] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_WhatsAppTemplate]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_WhatsAppTemplate](
	[Id] [bigint] IDENTITY(1,1) NOT NULL,
	[ScheduleId] [bigint] NOT NULL,
	[Subject] [varchar](300) NOT NULL,
	[WhatsAppContent] [varchar](max) NULL,
 CONSTRAINT [PK_TA_Tbl_WhatsAppoContent] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_WindowsServiceFlag]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_WindowsServiceFlag](
	[WindowsServiceFlag] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_YearClosure]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_YearClosure](
	[YearClosureId] [int] IDENTITY(1,1) NOT NULL,
	[Year_SettingID] [int] NOT NULL,
	[OrgLevelId] [int] NULL,
	[YearClosed] [nvarchar](50) NULL,
	[DateClosed] [datetime] NULL,
	[Employee_Id] [int] NOT NULL,
	[LeaveTypeID] [int] NOT NULL,
	[Carry_PrevYear] [decimal](18, 1) NOT NULL,
	[Current_Quota] [decimal](18, 1) NOT NULL,
	[Borrow_NextYear] [decimal](18, 1) NOT NULL,
	[Leave_Taken] [decimal](18, 1) NOT NULL,
	[Available_Leaves] [decimal](18, 1) NOT NULL,
	[Encashment] [decimal](18, 1) NOT NULL,
	[Time_Stamp] [datetime] NOT NULL,
	[Emp_ID] [int] NOT NULL,
 CONSTRAINT [PK_TA_Tbl_YearClosure] PRIMARY KEY CLUSTERED 
(
	[YearClosureId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TA_Tbl_YearSetting]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TA_Tbl_YearSetting](
	[YearSettings_Id] [int] IDENTITY(1,1) NOT NULL,
	[StartMonth] [nvarchar](50) NOT NULL,
	[StartYear] [int] NOT NULL,
	[EndMonth] [nvarchar](50) NOT NULL,
	[EndYear] [int] NOT NULL,
	[FromDate] [smalldatetime] NULL,
	[ToDate] [smalldatetime] NULL,
	[TimeStamp] [datetime] NOT NULL,
	[Emp_Id] [int] NOT NULL,
	[IsActive] [bit] NOT NULL,
	[isTimezoneEnable] [bit] NULL,
 CONSTRAINT [PK_TA_Tbl_YearSetting] PRIMARY KEY CLUSTERED 
(
	[YearSettings_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[tb_reportslist]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tb_reportslist](
	[nIndex] [int] IDENTITY(1,1) NOT NULL,
	[dtDateTime] [datetime] NULL,
	[m_Date] [int] NULL,
	[m_Time] [int] NULL,
	[nDeviceID] [int] NULL,
	[nEvent] [int] NULL,
	[nUserID] [int] NULL,
	[sUserName] [varchar](255) NULL,
	[nSource] [int] NULL,
	[bAdminCheck] [int] NULL,
	[nTNAEvent] [int] NULL,
	[strUniqueKey] [char](38) NOT NULL,
	[ipAddress] [varchar](30) NULL,
	[LogUID] [bigint] NULL,
 CONSTRAINT [PK__tb_repor__ACB000332B754518] PRIMARY KEY CLUSTERED 
(
	[nIndex] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[tbl_realtime_glog]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tbl_realtime_glog](
	[update_time] [datetime] NOT NULL,
	[device_id] [varchar](24) NULL,
	[user_id] [varchar](24) NULL,
	[verify_mode] [varchar](64) NULL,
	[io_mode] [varchar](32) NULL,
	[io_time] [datetime] NULL,
	[log_image] [varbinary](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Tbl_Sample]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Tbl_Sample](
	[id] [int] NULL,
	[_name] [varchar](10) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[Tbl_TempEmployeeShiftTime]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Tbl_TempEmployeeShiftTime](
	[Employee_Code_Id] [varchar](10) NULL,
	[Employee_Name] [varchar](250) NULL,
	[Shift_Date] [datetime] NULL,
	[Shift_InTime] [varchar](10) NULL,
	[Shift_OutTime] [varchar](10) NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TblAnalysisReport]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TblAnalysisReport](
	[Level] [varchar](max) NULL,
	[AbsentDate] [varchar](max) NULL,
	[LeaveDate] [varchar](max) NULL,
	[PermiDate] [varchar](max) NULL,
	[Employee Id] [int] NULL,
	[Employee Name] [varchar](max) NULL,
	[Total Late Days] [int] NULL,
	[Total Late Hours] [int] NULL,
	[PermissionHours] [int] NULL,
	[LeaveType] [varchar](100) NULL,
	[LeaveTypeTotalDays] [decimal](18, 1) NULL,
	[IntimationType] [varchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TempApprovalSettings]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TempApprovalSettings](
	[CompanyId] [int] NOT NULL,
	[OTApproval] [bit] NOT NULL,
	[LeaveSanction] [bit] NOT NULL,
	[PermissionSanction] [bit] NOT NULL,
	[ManualEntry] [bit] NOT NULL,
	[Emp_Id] [bigint] NOT NULL,
	[Roster] [bit] NULL,
	[Pattern] [bit] NOT NULL,
	[ODEntry] [bit] NULL,
	[Approval] [int] NULL,
	[shiftRequitionSaction] [bit] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TempEmployee]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TempEmployee](
	[Employee_Id] [int] NULL,
	[Leave_Sanc_Authority] [int] NULL,
	[Reporting_To] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TempTitle]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TempTitle](
	[TitleName] [nvarchar](50) NOT NULL,
	[TitleDescription] [nvarchar](250) NULL,
	[LevelID] [int] NULL,
	[LeavePolicyID] [int] NULL,
	[GradeID] [int] NULL,
	[Emp_Id] [int] NULL,
	[IsDeleted] [bit] NOT NULL,
	[Time_Stamp] [datetime] NULL,
	[TitleId] [int] NULL
) ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TempValues]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TempValues](
	[Flag] [char](4) NULL,
	[FROMDate] [datetime] NULL,
	[Todate] [datetime] NULL,
	[empAutoID] [bigint] NULL,
	[UserGroupName] [nvarchar](250) NULL,
	[EmployeeCardNo] [varchar](max) NULL,
	[DailyChkbox] [int] NULL,
	[PresentChkbox] [int] NULL,
	[Weekly] [int] NULL,
	[Quarterly] [int] NULL,
	[absent] [int] NULL,
	[isExport] [int] NULL,
	[Years] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Table [dbo].[TestingOndutyImport]    Script Date: 08-02-2025 13:42:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[TestingOndutyImport](
	[OndutyImportData] [xml] NULL,
	[EmpAutoID] [bigint] NULL,
	[UserGroup] [varchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161125-150414]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161125-150414] ON [dbo].[TA_Tbl_Category]
(
	[CategoryId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IX_TA_Tbl_Clk_RawData_CLK_FLAG]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IX_TA_Tbl_Clk_RawData_CLK_FLAG] ON [dbo].[TA_Tbl_Clk_RawData]
(
	[CLK_FLAG] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-20161125-130854]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161125-130854] ON [dbo].[TA_Tbl_Clk_RawData]
(
	[CLK_DEVICEID] ASC
)
INCLUDE([CLK_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_Clk_Date]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_Clk_Date] ON [dbo].[TA_Tbl_ClockDetails]
(
	[Clk_Date] ASC
)
INCLUDE([Clk_EmpId],[Clk_InDate],[Clk_InTime]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_ClockDetails_Clk_Date]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ClockDetails_Clk_Date] ON [dbo].[TA_Tbl_ClockDetails]
(
	[Clk_Date] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_ClockDetails_Clk_EmpId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ClockDetails_Clk_EmpId] ON [dbo].[TA_Tbl_ClockDetails]
(
	[Clk_EmpId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_ClockDetails_InPunches]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ClockDetails_InPunches] ON [dbo].[TA_Tbl_ClockDetails]
(
	[Clk_InDeviceId] ASC,
	[Clk_InPunchType] ASC,
	[Clk_Process] ASC
)
INCLUDE([Clk_EmpId],[Clk_InDate],[Clk_InTime],[Clk_Date]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_ClockDetails_InPunchesDiff]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ClockDetails_InPunchesDiff] ON [dbo].[TA_Tbl_ClockDetails]
(
	[Clk_EmpId] ASC,
	[Clk_InPunchType] ASC,
	[Clk_Process] ASC,
	[Clk_Date] ASC
)
INCLUDE([Clk_InDeviceId],[Clk_InDate],[Clk_InTime]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_TA_Tbl_ClockDetails_1]    Script Date: 08-02-2025 13:42:11 ******/
CREATE UNIQUE NONCLUSTERED INDEX [IX_TA_Tbl_ClockDetails_1] ON [dbo].[TA_Tbl_ClockDetails]
(
	[Clk_CompId] ASC,
	[Clk_EmpId] ASC,
	[Clk_Date] ASC,
	[Clk_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-20161125-142109]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161125-142109] ON [dbo].[TA_Tbl_ClockDetails]
(
	[Clk_InDeviceId] ASC,
	[Clk_InPunchType] ASC,
	[Clk_OutDeviceId] ASC,
	[Clk_OutPunchType] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-FirstAndLastMovements]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-FirstAndLastMovements] ON [dbo].[TA_Tbl_ClockDetails]
(
	[Clk_Date] ASC
)
INCLUDE([Clk_EmpId],[Clk_OutDate],[Clk_OutTime]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-FirstAndLastMovements2]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-FirstAndLastMovements2] ON [dbo].[TA_Tbl_ClockDetails]
(
	[Clk_Date] ASC
)
INCLUDE([Clk_EmpId],[Clk_InDeviceId],[Clk_InTime],[Clk_InPunchType],[Clk_OutDeviceId],[Clk_OutTime],[Clk_OutPunchType]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161201-175015]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161201-175015] ON [dbo].[Ta_Tbl_DataProcessCompanyLevelTemp]
(
	[LevelId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161201-174728]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161201-174728] ON [dbo].[TA_Tbl_DataProcessTemp]
(
	[ProcessDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-20161128-112019]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161128-112019] ON [dbo].[TA_Tbl_Demo]
(
	[DemoType] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_EmailScripts_ScriptType]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_EmailScripts_ScriptType] ON [dbo].[TA_TBL_EmailScripts]
(
	[ScriptType] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_Employee_Status_Isdeleted_Employee_FirstName]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_Employee_Status_Isdeleted_Employee_FirstName] ON [dbo].[TA_Tbl_Employee]
(
	[Employee_Status] ASC,
	[Isdeleted] ASC,
	[Employee_FirstName] ASC
)
INCLUDE([Employee_Id],[Employee_LastName],[Employee_Code_Id]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_EmployeeFirstName]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_EmployeeFirstName] ON [dbo].[TA_Tbl_Employee]
(
	[Employee_FirstName] ASC
)
INCLUDE([Employee_Code_Id]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_MusterRoll_Employee_Status_InActiveDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_MusterRoll_Employee_Status_InActiveDate] ON [dbo].[TA_Tbl_Employee]
(
	[Employee_Status] ASC,
	[InActiveDate] ASC
)
INCLUDE([SwipeCardNo]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_Employee_Employee_Code_Id]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Employee_Employee_Code_Id] ON [dbo].[TA_Tbl_Employee]
(
	[Employee_Code_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_Employee_Employee_FirstName]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Employee_Employee_FirstName] ON [dbo].[TA_Tbl_Employee]
(
	[Employee_FirstName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Employee_Employee_Status]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Employee_Employee_Status] ON [dbo].[TA_Tbl_Employee]
(
	[Employee_Status] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Employee_Isdeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Employee_Isdeleted] ON [dbo].[TA_Tbl_Employee]
(
	[Isdeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Employee_Report_Exclude]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Employee_Report_Exclude] ON [dbo].[TA_Tbl_Employee]
(
	[Report_Exclude] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_Employee_SwipeCardNo]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Employee_SwipeCardNo] ON [dbo].[TA_Tbl_Employee]
(
	[SwipeCardNo] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-20150526-184409]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20150526-184409] ON [dbo].[TA_Tbl_Employee]
(
	[Employee_FirstName] ASC,
	[Employee_MiddleName] ASC,
	[Employee_LastName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-EmployeeDetailsForSearch]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-EmployeeDetailsForSearch] ON [dbo].[TA_Tbl_Employee]
(
	[Gender] ASC,
	[CompOff_Eligible] ASC,
	[OT_Eligible] ASC
)
INCLUDE([Employee_Id]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-MonthlyAttendance]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-MonthlyAttendance] ON [dbo].[TA_Tbl_Employee]
(
	[Isdeleted] ASC,
	[SwipeCardNo] ASC
)
INCLUDE([Employee_Id],[Employee_Code_Id]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_CategoryId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_CategoryId] ON [dbo].[TA_Tbl_EmployeeCategory]
(
	[CategoryId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EffectiveDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_EffectiveDate] ON [dbo].[TA_Tbl_EmployeeCategory]
(
	[EffectiveDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EmployeeId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_EmployeeId] ON [dbo].[TA_Tbl_EmployeeCategory]
(
	[EmployeeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20150605-152819]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20150605-152819] ON [dbo].[TA_Tbl_EmployeeCategory]
(
	[EmployeeId] ASC,
	[CategoryId] ASC,
	[EffectiveDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_DesignationId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_DesignationId] ON [dbo].[TA_Tbl_EmployeeDesignation]
(
	[DesignationID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EffectiveDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_EffectiveDate] ON [dbo].[TA_Tbl_EmployeeDesignation]
(
	[EffectiveDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EmployeeId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_EmployeeId] ON [dbo].[TA_Tbl_EmployeeDesignation]
(
	[EmployeeID] ASC
)
INCLUDE([DesignationID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20150605-152538]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20150605-152538] ON [dbo].[TA_Tbl_EmployeeDesignation]
(
	[EmployeeID] ASC,
	[DesignationID] ASC,
	[EffectiveDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EffectiveDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_EffectiveDate] ON [dbo].[TA_Tbl_EmployeeLevel]
(
	[EffectiveDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EmployeeId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_EmployeeId] ON [dbo].[TA_Tbl_EmployeeLevel]
(
	[EmployeeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_LevelId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_LevelId] ON [dbo].[TA_Tbl_EmployeeLevel]
(
	[LevelId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20150605-151315]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20150605-151315] ON [dbo].[TA_Tbl_EmployeeLevel]
(
	[EmployeeId] ASC,
	[EffectiveDate] ASC
)
INCLUDE([LevelId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_EmployeeLingual_EmployeeId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_EmployeeLingual_EmployeeId] ON [dbo].[TA_Tbl_EmployeeLingual]
(
	[EmployeeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_BasicPay]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_BasicPay] ON [dbo].[TA_Tbl_EmployeePay]
(
	[BasicPay] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EffectiveDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_EffectiveDate] ON [dbo].[TA_Tbl_EmployeePay]
(
	[EffectiveDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EmployeeId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_EmployeeId] ON [dbo].[TA_Tbl_EmployeePay]
(
	[EmployeeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_Effective]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_Effective] ON [dbo].[TA_Tbl_EmployeeType]
(
	[EffectiveDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_EmployeeId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_EmployeeId] ON [dbo].[TA_Tbl_EmployeeType]
(
	[EmployeeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TypeId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TypeId] ON [dbo].[TA_Tbl_EmployeeType]
(
	[TypeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Encashment_EmployeeId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Encashment_EmployeeId] ON [dbo].[TA_Tbl_Encashment]
(
	[EmployeeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Encashment_Isdeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Encashment_Isdeleted] ON [dbo].[TA_Tbl_Encashment]
(
	[Isdeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Entrance_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Entrance_IsDeleted] ON [dbo].[TA_Tbl_Entrance]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Entrance_OrgLevel_Id]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Entrance_OrgLevel_Id] ON [dbo].[TA_Tbl_Entrance]
(
	[OrgLevel_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161122-162652]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161122-162652] ON [dbo].[TA_Tbl_Entrance_INOUTDetails]
(
	[Entrance_Id] ASC
)
INCLUDE([Reader_Id]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161122-162704]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161122-162704] ON [dbo].[TA_Tbl_Entrance_INOUTDetails]
(
	[Reader_Id] ASC
)
INCLUDE([Entrance_Id]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161125-123204]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161125-123204] ON [dbo].[TA_Tbl_Entrance_INOUTDetails]
(
	[Reader_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Grade_Grade_Level]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Grade_Grade_Level] ON [dbo].[TA_Tbl_Grade]
(
	[Grade_Level] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Grade_Isdeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Grade_Isdeleted] ON [dbo].[TA_Tbl_Grade]
(
	[Isdeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Holiday_Holiday_FromDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Holiday_Holiday_FromDate] ON [dbo].[TA_Tbl_Holiday]
(
	[Holiday_FromDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Holiday_Holiday_ToDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Holiday_Holiday_ToDate] ON [dbo].[TA_Tbl_Holiday]
(
	[Holiday_ToDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_Holiday_Holiday_Type]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Holiday_Holiday_Type] ON [dbo].[TA_Tbl_Holiday]
(
	[Holiday_Type] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Holiday_Isdeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Holiday_Isdeleted] ON [dbo].[TA_Tbl_Holiday]
(
	[Isdeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161125-113943]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161125-113943] ON [dbo].[TA_Tbl_HolidayChildTable]
(
	[LevelId] ASC,
	[Holiday_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_HolidaySettings_YearSettingId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_HolidaySettings_YearSettingId] ON [dbo].[TA_Tbl_HolidaySettings]
(
	[YearSettingId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [ID_LeaveApplicationID]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [ID_LeaveApplicationID] ON [dbo].[TA_Tbl_LeaveApplicationExists]
(
	[LeaveApplicationId] ASC,
	[Employee_Id] ASC,
	[Leave_ApplicationDate] ASC,
	[Leave_FromDate] ASC,
	[Leave_ToDate] ASC,
	[Leave_SessionFrom] ASC,
	[Leave_SessionTo] ASC,
	[Status] ASC,
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_LeavePolicy_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_LeavePolicy_IsDeleted] ON [dbo].[TA_Tbl_LeavePolicy]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_LeavePolicyDetails_LeaveType_Id]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_LeavePolicyDetails_LeaveType_Id] ON [dbo].[TA_Tbl_LeavePolicyDetails]
(
	[LeaveType_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_LeavePolicyDetails_Policy_Id]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_LeavePolicyDetails_Policy_Id] ON [dbo].[TA_Tbl_LeavePolicyDetails]
(
	[Policy_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_LeaveType_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_LeaveType_IsDeleted] ON [dbo].[TA_Tbl_LeaveType]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Level_isDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Level_isDeleted] ON [dbo].[TA_Tbl_Level]
(
	[isDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Level_parenLevelID]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Level_parenLevelID] ON [dbo].[TA_Tbl_Level]
(
	[parentLevelID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_LevelDetails_isDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_LevelDetails_isDeleted] ON [dbo].[Ta_Tbl_levelDetails]
(
	[isDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_LevelDetails_ParentId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_LevelDetails_ParentId] ON [dbo].[Ta_Tbl_levelDetails]
(
	[parentId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_LevelRights_LevelId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_LevelRights_LevelId] ON [dbo].[TA_Tbl_LevelRights]
(
	[LevelId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20150605-160521]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20150605-160521] ON [dbo].[TA_Tbl_LevelRights]
(
	[GroupId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-Levelid-Groupid]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-Levelid-Groupid] ON [dbo].[TA_Tbl_LevelRights]
(
	[LevelId] ASC,
	[GroupId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Lookup_Isdeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Lookup_Isdeleted] ON [dbo].[TA_Tbl_Lookup]
(
	[Isdeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_ManualTimeEntry_ManualTimeEntry_InDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ManualTimeEntry_ManualTimeEntry_InDate] ON [dbo].[TA_Tbl_ManualTimeEntry]
(
	[ManualTimeEntry_InDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_ManualTimeEntry_ManualTimeEntry_InTime]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ManualTimeEntry_ManualTimeEntry_InTime] ON [dbo].[TA_Tbl_ManualTimeEntry]
(
	[ManualTimeEntry_InTime] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_ManualTimeEntry_ManualTimeEntry_OutDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ManualTimeEntry_ManualTimeEntry_OutDate] ON [dbo].[TA_Tbl_ManualTimeEntry]
(
	[ManualTimeEntry_OutDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_ManualTimeEntry_ManualTimeEntry_OutTime]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ManualTimeEntry_ManualTimeEntry_OutTime] ON [dbo].[TA_Tbl_ManualTimeEntry]
(
	[ManualTimeEntry_OutTime] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-20161125-132515]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161125-132515] ON [dbo].[TA_Tbl_ManualTimeEntry]
(
	[ManualTimeEntry_InPunchType] ASC,
	[ManualTimeEntry_OutPunchType] ASC,
	[ManualTimeEntry_InReaderID] ASC,
	[ManualTimeEntry_OutReaderID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Monthclosure_OrgLevel_Id]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Monthclosure_OrgLevel_Id] ON [dbo].[TA_Tbl_MonthClosure]
(
	[OrgLevel_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_NewsEvents_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_NewsEvents_IsDeleted] ON [dbo].[TA_Tbl_NewsEvents]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_NewsEvents_NewsEventActive]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_NewsEvents_NewsEventActive] ON [dbo].[TA_Tbl_NewsEvents]
(
	[NewsEventActive] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_NewsEvents_NewsEventFromDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_NewsEvents_NewsEventFromDate] ON [dbo].[TA_Tbl_NewsEvents]
(
	[NewsEventFromDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_NewsEvents_NewsEventToDate]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_NewsEvents_NewsEventToDate] ON [dbo].[TA_Tbl_NewsEvents]
(
	[NewsEventToDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_parentId_ParentIdForSubMenu]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_parentId_ParentIdForSubMenu] ON [dbo].[TA_Tbl_Page]
(
	[parentId] ASC,
	[ParentIdForSubMenu] ASC
)
INCLUDE([pageId],[displayName],[path],[orderBy]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_PayrollProcessDetails_Employee_Id]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_PayrollProcessDetails_Employee_Id] ON [dbo].[TA_Tbl_PayrollProcessDetails]
(
	[Employee_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_PayrollProcessLeaveDetails_Employee_Id]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_PayrollProcessLeaveDetails_Employee_Id] ON [dbo].[TA_Tbl_PayrollProcessLeaveDetails]
(
	[Employee_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_PermanentShiftAllocation_DateShift]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_PermanentShiftAllocation_DateShift] ON [dbo].[TA_Tbl_PermanentShiftAllocation]
(
	[DateShift] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_PermanentShiftAllocation_EmployeeId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_PermanentShiftAllocation_EmployeeId] ON [dbo].[TA_Tbl_PermanentShiftAllocation]
(
	[EmployeeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_PermanentShiftAllocation_Month]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_PermanentShiftAllocation_Month] ON [dbo].[TA_Tbl_PermanentShiftAllocation]
(
	[Month] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_PermanentShiftAllocation_Year]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_PermanentShiftAllocation_Year] ON [dbo].[TA_Tbl_PermanentShiftAllocation]
(
	[Year] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [DailyDeviation]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [DailyDeviation] ON [dbo].[TA_Tbl_Permission]
(
	[IsDeleted] ASC,
	[Permission_Date] ASC
)
INCLUDE([Employee_Id],[Permission_Status],[Permission_Hours]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Permission_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Permission_IsDeleted] ON [dbo].[TA_Tbl_Permission]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Permission_Permission_FromTime]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Permission_Permission_FromTime] ON [dbo].[TA_Tbl_Permission]
(
	[Permission_FromTime] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_Permission_Permission_Status]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Permission_Permission_Status] ON [dbo].[TA_Tbl_Permission]
(
	[Permission_Status] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Permission_Permission_ToTime]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Permission_Permission_ToTime] ON [dbo].[TA_Tbl_Permission]
(
	[Permission_ToTime] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_Date]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_Date] ON [dbo].[TA_Tbl_ProcessedData]
(
	[Date] ASC
)
INCLUDE([Employee_Code_Id],[Shift_Id],[InTime],[OutTime]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_MusterRoll_Date]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_MusterRoll_Date] ON [dbo].[TA_Tbl_ProcessedData]
(
	[Date] ASC
)
INCLUDE([Employee_Code_Id],[Shift_Id],[InTime],[OutTime],[HrsWork],[Attendance],[LateInMins],[EarlyOutMins],[OtMins],[TotalDays],[FNAttendanceCode],[ANAttendanceCode],[InNotation],[OutNotation]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_ProcessedData_Date]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ProcessedData_Date] ON [dbo].[TA_Tbl_ProcessedData]
(
	[Date] ASC
)
INCLUDE([Employee_Code_Id]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_ProcessedData_Employee_Code_Id]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ProcessedData_Employee_Code_Id] ON [dbo].[TA_Tbl_ProcessedData]
(
	[Employee_Code_Id] ASC
)
INCLUDE([Date]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161125-154218]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161125-154218] ON [dbo].[TA_Tbl_ProcessedData]
(
	[ProcessFlag] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-FirstAndLastMovements]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-FirstAndLastMovements] ON [dbo].[TA_Tbl_ProcessedData]
(
	[Date] ASC
)
INCLUDE([Employee_Code_Id],[Shift_Id],[InTime],[OutTime]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-MonthlyAttendance]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-MonthlyAttendance] ON [dbo].[TA_Tbl_ProcessedData]
(
	[ProcessFlag] ASC,
	[Date] ASC
)
INCLUDE([Process_Rec_ID],[Employee_Code_Id],[Shift_Id],[InTime],[OutTime],[HrsWork],[NormOT],[OffOT],[HolOT],[EarlyOut],[LateIn],[Attendance],[WorkHrs],[LateInMins],[EarlyOutMins],[OtMins],[OvertimeStatus],[Status],[FNAttendanceCode],[ANAttendanceCode],[BreakHrs],[LunchHrs],[BreakHrsInMins],[LunchHrsInMins],[InNotation],[OutNotation]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-MonthlyAttendance1]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-MonthlyAttendance1] ON [dbo].[TA_Tbl_ProcessedData]
(
	[FNAttendanceCode] ASC
)
INCLUDE([Process_Rec_ID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-MonthlyAttendance2]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-MonthlyAttendance2] ON [dbo].[TA_Tbl_ProcessedData]
(
	[Date] ASC
)
INCLUDE([Employee_Code_Id],[Shift_Id]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_PunchTypes_Isdeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_PunchTypes_Isdeleted] ON [dbo].[TA_Tbl_PunchTypes]
(
	[Isdeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_TA_Tbl_PunchTypes_Value]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IX_TA_Tbl_PunchTypes_Value] ON [dbo].[TA_Tbl_PunchTypes]
(
	[Value] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161125-141659]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161125-141659] ON [dbo].[TA_Tbl_PunchTypes]
(
	[Terminal_Id] ASC,
	[PunchType_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Shift_Isdeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Shift_Isdeleted] ON [dbo].[TA_Tbl_Shift]
(
	[Isdeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_Shift_Shift_EndTime]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Shift_Shift_EndTime] ON [dbo].[TA_Tbl_Shift]
(
	[Shift_EndTime] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_Shift_Shift_StartTime]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Shift_Shift_StartTime] ON [dbo].[TA_Tbl_Shift]
(
	[Shift_StartTime] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_ShiftPattern_Isdeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ShiftPattern_Isdeleted] ON [dbo].[TA_Tbl_ShiftPattern]
(
	[Isdeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_ShiftRoaster_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_ShiftRoaster_IsDeleted] ON [dbo].[TA_Tbl_ShiftRoaster]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_TemporaryShiftAllocation_DateShift]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_TemporaryShiftAllocation_DateShift] ON [dbo].[TA_Tbl_TemporaryShiftAllocation]
(
	[DateShift] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_TemporaryShiftAllocation_EmployeeId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_TemporaryShiftAllocation_EmployeeId] ON [dbo].[TA_Tbl_TemporaryShiftAllocation]
(
	[EmployeeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_TemporaryShiftAllocation_Month]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_TemporaryShiftAllocation_Month] ON [dbo].[TA_Tbl_TemporaryShiftAllocation]
(
	[Month] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_TemporaryShiftAllocation_Year]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_TemporaryShiftAllocation_Year] ON [dbo].[TA_Tbl_TemporaryShiftAllocation]
(
	[Year] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IDX_TA_Tbl_TempPayrollProcessDetails_Employee_Id]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_TempPayrollProcessDetails_Employee_Id] ON [dbo].[TA_Tbl_TempPayrollProcessDetails]
(
	[Employee_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161128-111728]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161128-111728] ON [dbo].[TA_Tbl_TempShiftAllocation]
(
	[LoginEmployeeId] ASC
)
INCLUDE([EmpID]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_TemWeekday_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_TemWeekday_IsDeleted] ON [dbo].[TA_Tbl_TemWeekday]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Terminal_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Terminal_IsDeleted] ON [dbo].[TA_Tbl_Terminal]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IX_TA_Tbl_Terminal]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IX_TA_Tbl_Terminal] ON [dbo].[TA_Tbl_Terminal]
(
	[Terminal_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [IX_TA_Tbl_Terminal_ReaderId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IX_TA_Tbl_Terminal_ReaderId] ON [dbo].[TA_Tbl_Terminal]
(
	[Terminal_ReaderID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_TerminalDatatype_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_TerminalDatatype_IsDeleted] ON [dbo].[TA_tbl_TerminalDatatype]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_TerminalMapping_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_TerminalMapping_IsDeleted] ON [dbo].[TA_Tbl_TerminalMapping]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_Title_IsDeleted]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_Title_IsDeleted] ON [dbo].[TA_Tbl_Title]
(
	[IsDeleted] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-20150605-155148]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20150605-155148] ON [dbo].[TA_Tbl_Title]
(
	[TitleId] ASC,
	[TitleName] ASC,
	[GradeID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161125-150933]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161125-150933] ON [dbo].[TA_Tbl_Type]
(
	[TypeId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex_Groupid]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex_Groupid] ON [dbo].[TA_Tbl_Usergroup]
(
	[groupId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
SET ANSI_PADDING ON
GO
/****** Object:  Index [NonClusteredIndex-20150605-153313]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20150605-153313] ON [dbo].[TA_Tbl_Usergroup]
(
	[isDeleted] ASC,
	[groupName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [NonClusteredIndex-20161128-103818]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [NonClusteredIndex-20161128-103818] ON [dbo].[TA_Tbl_userRights]
(
	[pageGroupId] ASC
)
INCLUDE([groupId],[addPrv],[modifyPrv],[deletePrv],[viewPrv]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_YearClosure_OrgLevelId]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_YearClosure_OrgLevelId] ON [dbo].[TA_Tbl_YearClosure]
(
	[OrgLevelId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_YearClosure_Year_SettingID]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_YearClosure_Year_SettingID] ON [dbo].[TA_Tbl_YearClosure]
(
	[Year_SettingID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
/****** Object:  Index [IDX_TA_Tbl_YearSetting_IsActive]    Script Date: 08-02-2025 13:42:11 ******/
CREATE NONCLUSTERED INDEX [IDX_TA_Tbl_YearSetting_IsActive] ON [dbo].[TA_Tbl_YearSetting]
(
	[IsActive] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TA_Tbl_ApprovalSettings] ADD  DEFAULT ((0)) FOR [webClockInOut]
GO
ALTER TABLE [dbo].[TA_Tbl_AttandanceCode] ADD  CONSTRAINT [DF_TA_Tbl_AttandanceCode_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_AuditOperation] ADD  CONSTRAINT [DF_TA_Tbl_AuditOpr_OprDate]  DEFAULT (getdate()) FOR [OprDate]
GO
ALTER TABLE [dbo].[TA_Tbl_AutoShiftConfiguration] ADD  CONSTRAINT [DF_TA_Tbl_AutoShiftConfiguration_CreatedDate]  DEFAULT (getdate()) FOR [CreatedDate]
GO
ALTER TABLE [dbo].[TA_Tbl_AutoShiftConfiguration] ADD  CONSTRAINT [DF_TA_Tbl_AutoShiftConfiguration_ModifiedDate]  DEFAULT (getdate()) FOR [ModifiedDate]
GO
ALTER TABLE [dbo].[TA_Tbl_AutoShiftConfiguration] ADD  CONSTRAINT [Defaultconstraints5]  DEFAULT ((0)) FOR [IsImport]
GO
ALTER TABLE [dbo].[Ta_tbl_BlockedEmployees] ADD  DEFAULT ((0)) FOR [Daily]
GO
ALTER TABLE [dbo].[Ta_tbl_BlockedEmployees] ADD  DEFAULT ((0)) FOR [DayWise]
GO
ALTER TABLE [dbo].[Ta_tbl_BlockedEmployees] ADD  DEFAULT ((0)) FOR [WeekWise]
GO
ALTER TABLE [dbo].[Ta_tbl_BlockedEmployees] ADD  DEFAULT ((0)) FOR [QuarterWise]
GO
ALTER TABLE [dbo].[Ta_tbl_BlockedEmployees] ADD  DEFAULT ((0)) FOR [ContinuousDayWise]
GO
ALTER TABLE [dbo].[Ta_tbl_BlockedEmployeesHistory] ADD  DEFAULT ((0)) FOR [Daily]
GO
ALTER TABLE [dbo].[Ta_tbl_BlockedEmployeesHistory] ADD  DEFAULT ((0)) FOR [DayWise]
GO
ALTER TABLE [dbo].[Ta_tbl_BlockedEmployeesHistory] ADD  DEFAULT ((0)) FOR [WeekWise]
GO
ALTER TABLE [dbo].[Ta_tbl_BlockedEmployeesHistory] ADD  DEFAULT ((0)) FOR [QuarterWise]
GO
ALTER TABLE [dbo].[Ta_tbl_BlockedEmployeesHistory] ADD  DEFAULT ((0)) FOR [ContinuousDayWise]
GO
ALTER TABLE [dbo].[TA_Tbl_Clk_RawData] ADD  CONSTRAINT [DF_TA_Tbl_Clk_RawData_CLK_PROCESS]  DEFAULT ((0)) FOR [CLK_PROCESS]
GO
ALTER TABLE [dbo].[TA_Tbl_Clk_RawData] ADD  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_ClockDetails] ADD  CONSTRAINT [DF_TA_Tbl_ClockDetails_IsVoid]  DEFAULT ((0)) FOR [IsVoid]
GO
ALTER TABLE [dbo].[TA_Tbl_Compensation] ADD  CONSTRAINT [DF__TA_Tbl_Co__TimeS__5CEF0720]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_EmailSchedule] ADD  CONSTRAINT [DF_TA_Tbl_EmailSchedule_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_EmailSchedule] ADD  DEFAULT ((0)) FOR [TimeSendOption]
GO
ALTER TABLE [dbo].[TA_Tbl_Emp_LeavePolicy] ADD  CONSTRAINT [TA_Tbl_Emp_LeavePolicy_AutoCredit]  DEFAULT ((0)) FOR [AutoCredit]
GO
ALTER TABLE [dbo].[TA_Tbl_Emp_LeavePolicyDetails] ADD  DEFAULT ((0)) FOR [MaxDays_Month]
GO
ALTER TABLE [dbo].[ta_tbl_emp_LeaveTypedetails] ADD  DEFAULT ((0)) FOR [IsDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_EmpChildrenDetails] ADD  CONSTRAINT [DF_TA_Tbl_EmpChildrenDetails_Time_stamp]  DEFAULT (getdate()) FOR [Time_stamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Employee] ADD  CONSTRAINT [DF_TA_Tbl_Employee_DateofBirth]  DEFAULT (NULL) FOR [DateofBirth]
GO
ALTER TABLE [dbo].[TA_Tbl_Employee] ADD  CONSTRAINT [DF_TA_Tbl_Employee_DateofBirth_Record]  DEFAULT (NULL) FOR [DateofBirth_Record]
GO
ALTER TABLE [dbo].[TA_Tbl_Employee] ADD  CONSTRAINT [DF_TA_Tbl_Employee_Passport_expirydate]  DEFAULT (NULL) FOR [Passport_expirydate]
GO
ALTER TABLE [dbo].[TA_Tbl_Employee] ADD  CONSTRAINT [DF_TA_Tbl_Employee_Visa_expirydate]  DEFAULT (NULL) FOR [Visa_expirydate]
GO
ALTER TABLE [dbo].[TA_Tbl_Employee] ADD  CONSTRAINT [DF_TA_Tbl_Employee_Anniversary_Date]  DEFAULT (NULL) FOR [Anniversary_Date]
GO
ALTER TABLE [dbo].[TA_Tbl_Employee] ADD  CONSTRAINT [DF_TA_Tbl_Employee_DateOfJoining]  DEFAULT (NULL) FOR [DateOfJoining]
GO
ALTER TABLE [dbo].[TA_Tbl_Employee] ADD  CONSTRAINT [DF_TA_Tbl_Employee_Time_Stamp]  DEFAULT (getdate()) FOR [Time_Stamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Employee] ADD  CONSTRAINT [Defaultconstraint]  DEFAULT ((0)) FOR [MobileClockInOUt]
GO
ALTER TABLE [dbo].[TA_Tbl_Employee] ADD  CONSTRAINT [Defaultconstraint2]  DEFAULT ((0)) FOR [SMSEnabled]
GO
ALTER TABLE [dbo].[TA_Tbl_Employee] ADD  CONSTRAINT [DF__TA_Tbl_Em__IsMyP__5C07668D]  DEFAULT ((0)) FOR [IsMyProfileRqrd]
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeBonusLeave] ADD  CONSTRAINT [DF_TA_Tbl_EmployeeBonusLeave_Timestamp]  DEFAULT (getdate()) FOR [Timestamp]
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeCategory] ADD  CONSTRAINT [DF_TA_Tbl_EmployeeCategory_Timestamp]  DEFAULT (getdate()) FOR [Timestamp]
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeDesignation] ADD  CONSTRAINT [DF_TA_Tbl_EmployeeDesignation_Timestamp]  DEFAULT (getdate()) FOR [Timestamp]
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeLevel] ADD  CONSTRAINT [DF_TA_Tbl_EmployeeLevel_Timestamp]  DEFAULT (getdate()) FOR [Timestamp]
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeePay] ADD  CONSTRAINT [DF_TA_Tbl_EmployeePay_Timestamp]  DEFAULT (getdate()) FOR [Timestamp]
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeType] ADD  CONSTRAINT [DF_TA_Tbl_EmployeeType_Timestamp]  DEFAULT (getdate()) FOR [Timestamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Encashment] ADD  CONSTRAINT [DF_TA_Tbl_Encashment_DateOfEncashment]  DEFAULT (getdate()) FOR [DateOfEncashment]
GO
ALTER TABLE [dbo].[TA_Tbl_Entrance] ADD  CONSTRAINT [DF_TA_Tbl_Entrance_Time_Stamp]  DEFAULT (getdate()) FOR [Time_Stamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Entrance] ADD  DEFAULT ((0)) FOR [Flag]
GO
ALTER TABLE [dbo].[TA_Tbl_ErrLog] ADD  CONSTRAINT [DF_TA_Tbl_ErrLog_TimestampRec]  DEFAULT (getdate()) FOR [TimestampRec]
GO
ALTER TABLE [dbo].[TA_Tbl_ErrorLog_ClockRawData] ADD  CONSTRAINT [DF_TA_Tbl_ErrorLog_ClockRawData_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_ErrorLog_ProcessedData] ADD  CONSTRAINT [DF_TA_Tbl_ErrorLog_ProcessedData_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Grade] ADD  CONSTRAINT [DF_TA_Tbl_Grade_Time_Stamp]  DEFAULT (getdate()) FOR [Time_Stamp]
GO
ALTER TABLE [dbo].[Ta_Tbl_ImportMasterData] ADD  CONSTRAINT [DF_Ta_Tbl_ImportMasterData_Employee_Status]  DEFAULT ((1)) FOR [Employee_Status]
GO
ALTER TABLE [dbo].[Ta_Tbl_LastUpdationofFile_Samsung] ADD  CONSTRAINT [DF_Ta_Tbl_LastUpdationofFile_Samsung_UpdationDatetime]  DEFAULT (getdate()) FOR [UpdationDatetime]
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveAnalysisNotes] ADD  CONSTRAINT [DF_TA_Tbl_LeaveAnalysisNotes_DateInserted_1]  DEFAULT (getdate()) FOR [DateInserted]
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveAnalysisNotes] ADD  CONSTRAINT [DF_TA_Tbl_LeaveAnalysisNotes_IsDeleted_1]  DEFAULT ((0)) FOR [IsDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveConversation] ADD  CONSTRAINT [DF_TA_Tbl_LeaveConversation_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePolicy] ADD  CONSTRAINT [DF_TA_Tbl_LeavePolicy_Time_Stamp]  DEFAULT (getdate()) FOR [Time_Stamp]
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePolicyDetails] ADD  CONSTRAINT [DF_TA_Tbl_LeavePolicyDetails_ApplicableAfterDays]  DEFAULT ((0)) FOR [ApplicableAfterDays]
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePolicyDetails] ADD  CONSTRAINT [DF_TA_Tbl_LeavePolicyDetails_Time_stamp]  DEFAULT (getdate()) FOR [Time_stamp]
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePolicyDetails] ADD  DEFAULT ((0)) FOR [AvailServicePeriod]
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePrivateNotes] ADD  CONSTRAINT [DF_TA_TA_Tbl_LeavePrivateNotes_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveType] ADD  CONSTRAINT [DF_TA_Tbl_LeaveType_IsDeleted]  DEFAULT ((1)) FOR [IsDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveType] ADD  DEFAULT ((0)) FOR [CountFactor]
GO
ALTER TABLE [dbo].[TA_Tbl_Level] ADD  CONSTRAINT [DF_TA_Tbl_Level_parentLevelID]  DEFAULT ((0)) FOR [parentLevelID]
GO
ALTER TABLE [dbo].[TA_Tbl_Level] ADD  DEFAULT ((0)) FOR [isDeleted]
GO
ALTER TABLE [dbo].[Ta_Tbl_levelDetails] ADD  DEFAULT ((0)) FOR [isDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_Lookup] ADD  CONSTRAINT [DF_TA_Tbl_Lookup_Time_stamp]  DEFAULT (getdate()) FOR [Time_stamp]
GO
ALTER TABLE [dbo].[TA_Tbl_MailConfiguration] ADD  DEFAULT ((0)) FOR [isRequired]
GO
ALTER TABLE [dbo].[TA_Tbl_ManualTimeEntry] ADD  CONSTRAINT [DF_TA_Tbl_ManualTimeEntry_ManualTimeEntry_InDate]  DEFAULT (NULL) FOR [ManualTimeEntry_InDate]
GO
ALTER TABLE [dbo].[TA_Tbl_ManualTimeEntry] ADD  CONSTRAINT [DF_TA_Tbl_ManualTimeEntry_ManualTimeEntry_OutDate]  DEFAULT (NULL) FOR [ManualTimeEntry_OutDate]
GO
ALTER TABLE [dbo].[TA_Tbl_NewsEvents] ADD  CONSTRAINT [DF_TA_Tbl_NewsEvents_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_OndutyEntry] ADD  DEFAULT ((0)) FOR [isImported]
GO
ALTER TABLE [dbo].[TA_Tbl_OtType] ADD  CONSTRAINT [DF_TA_Tbl_OtType_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_OverTimeStatus] ADD  DEFAULT (getdate()) FOR [Modified_On]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day1Shift]  DEFAULT ((0)) FOR [Day1Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day2Shift]  DEFAULT ((0)) FOR [Day2Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day3Shift]  DEFAULT ((0)) FOR [Day3Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day4Shift]  DEFAULT ((0)) FOR [Day4Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day5Shift]  DEFAULT ((0)) FOR [Day5Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day6Shift]  DEFAULT ((0)) FOR [Day6Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day7Shift]  DEFAULT ((0)) FOR [Day7Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day8Shift]  DEFAULT ((0)) FOR [Day8Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day9Shift]  DEFAULT ((0)) FOR [Day9Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day10Shift]  DEFAULT ((0)) FOR [Day10Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day11Shift]  DEFAULT ((0)) FOR [Day11Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day12Shift]  DEFAULT ((0)) FOR [Day12Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day13Shift]  DEFAULT ((0)) FOR [Day13Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day14Shift]  DEFAULT ((0)) FOR [Day14Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day15Shift]  DEFAULT ((0)) FOR [Day15Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day16Shift]  DEFAULT ((0)) FOR [Day16Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day17Shift]  DEFAULT ((0)) FOR [Day17Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day18Shift]  DEFAULT ((0)) FOR [Day18Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day19Shift]  DEFAULT ((0)) FOR [Day19Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day20Shift]  DEFAULT ((0)) FOR [Day20Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day21Shift]  DEFAULT ((0)) FOR [Day21Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day22Shift]  DEFAULT ((0)) FOR [Day22Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day23Shift]  DEFAULT ((0)) FOR [Day23Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day24Shift]  DEFAULT ((0)) FOR [Day24Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day25Shift]  DEFAULT ((0)) FOR [Day25Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day26Shift]  DEFAULT ((0)) FOR [Day26Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day27Shift]  DEFAULT ((0)) FOR [Day27Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day28Shift]  DEFAULT ((0)) FOR [Day28Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day29Shift]  DEFAULT ((0)) FOR [Day29Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day30Shift]  DEFAULT ((0)) FOR [Day30Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_Day31Shift]  DEFAULT ((0)) FOR [Day31Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_PermanentShiftAllocation_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Permission] ADD  CONSTRAINT [DF_TA_Tbl_Permission_Permission_AppliedDate]  DEFAULT (getdate()) FOR [Permission_AppliedDate]
GO
ALTER TABLE [dbo].[TA_Tbl_Permission] ADD  DEFAULT ((0)) FOR [UnPlanned]
GO
ALTER TABLE [dbo].[Ta_tbl_PolicyConfiguration] ADD  DEFAULT ((1)) FOR [Daily_Rrd]
GO
ALTER TABLE [dbo].[Ta_tbl_PolicyConfiguration] ADD  DEFAULT ((1)) FOR [Daily_Hrs]
GO
ALTER TABLE [dbo].[Ta_tbl_PolicyConfiguration] ADD  DEFAULT ((1)) FOR [Day_Rqrd]
GO
ALTER TABLE [dbo].[Ta_tbl_PolicyConfiguration] ADD  DEFAULT ((1)) FOR [Weekly_Rqrd]
GO
ALTER TABLE [dbo].[Ta_tbl_PolicyConfiguration] ADD  DEFAULT ((1)) FOR [Quarterly_Rqrd]
GO
ALTER TABLE [dbo].[Ta_tbl_PolicyConfiguration] ADD  DEFAULT ((1)) FOR [Cont_Absent]
GO
ALTER TABLE [dbo].[ta_tbl_PrevPermissionDetails_EastMan] ADD  DEFAULT (getdate()) FOR [Timestamp]
GO
ALTER TABLE [dbo].[TA_Tbl_ProcessedData] ADD  CONSTRAINT [DF_TA_Tbl_ProcessedData_ProcessFlag]  DEFAULT ((0)) FOR [ProcessFlag]
GO
ALTER TABLE [dbo].[TA_Tbl_Project] ADD  CONSTRAINT [DF_TA_Tbl_Project_IsDeleted]  DEFAULT ((0)) FOR [IsDeleted]
GO
ALTER TABLE [dbo].[ta_tbl_PunchtypeRemarks] ADD  CONSTRAINT [DF__ta_tbl_Pu__Times__403C232B]  DEFAULT (getdate()) FOR [Timestamp]
GO
ALTER TABLE [dbo].[TA_Tbl_PunchTypes] ADD  DEFAULT ((0)) FOR [Flag]
GO
ALTER TABLE [dbo].[TA_Tbl_RouteMaster] ADD  DEFAULT ((0)) FOR [IsDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_RouteMaster] ADD  CONSTRAINT [DF_TA_Tbl_RouteMaster_IsMapped]  DEFAULT ((1)) FOR [IsMapped]
GO
ALTER TABLE [dbo].[TA_Tbl_Shift] ADD  DEFAULT ((1)) FOR [empCategory]
GO
ALTER TABLE [dbo].[TA_Tbl_Shift] ADD  CONSTRAINT [Defaultconstraint_WorkHours]  DEFAULT ('00:00') FOR [MaxShiftWorkHours]
GO
ALTER TABLE [dbo].[TA_tbl_ShiftAdd_Location] ADD  CONSTRAINT [DF_TA_tbl_ShiftAdd_Location_CreatedOn]  DEFAULT (getdate()) FOR [CreatedOn]
GO
ALTER TABLE [dbo].[TA_tbl_ShiftAdd_Location] ADD  CONSTRAINT [DF_TA_tbl_ShiftAdd_Location_ModifiedOn]  DEFAULT (getdate()) FOR [ModifiedOn]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftExchange] ADD  CONSTRAINT [DF_TA_Tbl_ShiftExchange_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  DEFAULT ('00:03') FOR [MaxWorkPlaceInHours]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  CONSTRAINT [DF__TA_Tbl_Sh__Flexi__28ED12D1]  DEFAULT ((0)) FOR [Flexi_AfterShiftTime]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  CONSTRAINT [DF__TA_Tbl_Sh__Flexi__29E1370A]  DEFAULT ((0)) FOR [Flexi_BeforeShiftTime]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  CONSTRAINT [DF__TA_Tbl_Sh__Flexi__2AD55B43]  DEFAULT ((0)) FOR [Flexi_DefinedWorkhrs]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  DEFAULT ((0)) FOR [FirstAndLast]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  DEFAULT ((0)) FOR [Carry_Forward_COff_Year]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  CONSTRAINT [Defaultconstraint1]  DEFAULT ((0)) FOR [LateMinsPerDay]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  CONSTRAINT [Defaultconstraints2]  DEFAULT ((0)) FOR [LateDaysPerMonth]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  CONSTRAINT [DF_TA_Tbl_ShiftSettings_EarlyExitMinsPerDay]  DEFAULT ((0)) FOR [EarlyExitMinsPerDay]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  CONSTRAINT [DF_TA_Tbl_ShiftSettings_EarlyExitDaysPerMonth]  DEFAULT ((0)) FOR [EarlyExitDaysPerMonth]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  CONSTRAINT [Defaultconstraints1]  DEFAULT ((0)) FOR [EnableAbsent]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  DEFAULT ((0)) FOR [isRemindRrd_Pas_Vis]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftSettings] ADD  DEFAULT ((60)) FOR [reminderDays]
GO
ALTER TABLE [dbo].[Ta_Tbl_SMSGateway] ADD  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[Ta_Tbl_SMSReceivers] ADD  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[Ta_Tbl_SMSTags] ADD  DEFAULT (getdate()) FOR [Timestamp]
GO
ALTER TABLE [dbo].[Ta_Tbl_SMSTemplates] ADD  DEFAULT (getdate()) FOR [LastModified]
GO
ALTER TABLE [dbo].[Ta_Tbl_SMSTemplates] ADD  DEFAULT ((0)) FOR [ToEmployee]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day1Shift]  DEFAULT ((0)) FOR [Day1Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day2Shift]  DEFAULT ((0)) FOR [Day2Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day3Shift]  DEFAULT ((0)) FOR [Day3Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day4Shift]  DEFAULT ((0)) FOR [Day4Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day5Shift]  DEFAULT ((0)) FOR [Day5Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day6Shift]  DEFAULT ((0)) FOR [Day6Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day7Shift]  DEFAULT ((0)) FOR [Day7Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day8Shift]  DEFAULT ((0)) FOR [Day8Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day9Shift]  DEFAULT ((0)) FOR [Day9Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day10Shift]  DEFAULT ((0)) FOR [Day10Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day11Shift]  DEFAULT ((0)) FOR [Day11Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day12Shift]  DEFAULT ((0)) FOR [Day12Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day13Shift]  DEFAULT ((0)) FOR [Day13Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day14Shift]  DEFAULT ((0)) FOR [Day14Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day15Shift]  DEFAULT ((0)) FOR [Day15Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day16Shift]  DEFAULT ((0)) FOR [Day16Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day17Shift]  DEFAULT ((0)) FOR [Day17Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day18Shift]  DEFAULT ((0)) FOR [Day18Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day19Shift]  DEFAULT ((0)) FOR [Day19Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day20Shift]  DEFAULT ((0)) FOR [Day20Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day21Shift]  DEFAULT ((0)) FOR [Day21Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day22Shift]  DEFAULT ((0)) FOR [Day22Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day23Shift]  DEFAULT ((0)) FOR [Day23Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day24Shift]  DEFAULT ((0)) FOR [Day24Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day25Shift]  DEFAULT ((0)) FOR [Day25Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day26Shift]  DEFAULT ((0)) FOR [Day26Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day27Shift]  DEFAULT ((0)) FOR [Day27Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day28Shift]  DEFAULT ((0)) FOR [Day28Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day29Shift]  DEFAULT ((0)) FOR [Day29Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day30Shift]  DEFAULT ((0)) FOR [Day30Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemporaryShiftAllocation] ADD  CONSTRAINT [DF_TA_Tbl_TemporaryShiftAllocation_Day31Shift]  DEFAULT ((0)) FOR [Day31Shift]
GO
ALTER TABLE [dbo].[TA_Tbl_TemWeekday] ADD  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Terminal] ADD  CONSTRAINT [DF_TA_Tbl_Terminal_TimeStamp]  DEFAULT (getdate()) FOR [Time_Stamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Title] ADD  CONSTRAINT [DF_TA_Tbl_Title_IsDeleted]  DEFAULT ((1)) FOR [IsDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_Title] ADD  CONSTRAINT [DF_TA_Tbl_Title_Time_Stamp]  DEFAULT (getdate()) FOR [Time_Stamp]
GO
ALTER TABLE [dbo].[TA_Tbl_TitleMapping] ADD  CONSTRAINT [DF_TA_Tbl_TitleMapping_IsDeleted]  DEFAULT ((1)) FOR [IsDeleted]
GO
ALTER TABLE [dbo].[Ta_tbl_Transfer] ADD  DEFAULT (getdate()) FOR [Trnsfr_EtyDteTme]
GO
ALTER TABLE [dbo].[Ta_tbl_Transfer] ADD  DEFAULT ('') FOR [Remarks]
GO
ALTER TABLE [dbo].[Ta_tbl_Transfer] ADD  DEFAULT ((0)) FOR [IsImprtd]
GO
ALTER TABLE [dbo].[Ta_tbl_Transfer] ADD  DEFAULT ('Approved') FOR [Trnsfr_status]
GO
ALTER TABLE [dbo].[TA_Tbl_Transportation_Mapping] ADD  CONSTRAINT [DF_TA_Tbl_Transportation_Mapping_IsDeleted]  DEFAULT ((1)) FOR [IsDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_Transportation_Route] ADD  CONSTRAINT [DF_TA_Tbl_Transportation_Route_IsDeleted]  DEFAULT ((1)) FOR [IsDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_Transportation_Vehicle] ADD  CONSTRAINT [DF_TA_Tbl_Transportation_Vehicle_IsDeleted]  DEFAULT ((1)) FOR [IsDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_Transportation_Vehicle] ADD  CONSTRAINT [DF_TA_Tbl_Transportation_Vehicle_Time_stamp]  DEFAULT (getdate()) FOR [Time_stamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Type] ADD  DEFAULT ((0)) FOR [Isdisply_MyProf]
GO
ALTER TABLE [dbo].[TA_Tbl_Usergroup] ADD  CONSTRAINT [DF_TA_Tbl_Usergroup_timeStamp_2]  DEFAULT (getdate()) FOR [timeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Usergroup] ADD  CONSTRAINT [DF_TA_Tbl_Usergroup_isDeleted_1]  DEFAULT ((0)) FOR [isDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_Usergroup] ADD  CONSTRAINT [DF_TA_Tbl_Usergroup_ReportsBasedOn]  DEFAULT ((0)) FOR [ReportsBasedOn]
GO
ALTER TABLE [dbo].[TA_Tbl_userRights] ADD  CONSTRAINT [DF_TA_Tbl_userGroup_isDeleted]  DEFAULT ((0)) FOR [isDeleted]
GO
ALTER TABLE [dbo].[TA_Tbl_userRights] ADD  CONSTRAINT [DF_TA_Tbl_userGroup_timeStamp_1]  DEFAULT (getdate()) FOR [timeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_WhatsAppSchedule] ADD  CONSTRAINT [DF_TA_Tbl_WhatsAppSchedule_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_WhatsAppSchedule] ADD  DEFAULT ((0)) FOR [TimeSendOption]
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure] ADD  CONSTRAINT [DF_TA_Tbl_YearClosure_Carry_PrevYear]  DEFAULT ((0)) FOR [Carry_PrevYear]
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure] ADD  CONSTRAINT [DF_TA_Tbl_YearClosure_Current_Quota]  DEFAULT ((0)) FOR [Current_Quota]
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure] ADD  CONSTRAINT [DF_TA_Tbl_YearClosure_Borrow_NextYear]  DEFAULT ((0)) FOR [Borrow_NextYear]
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure] ADD  CONSTRAINT [DF_TA_Tbl_YearClosure_Leave_Taken]  DEFAULT ((0)) FOR [Leave_Taken]
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure] ADD  CONSTRAINT [DF_TA_Tbl_YearClosure_Available_Leaves]  DEFAULT ((0)) FOR [Available_Leaves]
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure] ADD  CONSTRAINT [DF_TA_Tbl_YearClosure_Encashment]  DEFAULT ((0)) FOR [Encashment]
GO
ALTER TABLE [dbo].[TA_Tbl_YearSetting] ADD  CONSTRAINT [DF_TA_Tbl_YearSetting_TimeStamp]  DEFAULT (getdate()) FOR [TimeStamp]
GO
ALTER TABLE [dbo].[TA_Tbl_Additional_WeeklyOff_Levels]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_AdditionalWeeklyOff_Levels_TA_Tbl_Additional_WeeklyOff] FOREIGN KEY([Addl_WeeklyOff_Id])
REFERENCES [dbo].[TA_Tbl_Additional_WeeklyOff] ([Addl_WeeklyOff_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Additional_WeeklyOff_Levels] CHECK CONSTRAINT [FK_TA_Tbl_AdditionalWeeklyOff_Levels_TA_Tbl_Additional_WeeklyOff]
GO
ALTER TABLE [dbo].[TA_Tbl_AuditField]  WITH CHECK ADD  CONSTRAINT [FK_TA_Tbl_AuditField_TA_Tbl_AuditTable] FOREIGN KEY([TableID])
REFERENCES [dbo].[TA_Tbl_AuditTable] ([TableID])
GO
ALTER TABLE [dbo].[TA_Tbl_AuditField] CHECK CONSTRAINT [FK_TA_Tbl_AuditField_TA_Tbl_AuditTable]
GO
ALTER TABLE [dbo].[TA_Tbl_AuditOperation]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_AuditOperation_TA_Tbl_AuditField] FOREIGN KEY([FieldID])
REFERENCES [dbo].[TA_Tbl_AuditField] ([FieldID])
GO
ALTER TABLE [dbo].[TA_Tbl_AuditOperation] CHECK CONSTRAINT [FK_TA_Tbl_AuditOperation_TA_Tbl_AuditField]
GO
ALTER TABLE [dbo].[TA_Tbl_AuditOperation]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_AuditOperation_TA_Tbl_AuditTable] FOREIGN KEY([TableID])
REFERENCES [dbo].[TA_Tbl_AuditTable] ([TableID])
GO
ALTER TABLE [dbo].[TA_Tbl_AuditOperation] CHECK CONSTRAINT [FK_TA_Tbl_AuditOperation_TA_Tbl_AuditTable]
GO
ALTER TABLE [dbo].[TA_Tbl_CCGroup_Others]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_CCGroup_Others_TA_Tbl_CCMailGroup] FOREIGN KEY([CCGroupId])
REFERENCES [dbo].[TA_Tbl_CCMailGroup] ([CCGroupID])
GO
ALTER TABLE [dbo].[TA_Tbl_CCGroup_Others] CHECK CONSTRAINT [FK_TA_Tbl_CCGroup_Others_TA_Tbl_CCMailGroup]
GO
ALTER TABLE [dbo].[TA_Tbl_CCGroup_Planned]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_CCGroup_Planned_TA_Tbl_CCGroup_Planned] FOREIGN KEY([CCGroupID])
REFERENCES [dbo].[TA_Tbl_CCMailGroup] ([CCGroupID])
GO
ALTER TABLE [dbo].[TA_Tbl_CCGroup_Planned] CHECK CONSTRAINT [FK_TA_Tbl_CCGroup_Planned_TA_Tbl_CCGroup_Planned]
GO
ALTER TABLE [dbo].[TA_Tbl_CCGroup_UnPlanned]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_CCGroup_UnPlanned_TA_Tbl_CCMailGroup] FOREIGN KEY([CCGroupID])
REFERENCES [dbo].[TA_Tbl_CCMailGroup] ([CCGroupID])
GO
ALTER TABLE [dbo].[TA_Tbl_CCGroup_UnPlanned] CHECK CONSTRAINT [FK_TA_Tbl_CCGroup_UnPlanned_TA_Tbl_CCMailGroup]
GO
ALTER TABLE [dbo].[TA_Tbl_CCMailGroup]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_CCMailGroup_Ta_Tbl_levelDetails] FOREIGN KEY([LevelID])
REFERENCES [dbo].[Ta_Tbl_levelDetails] ([id])
GO
ALTER TABLE [dbo].[TA_Tbl_CCMailGroup] CHECK CONSTRAINT [FK_TA_Tbl_CCMailGroup_Ta_Tbl_levelDetails]
GO
ALTER TABLE [dbo].[TA_Tbl_CCMailGroup]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_CCMailGroup_TA_Tbl_Title] FOREIGN KEY([DesignationID])
REFERENCES [dbo].[TA_Tbl_Title] ([TitleId])
GO
ALTER TABLE [dbo].[TA_Tbl_CCMailGroup] CHECK CONSTRAINT [FK_TA_Tbl_CCMailGroup_TA_Tbl_Title]
GO
ALTER TABLE [dbo].[TA_Tbl_Compensation]  WITH CHECK ADD  CONSTRAINT [FK__TA_Tbl_Co__Appro__5A129A75] FOREIGN KEY([ApprovedBy])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Compensation] CHECK CONSTRAINT [FK__TA_Tbl_Co__Appro__5A129A75]
GO
ALTER TABLE [dbo].[TA_Tbl_Compensation]  WITH CHECK ADD  CONSTRAINT [FK__TA_Tbl_Co__empid__5B06BEAE] FOREIGN KEY([empid])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Compensation] CHECK CONSTRAINT [FK__TA_Tbl_Co__empid__5B06BEAE]
GO
ALTER TABLE [dbo].[TA_Tbl_Compensation]  WITH CHECK ADD  CONSTRAINT [FK__TA_Tbl_Co__Rejec__5BFAE2E7] FOREIGN KEY([RejectedBy])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Compensation] CHECK CONSTRAINT [FK__TA_Tbl_Co__Rejec__5BFAE2E7]
GO
ALTER TABLE [dbo].[TA_Tbl_EmailScheduleFilters]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_EmailScheduleFilters_TA_Tbl_EmailSchedule] FOREIGN KEY([ScheduleId])
REFERENCES [dbo].[TA_Tbl_EmailSchedule] ([ScheduleId])
GO
ALTER TABLE [dbo].[TA_Tbl_EmailScheduleFilters] CHECK CONSTRAINT [FK_TA_Tbl_EmailScheduleFilters_TA_Tbl_EmailSchedule]
GO
ALTER TABLE [dbo].[TA_Tbl_EmailTemplate]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_EmailTemplate_TA_Tbl_EmailSchedule] FOREIGN KEY([ScheduleId])
REFERENCES [dbo].[TA_Tbl_EmailSchedule] ([ScheduleId])
GO
ALTER TABLE [dbo].[TA_Tbl_EmailTemplate] CHECK CONSTRAINT [FK_TA_Tbl_EmailTemplate_TA_Tbl_EmailSchedule]
GO
ALTER TABLE [dbo].[TA_Tbl_Emp_LeavePolicy]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_Emp_LeavePolicy_TA_Tbl_LeavePolicy] FOREIGN KEY([LeavePolicy_Id])
REFERENCES [dbo].[TA_Tbl_LeavePolicy] ([Policy_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Emp_LeavePolicy] CHECK CONSTRAINT [FK_TA_Tbl_Emp_LeavePolicy_TA_Tbl_LeavePolicy]
GO
ALTER TABLE [dbo].[TA_Tbl_Emp_LeavePolicy]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_Emp_LeavePolicy_TA_Tbl_YearSetting] FOREIGN KEY([YearSettingId])
REFERENCES [dbo].[TA_Tbl_YearSetting] ([YearSettings_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Emp_LeavePolicy] CHECK CONSTRAINT [FK_TA_Tbl_Emp_LeavePolicy_TA_Tbl_YearSetting]
GO
ALTER TABLE [dbo].[TA_Tbl_Emp_LeavePolicyDetails]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_Emp_LeavePolicyDetails_TA_Tbl_Emp_LeavePolicy] FOREIGN KEY([Emp_LeavePolicyId])
REFERENCES [dbo].[TA_Tbl_Emp_LeavePolicy] ([Emp_LeavePolicyId])
GO
ALTER TABLE [dbo].[TA_Tbl_Emp_LeavePolicyDetails] CHECK CONSTRAINT [FK_TA_Tbl_Emp_LeavePolicyDetails_TA_Tbl_Emp_LeavePolicy]
GO
ALTER TABLE [dbo].[TA_Tbl_Emp_LeavePolicyDetails]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_Emp_LeavePolicyDetails_TA_Tbl_LeaveType] FOREIGN KEY([LeaveType_Id])
REFERENCES [dbo].[TA_Tbl_LeaveType] ([LeaveType_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Emp_LeavePolicyDetails] CHECK CONSTRAINT [FK_TA_Tbl_Emp_LeavePolicyDetails_TA_Tbl_LeaveType]
GO
ALTER TABLE [dbo].[TA_Tbl_EmpChildrenDetails]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_EmpChildrenDetails_TA_Tbl_Employee1] FOREIGN KEY([Emp_ID])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_EmpChildrenDetails] CHECK CONSTRAINT [FK_TA_Tbl_EmpChildrenDetails_TA_Tbl_Employee1]
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeBonusLeave]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_EmployeeBonusLeave_TA_Tbl_Employee] FOREIGN KEY([EmployeeId])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeBonusLeave] CHECK CONSTRAINT [FK_TA_Tbl_EmployeeBonusLeave_TA_Tbl_Employee]
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeBonusLeave]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_EmployeeBonusLeave_TA_Tbl_Employee1] FOREIGN KEY([EmpId])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeBonusLeave] CHECK CONSTRAINT [FK_TA_Tbl_EmployeeBonusLeave_TA_Tbl_Employee1]
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeBonusLeave]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_EmployeeBonusLeave_TA_Tbl_YearSetting] FOREIGN KEY([YearSettingId])
REFERENCES [dbo].[TA_Tbl_YearSetting] ([YearSettings_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_EmployeeBonusLeave] CHECK CONSTRAINT [FK_TA_Tbl_EmployeeBonusLeave_TA_Tbl_YearSetting]
GO
ALTER TABLE [dbo].[TA_Tbl_Encashment]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_Encashment_TA_Tbl_LeaveType] FOREIGN KEY([LeaveTypeId])
REFERENCES [dbo].[TA_Tbl_LeaveType] ([LeaveType_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Encashment] CHECK CONSTRAINT [FK_TA_Tbl_Encashment_TA_Tbl_LeaveType]
GO
ALTER TABLE [dbo].[TA_Tbl_Entrance_INOUTDetails]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_Entrance_INOUTDetails_TA_Tbl_Entrance] FOREIGN KEY([Entrance_Id])
REFERENCES [dbo].[TA_Tbl_Entrance] ([Entrance_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Entrance_INOUTDetails] CHECK CONSTRAINT [FK_TA_Tbl_Entrance_INOUTDetails_TA_Tbl_Entrance]
GO
ALTER TABLE [dbo].[TA_Tbl_Entrance_INOUTDetails]  WITH CHECK ADD  CONSTRAINT [FK_TA_Tbl_Entrance_INOUTDetails_TA_Tbl_Terminal] FOREIGN KEY([Reader_Id])
REFERENCES [dbo].[TA_Tbl_Terminal] ([Terminal_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Entrance_INOUTDetails] CHECK CONSTRAINT [FK_TA_Tbl_Entrance_INOUTDetails_TA_Tbl_Terminal]
GO
ALTER TABLE [dbo].[TA_Tbl_Holiday]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_Holiday_TA_Tbl_YearSetting] FOREIGN KEY([YearSettings_Id])
REFERENCES [dbo].[TA_Tbl_YearSetting] ([YearSettings_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Holiday] CHECK CONSTRAINT [FK_TA_Tbl_Holiday_TA_Tbl_YearSetting]
GO
ALTER TABLE [dbo].[TA_Tbl_HolidayChildTable]  WITH CHECK ADD  CONSTRAINT [FK__TA_Tbl_Ho__Holid__20589827] FOREIGN KEY([Holiday_Id])
REFERENCES [dbo].[TA_Tbl_Holiday] ([Holiday_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_HolidayChildTable] CHECK CONSTRAINT [FK__TA_Tbl_Ho__Holid__20589827]
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveApplication]  WITH CHECK ADD  CONSTRAINT [FK__TA_Tbl_Le__Emplo__78199556] FOREIGN KEY([Employee_Id])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveApplication] CHECK CONSTRAINT [FK__TA_Tbl_Le__Emplo__78199556]
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveApplication_FileUpload]  WITH CHECK ADD FOREIGN KEY([LeaveApplication_Id])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveApplication_FileUpload]  WITH CHECK ADD FOREIGN KEY([LeaveApplication_Id])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveApplication_FileUpload]  WITH CHECK ADD FOREIGN KEY([LeaveApplication_Id])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveApplication_FileUpload]  WITH CHECK ADD FOREIGN KEY([LeaveApplication_Id])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveApplication_FileUpload]  WITH CHECK ADD FOREIGN KEY([LeaveApplication_Id])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveApplication_FileUpload]  WITH CHECK ADD FOREIGN KEY([LeaveApplication_Id])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveApplication_FileUpload]  WITH CHECK ADD FOREIGN KEY([LeaveApplication_Id])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveApplication_FileUpload]  WITH CHECK ADD FOREIGN KEY([LeaveApplication_Id])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveConversation]  WITH CHECK ADD FOREIGN KEY([LeaveApplicationId])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveConversation]  WITH CHECK ADD FOREIGN KEY([LeaveApplicationId])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveConversation]  WITH CHECK ADD FOREIGN KEY([LeaveApplicationId])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveConversation]  WITH CHECK ADD FOREIGN KEY([LeaveApplicationId])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveConversation]  WITH CHECK ADD FOREIGN KEY([LeaveApplicationId])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveConversation]  WITH CHECK ADD FOREIGN KEY([LeaveApplicationId])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveConversation]  WITH CHECK ADD FOREIGN KEY([LeaveApplicationId])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeaveConversation]  WITH CHECK ADD FOREIGN KEY([LeaveApplicationId])
REFERENCES [dbo].[TA_Tbl_LeaveApplication] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePolicyDetails]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_LeavePolicyDetails_TA_Tbl_Employee] FOREIGN KEY([Emp_Id])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePolicyDetails] CHECK CONSTRAINT [FK_TA_Tbl_LeavePolicyDetails_TA_Tbl_Employee]
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePolicyDetails]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_LeavePolicyDetails_TA_Tbl_LeavePolicy] FOREIGN KEY([Policy_Id])
REFERENCES [dbo].[TA_Tbl_LeavePolicy] ([Policy_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePolicyDetails] CHECK CONSTRAINT [FK_TA_Tbl_LeavePolicyDetails_TA_Tbl_LeavePolicy]
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePolicyDetails]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_LeavePolicyDetails_TA_Tbl_LeaveType] FOREIGN KEY([LeaveType_Id])
REFERENCES [dbo].[TA_Tbl_LeaveType] ([LeaveType_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePolicyDetails] CHECK CONSTRAINT [FK_TA_Tbl_LeavePolicyDetails_TA_Tbl_LeaveType]
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePrivateNotes]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_LeavePrivateNotes_TA_Tbl_LeaveApplicationMaster] FOREIGN KEY([LeaveApplicationId])
REFERENCES [dbo].[TA_Tbl_LeaveApplicationMaster] ([LeaveApplication_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_LeavePrivateNotes] CHECK CONSTRAINT [FK_TA_Tbl_LeavePrivateNotes_TA_Tbl_LeaveApplicationMaster]
GO
ALTER TABLE [dbo].[Ta_Tbl_levelDetails]  WITH NOCHECK ADD  CONSTRAINT [FK_Ta_Tbl_levelDetails_TA_Tbl_Level] FOREIGN KEY([levelId])
REFERENCES [dbo].[TA_Tbl_Level] ([levelID])
GO
ALTER TABLE [dbo].[Ta_Tbl_levelDetails] CHECK CONSTRAINT [FK_Ta_Tbl_levelDetails_TA_Tbl_Level]
GO
ALTER TABLE [dbo].[TA_tbl_MailIdsForTriggeringEmail]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_tbl_MailIdsForTriggeringEmail_TA_Tbl_EmailSchedule] FOREIGN KEY([ScheduleId])
REFERENCES [dbo].[TA_Tbl_EmailSchedule] ([ScheduleId])
GO
ALTER TABLE [dbo].[TA_tbl_MailIdsForTriggeringEmail] CHECK CONSTRAINT [FK_TA_tbl_MailIdsForTriggeringEmail_TA_Tbl_EmailSchedule]
GO
ALTER TABLE [dbo].[TA_Tbl_ManualTimeEntry]  WITH CHECK ADD FOREIGN KEY([OnDuty_ID])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_ManualTimeEntry]  WITH CHECK ADD FOREIGN KEY([OnDuty_ID])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_ManualTimeEntry]  WITH CHECK ADD FOREIGN KEY([OnDuty_ID])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_ManualTimeEntry]  WITH CHECK ADD FOREIGN KEY([OnDuty_ID])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_ManualTimeEntry]  WITH CHECK ADD FOREIGN KEY([OnDuty_ID])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_ManualTimeEntry]  WITH CHECK ADD FOREIGN KEY([OnDuty_ID])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_ManualTimeEntry]  WITH CHECK ADD FOREIGN KEY([OnDuty_ID])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_ManualTimeEntry]  WITH CHECK ADD FOREIGN KEY([OnDuty_ID])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_MonthClosure]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_MonthClosure_Ta_Tbl_levelDetails] FOREIGN KEY([OrgLevel_Id])
REFERENCES [dbo].[Ta_Tbl_levelDetails] ([id])
GO
ALTER TABLE [dbo].[TA_Tbl_MonthClosure] CHECK CONSTRAINT [FK_TA_Tbl_MonthClosure_Ta_Tbl_levelDetails]
GO
ALTER TABLE [dbo].[TA_Tbl_OnDutyConversation]  WITH CHECK ADD FOREIGN KEY([OnDutyApplicationId])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_OnDutyConversation]  WITH CHECK ADD FOREIGN KEY([OnDutyApplicationId])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_OnDutyConversation]  WITH CHECK ADD FOREIGN KEY([OnDutyApplicationId])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_OnDutyConversation]  WITH CHECK ADD FOREIGN KEY([OnDutyApplicationId])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_OnDutyConversation]  WITH CHECK ADD FOREIGN KEY([OnDutyApplicationId])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_OnDutyConversation]  WITH CHECK ADD FOREIGN KEY([OnDutyApplicationId])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_OnDutyConversation]  WITH CHECK ADD FOREIGN KEY([OnDutyApplicationId])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_OnDutyConversation]  WITH CHECK ADD FOREIGN KEY([OnDutyApplicationId])
REFERENCES [dbo].[TA_Tbl_OndutyEntry] ([Onduty_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_PayrollProcessDetails]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_PayrollProcessDetails_TA_Tbl_MonthClosure] FOREIGN KEY([MonthClosure_Id])
REFERENCES [dbo].[TA_Tbl_MonthClosure] ([MonthClosure_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_PayrollProcessDetails] CHECK CONSTRAINT [FK_TA_Tbl_PayrollProcessDetails_TA_Tbl_MonthClosure]
GO
ALTER TABLE [dbo].[TA_Tbl_PayrollProcessLeaveDetails]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_PayrollProcessLeaveDetails_TA_Tbl_MonthClosure] FOREIGN KEY([MonthClosure_Id])
REFERENCES [dbo].[TA_Tbl_MonthClosure] ([MonthClosure_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_PayrollProcessLeaveDetails] CHECK CONSTRAINT [FK_TA_Tbl_PayrollProcessLeaveDetails_TA_Tbl_MonthClosure]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_PermanentShiftAllocation_TA_Tbl_Employee] FOREIGN KEY([EmployeeId])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
ON UPDATE CASCADE
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] CHECK CONSTRAINT [FK_TA_Tbl_PermanentShiftAllocation_TA_Tbl_Employee]
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_PermanentShiftAllocation_TA_Tbl_Employee1] FOREIGN KEY([Emp_Id])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_PermanentShiftAllocation] CHECK CONSTRAINT [FK_TA_Tbl_PermanentShiftAllocation_TA_Tbl_Employee1]
GO
ALTER TABLE [dbo].[TA_Tbl_Permission]  WITH CHECK ADD  CONSTRAINT [FK__TA_Tbl_Pe__Emplo__2B99395C] FOREIGN KEY([Employee_Id])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Permission] CHECK CONSTRAINT [FK__TA_Tbl_Pe__Emplo__2B99395C]
GO
ALTER TABLE [dbo].[TA_Tbl_PermissionConversation]  WITH CHECK ADD  CONSTRAINT [FK_TA_Tbl_TA_Tbl_PermissionConversation_TA_Tbl_Permission] FOREIGN KEY([PermissionId])
REFERENCES [dbo].[TA_Tbl_Permission] ([Permission_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_PermissionConversation] CHECK CONSTRAINT [FK_TA_Tbl_TA_Tbl_PermissionConversation_TA_Tbl_Permission]
GO
ALTER TABLE [dbo].[TA_Tbl_PunchTypes]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_PunchTypes_TA_Tbl_Terminal] FOREIGN KEY([Terminal_Id])
REFERENCES [dbo].[TA_Tbl_Terminal] ([Terminal_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_PunchTypes] CHECK CONSTRAINT [FK_TA_Tbl_PunchTypes_TA_Tbl_Terminal]
GO
ALTER TABLE [dbo].[TA_Tbl_RouteMaster]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_RouteMaster_Ta_Tbl_levelDetails] FOREIGN KEY([Level_Id])
REFERENCES [dbo].[Ta_Tbl_levelDetails] ([id])
GO
ALTER TABLE [dbo].[TA_Tbl_RouteMaster] CHECK CONSTRAINT [FK_TA_Tbl_RouteMaster_Ta_Tbl_levelDetails]
GO
ALTER TABLE [dbo].[TA_Tbl_RouteMaster]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_RouteMaster_TA_Tbl_Transportation_Vehicle] FOREIGN KEY([VehicleID])
REFERENCES [dbo].[TA_Tbl_Transportation_Vehicle] ([VehicleId])
GO
ALTER TABLE [dbo].[TA_Tbl_RouteMaster] CHECK CONSTRAINT [FK_TA_Tbl_RouteMaster_TA_Tbl_Transportation_Vehicle]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftPattern]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_ShiftPattern_TA_Tbl_Employee] FOREIGN KEY([Emp_Id])
REFERENCES [dbo].[TA_Tbl_Employee] ([Employee_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftPattern] CHECK CONSTRAINT [FK_TA_Tbl_ShiftPattern_TA_Tbl_Employee]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftPattern]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_ShiftPattern_Ta_Tbl_levelDetails] FOREIGN KEY([Level_Id])
REFERENCES [dbo].[Ta_Tbl_levelDetails] ([id])
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftPattern] CHECK CONSTRAINT [FK_TA_Tbl_ShiftPattern_Ta_Tbl_levelDetails]
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftRoaster]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_ShiftRoaster_Ta_Tbl_levelDetails] FOREIGN KEY([Level_Id])
REFERENCES [dbo].[Ta_Tbl_levelDetails] ([id])
GO
ALTER TABLE [dbo].[TA_Tbl_ShiftRoaster] CHECK CONSTRAINT [FK_TA_Tbl_ShiftRoaster_Ta_Tbl_levelDetails]
GO
ALTER TABLE [dbo].[TA_Tbl_SMSLogChild]  WITH CHECK ADD  CONSTRAINT [FK__TA_Tbl_SM__logid__62E4AA3C] FOREIGN KEY([logid])
REFERENCES [dbo].[TA_Tbl_SMSLogDetails] ([logid])
GO
ALTER TABLE [dbo].[TA_Tbl_SMSLogChild] CHECK CONSTRAINT [FK__TA_Tbl_SM__logid__62E4AA3C]
GO
ALTER TABLE [dbo].[TA_Tbl_SMSLogDetails]  WITH CHECK ADD  CONSTRAINT [FK__TA_Tbl_SM__Templ__63D8CE75] FOREIGN KEY([TemplateID])
REFERENCES [dbo].[Ta_Tbl_SMSTemplates] ([id])
GO
ALTER TABLE [dbo].[TA_Tbl_SMSLogDetails] CHECK CONSTRAINT [FK__TA_Tbl_SM__Templ__63D8CE75]
GO
ALTER TABLE [dbo].[TA_Tbl_SMSLogDetails]  WITH CHECK ADD  CONSTRAINT [FK__TA_Tbl_SM__Templ__64CCF2AE] FOREIGN KEY([TemplateID])
REFERENCES [dbo].[Ta_Tbl_SMSTemplates] ([id])
GO
ALTER TABLE [dbo].[TA_Tbl_SMSLogDetails] CHECK CONSTRAINT [FK__TA_Tbl_SM__Templ__64CCF2AE]
GO
ALTER TABLE [dbo].[Ta_Tbl_SMSReceivers]  WITH CHECK ADD  CONSTRAINT [FK__Ta_Tbl_SM__Templ__65C116E7] FOREIGN KEY([TemplateId])
REFERENCES [dbo].[Ta_Tbl_SMSTemplates] ([id])
GO
ALTER TABLE [dbo].[Ta_Tbl_SMSReceivers] CHECK CONSTRAINT [FK__Ta_Tbl_SM__Templ__65C116E7]
GO
ALTER TABLE [dbo].[Ta_Tbl_SMSTemplateFilters]  WITH CHECK ADD  CONSTRAINT [FK__Ta_Tbl_SM__Templ__66B53B20] FOREIGN KEY([TemplateId])
REFERENCES [dbo].[Ta_Tbl_SMSTemplates] ([id])
GO
ALTER TABLE [dbo].[Ta_Tbl_SMSTemplateFilters] CHECK CONSTRAINT [FK__Ta_Tbl_SM__Templ__66B53B20]
GO
ALTER TABLE [dbo].[TA_Tbl_Temp_WeeklyOff_Levels]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_Temp_WeeklyOff_Levels_TA_Tbl_TemWeekday] FOREIGN KEY([TempWeekday_Id])
REFERENCES [dbo].[TA_Tbl_TemWeekday] ([TempWeekday_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_Temp_WeeklyOff_Levels] CHECK CONSTRAINT [FK_TA_Tbl_Temp_WeeklyOff_Levels_TA_Tbl_TemWeekday]
GO
ALTER TABLE [dbo].[Ta_Tbl_Temporary_WeeklyOff_Levels]  WITH NOCHECK ADD  CONSTRAINT [FK_Ta_Tbl_Temporary_WeeklyOff_Levels_TA_Tbl_TemWeekday] FOREIGN KEY([TempWeekday_Id])
REFERENCES [dbo].[TA_Tbl_TemWeekday] ([TempWeekday_Id])
GO
ALTER TABLE [dbo].[Ta_Tbl_Temporary_WeeklyOff_Levels] CHECK CONSTRAINT [FK_Ta_Tbl_Temporary_WeeklyOff_Levels_TA_Tbl_TemWeekday]
GO
ALTER TABLE [dbo].[TA_Tbl_TempPayrollProcessDetails]  WITH CHECK ADD  CONSTRAINT [FK_TA_Tbl_TempPayrollProcessDetails_TA_Tbl_MonthClosure] FOREIGN KEY([MonthClosure_Id])
REFERENCES [dbo].[TA_Tbl_MonthClosure] ([MonthClosure_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_TempPayrollProcessDetails] CHECK CONSTRAINT [FK_TA_Tbl_TempPayrollProcessDetails_TA_Tbl_MonthClosure]
GO
ALTER TABLE [dbo].[TA_Tbl_Title]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_Title_TA_Tbl_Grade] FOREIGN KEY([GradeID])
REFERENCES [dbo].[TA_Tbl_Grade] ([Grade_ID])
GO
ALTER TABLE [dbo].[TA_Tbl_Title] CHECK CONSTRAINT [FK_TA_Tbl_Title_TA_Tbl_Grade]
GO
ALTER TABLE [dbo].[TA_Tbl_Title]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_Title_Ta_Tbl_levelDetails] FOREIGN KEY([LevelID])
REFERENCES [dbo].[Ta_Tbl_levelDetails] ([id])
GO
ALTER TABLE [dbo].[TA_Tbl_Title] CHECK CONSTRAINT [FK_TA_Tbl_Title_Ta_Tbl_levelDetails]
GO
ALTER TABLE [dbo].[TA_tbl_WhatsAppIdsForTriggering]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_tbl_WhatsAppIdsForTriggering_TA_Tbl_WhatsAppSchedule] FOREIGN KEY([ScheduleId])
REFERENCES [dbo].[TA_Tbl_WhatsAppSchedule] ([ScheduleId])
GO
ALTER TABLE [dbo].[TA_tbl_WhatsAppIdsForTriggering] CHECK CONSTRAINT [FK_TA_tbl_WhatsAppIdsForTriggering_TA_Tbl_WhatsAppSchedule]
GO
ALTER TABLE [dbo].[TA_tbl_WhatsAppNumberForTriggeringMessage]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_tbl_WhatsAppNumberForTriggeringMessage_TA_Tbl_WhatsAppSchedule] FOREIGN KEY([ScheduleId])
REFERENCES [dbo].[TA_Tbl_WhatsAppSchedule] ([ScheduleId])
GO
ALTER TABLE [dbo].[TA_tbl_WhatsAppNumberForTriggeringMessage] CHECK CONSTRAINT [FK_TA_tbl_WhatsAppNumberForTriggeringMessage_TA_Tbl_WhatsAppSchedule]
GO
ALTER TABLE [dbo].[TA_Tbl_WhatsAppScheduleFilters]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_WhatsAppScheduleFilters_TA_Tbl_WhatsAppSchedule] FOREIGN KEY([ScheduleId])
REFERENCES [dbo].[TA_Tbl_WhatsAppSchedule] ([ScheduleId])
GO
ALTER TABLE [dbo].[TA_Tbl_WhatsAppScheduleFilters] CHECK CONSTRAINT [FK_TA_Tbl_WhatsAppScheduleFilters_TA_Tbl_WhatsAppSchedule]
GO
ALTER TABLE [dbo].[TA_Tbl_WhatsAppTemplate]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_WhatsAppTemplate_TA_Tbl_WhatsAppSchedule] FOREIGN KEY([ScheduleId])
REFERENCES [dbo].[TA_Tbl_WhatsAppSchedule] ([ScheduleId])
GO
ALTER TABLE [dbo].[TA_Tbl_WhatsAppTemplate] CHECK CONSTRAINT [FK_TA_Tbl_WhatsAppTemplate_TA_Tbl_WhatsAppSchedule]
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_YearClosure_TA_Tbl_LeaveType] FOREIGN KEY([LeaveTypeID])
REFERENCES [dbo].[TA_Tbl_LeaveType] ([LeaveType_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure] CHECK CONSTRAINT [FK_TA_Tbl_YearClosure_TA_Tbl_LeaveType]
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_YearClosure_Ta_Tbl_levelDetails] FOREIGN KEY([OrgLevelId])
REFERENCES [dbo].[Ta_Tbl_levelDetails] ([id])
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure] CHECK CONSTRAINT [FK_TA_Tbl_YearClosure_Ta_Tbl_levelDetails]
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure]  WITH NOCHECK ADD  CONSTRAINT [FK_TA_Tbl_YearClosure_TA_Tbl_YearSetting] FOREIGN KEY([Year_SettingID])
REFERENCES [dbo].[TA_Tbl_YearSetting] ([YearSettings_Id])
GO
ALTER TABLE [dbo].[TA_Tbl_YearClosure] CHECK CONSTRAINT [FK_TA_Tbl_YearClosure_TA_Tbl_YearSetting]
GO
