Change ticket entry to contain the data needed

This commit is contained in:
Finn 2021-08-22 17:10:23 +02:00
parent 0e2f6f944d
commit 29322a4e9c

View file

@ -8,14 +8,20 @@ use OCP\AppFramework\Db\Entity;
class Ticket extends Entity implements JsonSerializable {
protected $title;
protected $content;
protected $userId;
protected $description;
protected $helperId;
protected $creatorId; // The ID of the person who created the Ticked. Usually the person who needs help.
protected $dueDate;
protected $status;
public function jsonSerialize(): array {
return [
'id' => $this->id,
'title' => $this->title,
'content' => $this->content
'description' => $this->description,
'helperId' => $this->helperId,
'dueDate' => $this->dueDate,
'status' => $this->status,
];
}
}