> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-worktree-351-fix-webapi-escaped-anchors.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# scheduled_task table

> A scheduled entry executing a script at certain times

## scheduled\_task Table (376)

A scheduled entry executing a script at certain times

## Fields

| Name         | Description                                         | Type                          | Nullable |
| ------------ | --------------------------------------------------- | ----------------------------- | :------: |
| id           | Primary key                                         | PK                            |    No    |
| script\_id   | The id of the script to execute.                    | FK [ejscript](./ejscript.mdx) |    Yes   |
| schedule\_id | Update schedule                                     | FK [schedule](./schedule.mdx) |    Yes   |
| description  | Optional description of what this task is used for. | String(2047)                  |    Yes   |

<img src="https://mintcdn.com/superofficeas-worktree-351-fix-webapi-escaped-anchors/KsvSyGQJCWf4OHdL/media/loc/en/database/tables/scheduled_task.png?fit=max&auto=format&n=KsvSyGQJCWf4OHdL&q=85&s=9782d24da09bd754df97d9ae4c166e8a" alt="scheduled_task table relationship diagram" width="635" height="59" data-path="media/loc/en/database/tables/scheduled_task.png" />

## Indexes

| Fields       | Types | Description |
| ------------ | ----- | ----------- |
| script\_id   | FK    | Index       |
| schedule\_id | FK    | Index       |

## Relationships

| Table                  | Description                                                                   |
| ---------------------- | ----------------------------------------------------------------------------- |
| [ejscript](./ejscript) | ejscript                                                                      |
| [schedule](./schedule) | Generic scheduled tasked handling time scheduling, locking and error messages |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.
