Path: redb/redb.Core/Models/Contracts/IRedbPermission.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Models/Contracts/IRedbPermission.cs
----
using System;
namespace redb.Core.Models.Contracts
{
///
/// REDB permission interface
/// Represents user or role access rights to object/schema
///
public interface IRedbPermission
{
///
/// Unique permission identifier
///
long Id { get; }
///
/// Role identifier (if permission is assigned to role)
///
long? IdRole { get; }
///
/// User identifier (if permission is assigned to user)
///
long? IdUser { get; }
///
/// Identifier of object/schema to which permission applies
///
long IdRef { get; }
///
/// Read permission (SELECT)
///
bool? Select { get; }
///
/// Create permission (INSERT)
///
bool? Insert { get; }
///
/// Update permission (UPDATE)
///
bool? Update { get; }
///
/// Delete permission (DELETE)
///
bool? Delete { get; }
}
}