# TaskMeta Model
| DB Table Name | {wp_db_prefix}_fbs_task_metas |
|---|---|
| Schema | Check Schema |
| Source File | fluent-boards/app/Models/TaskMeta.php |
| Name Space | FluentBoards\App\Models |
| Class | FluentBoards\App\Models\TaskMeta |
# Attributes
| Attribute | Data Type | Comment |
|---|---|---|
| id | INT UNSIGNED Auto Increment | Primary key of the task meta |
| task_id | INT UNSIGNED | ID of the associated task |
| key | VARCHAR(100) | Key for the meta information |
| value | LONGTEXT NULL | Value of the meta information |
| created_at | TIMESTAMP NULL | Timestamp when the meta was created |
| updated_at | TIMESTAMP NULL | Timestamp when the meta was last updated |
# Usage
Please check Model Basic for Common methods.
# Accessing Attributes
$taskMeta = FluentBoards\App\Models\TaskMeta::find(1);
$taskMeta->id; // returns id
$taskMeta->key; // returns key
$taskMeta->value; // returns value (unserialized)
.......
1
2
3
4
5
6
2
3
4
5
6
# Relations
This model has the following relationships that you can use
# task
Access the associated task
- return
FluentTaskMetas\App\Models\TaskModel Collection
# Example:
$task = $taskMeta->task;
1