0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-12-06 11:22:41 +01:00

added resource entities

This commit is contained in:
Jonathan Treffler 2024-10-15 17:10:48 +02:00
parent d558c1dd82
commit 8064b75093
2 changed files with 72 additions and 0 deletions

22
lib/Db/Resource.php Normal file
View file

@ -0,0 +1,22 @@
<?php
namespace OCA\OrganizationFolders\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
abstract class Resource extends Entity implements JsonSerializable {
protected $groupFolderId;
protected $parentResource;
protected $name;
protected $active;
protected $lastUpdatedTimestamp;
public function __construct() {
$this->addType('groupFolderId','integer');
$this->addType('parentResource','integer');
$this->addType('active','bool');
$this->addType('lastUpdatedTimestamp','integer');
}
}