1
use crate::schema::Schema;
2

            
3
#[doc(hidden)]
4
pub mod authentication_token;
5
#[doc(hidden)]
6
pub mod database;
7
#[doc(hidden)]
8
pub mod group;
9
#[doc(hidden)]
10
pub mod role;
11
#[doc(hidden)]
12
pub mod user;
13

            
14
pub use self::authentication_token::AuthenticationToken;
15
pub use self::database::Database;
16
pub use self::group::PermissionGroup;
17
pub use self::role::Role;
18
pub use self::user::User;
19

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

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