-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathGoal.php
More file actions
29 lines (23 loc) · 677 Bytes
/
Goal.php
File metadata and controls
29 lines (23 loc) · 677 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
29
<?php
// db/author.php
namespace OCA\TimeTracker\Db;
use OCP\AppFramework\Db\Entity;
class Goal extends Entity {
public $id;
public $userUid;
public $projectId;
public $projectName;
public $hours;
public $interval;
public $createdAt;
public function __construct() {
// add types in constructor
$this->addType('id', 'integer');
$this->addType('userUid', 'string');
$this->addType('projectId', 'integer');
$this->addType('projectName', 'string');
$this->addType('hours', 'integer');
$this->addType('interval', 'string');
$this->addType('createdAt', 'integer');
}
}