mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Put color on own database. Umm.. Any relationship placed on the note controller.
This commit is contained in:
19
db/color.php
Normal file
19
db/color.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace OCA\QuickNotes\Db;
|
||||
|
||||
use JsonSerializable;
|
||||
|
||||
use OCP\AppFramework\Db\Entity;
|
||||
|
||||
class Color extends Entity implements JsonSerializable {
|
||||
|
||||
protected $color;
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'color' => $this->color
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user