// SPDX-FileCopyrightText: Politik im Blick developers
// SPDX-FileCopyrightText: Wolfgang Silbermayr <wolfgang@silbermayr.at>
//
// SPDX-License-Identifier: AGPL-3.0-or-later OR EUPL-1.2

use pib_service_core_types::{Entity, UserId};
use serde::{Deserialize, Serialize};

pub mod get;

pub mod by_id;

#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
pub struct User {
    pub sub: String,
    pub display_name: Option<String>,
    pub is_superuser: bool,
}

impl Entity<(), UserId> for User {}
