You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/apps/oauth2/lib/Db/Client.php

36 lines
929 B

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\OAuth2\Db;
use OCP\AppFramework\ORM\Attribute\Column;
use OCP\AppFramework\ORM\Attribute\Entity;
use OCP\AppFramework\ORM\Attribute\Id;
use OCP\DB\Schema\ColumnType;
/**
* @psalm-suppress MissingConstructor ORM based hydration
*/
#[Entity(name: 'oauth2_clients')]
final class Client {
#[Id, Column(name: 'id', type: ColumnType::Integer)]
public int $id;
#[Column(name: 'name', type: ColumnType::String, length: 64)]
public string $name;
#[Column(name: 'redirect_uri', type: ColumnType::String, length: 2000)]
public string $redirectUri;
#[Column(name: 'client_identifier', type: ColumnType::String, length: 64)]
public string $clientIdentifier;
#[Column(name: 'secret', type: ColumnType::String, length: 512)]
public string $secret;
}