This document describes the schema for uploaded payroll data, including tables, columns, data types, and descriptions. The main tables are Payroll, DailySummary, and DailyAudit. Payroll contains metadata for each payroll week. DailySummary contains timekeeping records for each employee on each day. DailyAudit is a duplicate of DailySummary used to track changes through a change ID and flag.
This document describes the schema for uploaded payroll data, including tables, columns, data types, and descriptions. The main tables are Payroll, DailySummary, and DailyAudit. Payroll contains metadata for each payroll week. DailySummary contains timekeeping records for each employee on each day. DailyAudit is a duplicate of DailySummary used to track changes through a change ID and flag.
This document describes the schema for uploaded payroll data, including tables, columns, data types, and descriptions. The main tables are Payroll, DailySummary, and DailyAudit. Payroll contains metadata for each payroll week. DailySummary contains timekeeping records for each employee on each day. DailyAudit is a duplicate of DailySummary used to track changes through a change ID and flag.
These are the schema for the uploaded payroll data. The upload data is in XML format. All table and column names are that names that appear in the XML file.
1.1.1 Payroll Table
XML Tag: Payroll Primary Key: StoreID + PayrollWeekID
Column Data Type Description
StoreID Integer Store Identifier PayrollWeekID Integer Payroll Week Identifier Value corresponds to DBM fiscal calendar identifier StartWeekDate DateTime Calendar date of the first day of the payroll week EndWeekDate DateTime Calendar date of the last day of the payroll week Status Integer Used by internal processes 0 = Payroll week is open 1 = Payroll week is closed and not exported for transmission 2 = Payroll week is closed and has been exported to disk for transmission StatusChangeTimestamp DateTime Calendar date and time of the last status change for the record StatusEmployeeID String Employee ID of the person making the last status change
StoreID Integer Store Identifier EmployeeID String Employee Identifier PayrollWeekID Integer Payroll Week Identifier Value corresponds to DBM fiscal calendar identifier PayrollDayID Integer Numeric Identifier for the day within the payroll week 1 = Sunday 7 = Saturday SequenceID Integer Sequence Identifier to allow multiple payroll records for a given day Column Data Type Description Duration Decimal Amount of time worked rounded to the configured time interval. Also the amount of time to use for manually entered payroll records. ClockIn DateTime Actual time the employee clocked in ClockOut DateTime Actual time the employee clocked out TimeCode Integer The numeric value of the payroll codes defined by Dressbarn and Maurices OverrideManagerID String The employee ID of the manager who last edited this record. Only applicable if the record was modified with BackOffice. MgrFullName String The full name of the manager identified by OverrideManagerID OverrideTimestamp DateTime The date and time the record was modified ClockInCode Integer Source of the clock in time 0 = POS 1 = Backoffice ClockOutCode Integer Source of the clock out time 0 = POS 1 = Backoffice DurationCode Integer This code indicates if the duration was calculated from clockings or entered manually in Backoffice 0 = Calculated from clockings 1 = Entered manually BusinessDate DateTime Calendar date of the operating day PersonnelID String Personnel ID from employee table
1.1.3 DailyAudit Table
The definition of this record is identical to the definition a record in the DailySummary table. In this case the records are duplicated data from the DailySummary. The meaning of a give DailyAudit record must be taken in context with the other records in a change group. The sub-key ChangeSequenceID defines a sequenced grouping of records that when combined with the ChangeFlag will show an audit trail for the given payroll record. The ChangeFlag indates additions, deletions, and modifications to a record. Addition and deletion records are complete replications of the daily summary record at the time of the operation. Modification records exist in pairs, and show the before and after states of a modification.
StoreID Integer Store Identifier Column Data Type Description EmployeeID String Employee Identifier PayrollWeekID Integer Payroll Week Identifier Value corresponds to DBM fiscal calendar identifier PayrollDayID Integer Numeric Identifier for the day within the payroll week 1 = Sunday 7 = Saturday SequenceID Integer Sequence Identifier to allow multiple payroll records for a given day Duration Decimal Amount of time worked rounded to the configured time interval. Also the amount of time to use for manually entered payroll records. ClockIn DateTime Actual time the employee clocked in ClockOut DateTime Actual time the employee clocked out TimeCode Integer The numeric value of the payroll codes defined by Dressbarn and Maurices OverrideManagerID String The employee ID of the manager who last edited this record. Only applicable if the record was modified with BackOffice. MgrFullName String The full name of the manager identified by OverrideManagerID OverrideTimestamp DateTime The date and time the record was modified ClockInCode Integer Source of the clock in time 0 = POS 1 = Backoffice ClockOutCode Integer Source of the clock out time 0 = POS 1 = Backoffice DurationCode Integer This code indicates if the duration was calculated from clockings or entered manually in Backoffice 0 = Calculated from clockings 1 = Entered manually BusinessDate DateTime Calendar date of the operating day ChangeSequenceID Integer Sequence ID for changes to a given payroll record ChangeFlag String Indicates the operation context for the history record. This flag indicates if the history record shows added data, deleted data, or changed data. A = Added record. This data was added as a new record to the payroll summary table. D = Deleted record. This data was deleted as a deleted record from the payroll summary table. CB = Change Before. This was the state of a payroll summary record before an edit. Column Data Type Description CA = Change After. This is the state of a payroll record as a result of an edit.
PersonnelID String Personnel ID from employee table