namespace BO.AppServer.Metadata.Enums
{
    public enum RoleEnum
    {
        /// <summary>
        /// Full access to all workspaces, can manage users in whole application
        /// </summary>
        SuperAdmin,
        /// <summary>
        /// Full access to own workspace, can manage users in own workspace, can assign roles
        /// </summary>
        Admin,
        /// <summary>
        /// User can logon to application, read-only mode
        /// </summary>
        User,
        /// <summary>
        /// System cannot access to web application, can cannot log in via any REST-API, has same permission as <see cref="SuperAdmin"/>.
        /// </summary>
        System,
        /// <summary>
        /// Console cannot access to web application, can only log in via REST-API Console, has same permissions permission as <see cref="SuperAdmin"/>.
        /// </summary>
        Console,
        /// <summary>
        /// Service cannot access to web application, can only log in via REST-API PS, has same permissions permission as <see cref="SuperAdmin"/>.
        /// </summary>
        Service,
        /// <summary>
        /// B2B cannot access to web application, can only log in via REST-API B2B, has same permissions permission as <see cref="SuperAdmin"/>.
        /// </summary>
        B2B,
        /// <summary>
        /// User can upload documents (create metadocuments)
        /// </summary>
        Uploader,
        /// <summary>
        /// User can download documents
        /// </summary>
        Downloader,
        /// <summary>
        /// User can download invoice and set billing plan
        /// </summary>
        Accountant,
    }
}
