Class RedbUser

Assembly: redb.Core.dll

REDB user entity with direct data storage.
Maps to _users table in PostgreSQL.

public class RedbUser : IRedbUser

Inheritance

ObjectRedbUser

Implements

Properties

CodeGuid

GUID code for distributed systems (optional).

[JsonPropertyName("code_guid")]
public Guid? CodeGuid { get; set; }

CodeInt

Integer code for categorization (optional).

[JsonPropertyName("code_int")]
public long? CodeInt { get; set; }

CodeString

String code for departments/branches (optional).

[JsonPropertyName("code_string")]
public string? CodeString { get; set; }

DateDismiss

User dismissal date (null if active).

[JsonPropertyName("date_dismiss")]
public DateTimeOffset? DateDismiss { get; set; }

DateRegister

User registration date.

[JsonPropertyName("date_register")]
public DateTimeOffset DateRegister { get; set; }

Email

User email (optional).

[JsonPropertyName("email")]
public string? Email { get; set; }

Enabled

Whether user is active.

[JsonPropertyName("enabled")]
public bool Enabled { get; set; }

Hash

Hash for data integrity verification (optional).

[JsonPropertyName("hash")]
public Guid? Hash { get; set; }

Id

Unique user identifier.

[JsonPropertyName("id")]
public long Id { get; set; }

IdConfiguration

Configuration object ID (optional).

[JsonPropertyName("id_configuration")]
public long? IdConfiguration { get; set; }

Key

Additional user key (optional).

[JsonPropertyName("key")]
public long? Key { get; set; }

Login

User login (unique).

[JsonPropertyName("login")]
public string Login { get; set; }

Name

User display name.

[JsonPropertyName("name")]
public string Name { get; set; }

Note

User notes or comments (optional).

[JsonPropertyName("note")]
public string? Note { get; set; }

Password

User password (hashed).

[JsonPropertyName("password")]
public string Password { get; set; }

Phone

User phone (optional).

[JsonPropertyName("phone")]
public string? Phone { get; set; }

SystemUser

System user (SYS_USER_ID = 0).

public static RedbUser SystemUser { get; }

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Constructors

RedbUser()

Default constructor for deserialization and mapping.

RedbUser(string, string, string)

Constructor with required fields.