nextcloud/lib/public/AppFramework/Db/Attribute/Table.php
Carl Schwan 14cd485ce2 feat(entity): Attributes for Entity
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-11-04 16:01:41 +01:00

26 lines
530 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH
* SPDX-FileContributor: Carl Schwan
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\AppFramework\Db\Attribute;
use Attribute;
use OCP\AppFramework\Attribute\Consumable;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\DB\Types;
#[Attribute(Attribute::TARGET_CLASS)]
#[Consumable(since: '33.0.0')]
final readonly class Table {
public function __construct(
public string $name,
public bool $useSnowflakeId = false,
) {
}
}