forked from mtierltd/timetracker
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWorkItem.php
More file actions
28 lines (23 loc) · 671 Bytes
/
WorkItem.php
File metadata and controls
28 lines (23 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
// db/author.php
namespace OCA\TimeTracker\Db;
use OCP\AppFramework\Db\Entity;
class WorkItem extends Entity {
public $id;
public $name;
public $projectId;
public $tagId;
public $totalDuration;
public $createdAt;
public $userUid;
public function __construct() {
// add types in constructor
$this->addType('id', 'integer');
$this->addType('name', 'string');
$this->addType('projectId', 'integer');
$this->addType('tagId', 'integer');
$this->addType('totalDuration', 'integer');
$this->addType('createdAt', 'timestamp');
$this->addType('userUid', 'string');
}
}