forked from mtierltd/timetracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject.php
More file actions
31 lines (25 loc) · 747 Bytes
/
Project.php
File metadata and controls
31 lines (25 loc) · 747 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
30
31
<?php
// db/author.php
namespace OCA\TimeTracker\Db;
use OCP\AppFramework\Db\Entity;
class Project extends Entity {
public $id;
public $name;
public $color;
public $clientId;
public $createdByUserUid;
public $createdAt;
public $locked;
public $archived;
public function __construct() {
// add types in constructor
$this->addType('id', 'integer');
$this->addType('name', 'string');
$this->addType('color', 'string');
$this->addType('clientId', 'integer');
$this->addType('createdByUserUid', 'string');
$this->addType('createdAt', 'integer');
$this->addType('locked', 'integer');
$this->addType('archived', 'integer');
}
}