mirror of
https://github.com/nextcloud/recognize.git
synced 2026-01-30 16:53:40 +00:00
44 lines
1001 B
PHP
44 lines
1001 B
PHP
<?php
|
|
|
|
/*
|
|
* Copyright (c) 2022 The Recognize contributors.
|
|
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
|
|
*/
|
|
declare(strict_types=1);
|
|
namespace OCA\Recognize\Db;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
/**
|
|
* Class FsAccessUpdate
|
|
*
|
|
* @package OCA\Recognize\Db
|
|
* @method int getStorageId()
|
|
* @method setStorageId(int $storageId)
|
|
* @method int getRootId()
|
|
* @method setRootId(int $rootId)
|
|
*/
|
|
final class FsAccessUpdate extends Entity {
|
|
protected ?int $storageId = null;
|
|
protected ?int $rootId = null;
|
|
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
public static array $columns = ['id', 'storage_id', 'root_id'];
|
|
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
public static array $fields = ['id', 'storageId', 'rootId'];
|
|
|
|
public static string $tableName = 'recognize_fs_access_updates';
|
|
|
|
public function __construct() {
|
|
// add types in constructor
|
|
$this->addType('id', 'integer');
|
|
$this->addType('storageId', 'integer');
|
|
$this->addType('rootId', 'integer');
|
|
}
|
|
}
|