From 29322a4e9c2199f588c6b5d0b0e70b0c3c2f922e Mon Sep 17 00:00:00 2001 From: Finn Date: Sun, 22 Aug 2021 17:10:23 +0200 Subject: [PATCH] Change ticket entry to contain the data needed --- lib/Db/Ticket.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/Db/Ticket.php b/lib/Db/Ticket.php index 26f173d..04c0943 100644 --- a/lib/Db/Ticket.php +++ b/lib/Db/Ticket.php @@ -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, ]; } }