Add database tables to tag notes

This commit is contained in:
Matias De lellis
2019-11-06 09:25:36 -03:00
parent 7cc02889f8
commit 8396e2a40a
6 changed files with 154 additions and 1 deletions

21
db/tag.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
namespace OCA\QuickNotes\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Tag extends Entity implements JsonSerializable {
protected $name;
protected $userId;
public function jsonSerialize() {
return [
'id' => $this->id,
'name' => $this->name,
'userid' => $this->userId
];
}
}