1
use crate::schema::Schema;
2

            
3
#[doc(hidden)]
4
pub mod database;
5
#[cfg(feature = "multiuser")]
6
#[doc(hidden)]
7
pub mod group;
8
#[doc(hidden)]
9
#[cfg(feature = "multiuser")]
10
pub mod role;
11
#[cfg(feature = "multiuser")]
12
#[doc(hidden)]
13
pub mod user;
14

            
15
pub use self::database::Database;
16
#[cfg(feature = "multiuser")]
17
pub use self::{group::PermissionGroup, role::Role, user::User};
18

            
19
/// The BonsaiDb administration schema.
20
50440
#[derive(Debug, Schema)]
21
#[schema(name = "bonsaidb-admin", authority = "khonsulabs", collections = [Database], core = crate)]
22
#[cfg_attr(feature = "multiuser", schema(collections = [PermissionGroup, Role, User]))]
23
pub struct Admin;
24

            
25
/// The name of the admin database.
26
pub const ADMIN_DATABASE_NAME: &str = "_admin";