mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Upgrade to some new nextcloud standards
This commit is contained in:
23
lib/Db/NoteTag.php
Normal file
23
lib/Db/NoteTag.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace OCA\QuickNotes\Db;
|
||||
|
||||
use JsonSerializable;
|
||||
|
||||
use OCP\AppFramework\Db\Entity;
|
||||
|
||||
class NoteTag extends Entity implements JsonSerializable {
|
||||
|
||||
protected $noteId;
|
||||
protected $tagId;
|
||||
protected $userId;
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'noteid' => $this->noteId,
|
||||
'tagid' => $this->tagId,
|
||||
'userid' => $this->userId
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user