# ContractRates: Horeko Contract Rates
Returns contracts
Returns list of contracts. Available sort options: Id, StartDate, EndDate, ContractHours, WorkingDays.
DaysOfWeek enum values: Sunday-0,Monday=1,Tuesday-2,Wednesday-3,Thursday-4,Friday-5,Saturday-6
This is a read-only table function. The Horeko API may not support modifying the data, or the Invantive UniversalSQL driver for Horeko does not support it. In the latter case, use the table NativePlatformScalarRequests to upload data to the Horeko API.
- Catalog: `Horeko`
- Schema: `Contracts`
- Label: Contract Rates
## Parameters of Table Function
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `activeDate` | `datetime` | ☐ | | get only contracts that are active for this specific date (format yyyy-mm-dd hh:mm:ss) |
| `sortBy` | `string` | ☐ | | comma separated list of available options for sorting |
| `sortDescending` | `boolean` | ☐ | | true = descending \| false = asceding. default is false |
## Columns
The columns of the table `ContractRates` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `AdditionalCostFactor` | `double` | Extra Cost Factor | ☐ | |
| `ContractHours` | `double` | Contract Hours | ☐ | |
| `ContractType_Id` | `int32` | | ☐ | |
| `ContractType_Name` | `string` | | ☐ | |
| `CreateDate` | `datetime` | Creation Date | ☐ | |
| `DaysOfWeek` | `string` | Days of Week | ☐ | |
| `Employee_FirstName` | `string` | | ☐ | |
| `Employee_Id` | `int32` | Employee ID | ☐ | |
| `Employee_LastName` | `string` | | ☐ | |
| `Employee_MiddleName` | `string` | | ☐ | |
| `EndDate_2` | `datetime` | | ☐ | |
| `EndDate` | `datetime` | End Date | ☐ | |
| `FunctionDescription` | `string` | Job Description | ☐ | |
| `HourlyRate` | `double` | Hourly Rate | ☐ | |
| `Id_2` | `int32` | | ☐ | |
| `Id` | `int32` | ID | ☐ | |
| `StartDate_2` | `datetime` | | ☐ | |
| `StartDate` | `datetime` | Start Date | ☐ | |
| `UpdateDate` | `datetime` | Update Date | ☐ | |
| `WorkingDays` | `int32` | Working Days | ☐ | |