Skip to content

UserDao

Namespace: SlottyMedia.Database.Daos

This class represents the User table in the database.

public class UserDao : Supabase.Postgrest.Models.BaseModel

Inheritance Object → BaseModel → UserDao

Properties

UserId

The ID of the User. This is the Primary Key. The User ID is generated by the Supabase Authentication Service.

public Nullable<Guid> UserId { get; set; }

Property Value

Nullable<Guid>

Role

The Role of the User. This is a Reference to the Role Table. It is a Foreign Key. Be aware, that this Field will not be filled when you insert the User into the Database.

public RoleDao Role { get; set; }

Property Value

RoleDao

RoleId

The ID of the Role the User has. This is a Foreign Key to the Role Table.

public Nullable<Guid> RoleId { get; set; }

Property Value

Nullable<Guid>

UserName

The Username of the User.

public string UserName { get; set; }

Property Value

String

Email

The Email of the User.

public string Email { get; set; }

Property Value

String

Description

The Description of the User.

public string Description { get; set; }

Property Value

String

ProfilePic

The Profile Picture of the User.

public string ProfilePic { get; set; }

Property Value

String

CreatedAt

The Date and Time the User was created.

public DateTimeOffset CreatedAt { get; set; }

Property Value

DateTimeOffset

BaseUrl

public string BaseUrl { get; set; }

Property Value

String

RequestClientOptions

public ClientOptions RequestClientOptions { get; set; }

Property Value

ClientOptions

TableName

public string TableName { get; }

Property Value

String

PrimaryKey

public Dictionary<PrimaryKeyAttribute, object> PrimaryKey { get; }

Property Value

Dictionary<PrimaryKeyAttribute, Object>

Constructors

UserDao()

The defaulkt constructor for the User Dao.

public UserDao()

UserDao(Guid, Guid, String, String, String, String)

The constructor for the User Dao.

public UserDao(Guid userId, Guid roleId, string userName, string email, string description, string profilePic)

Parameters

userId Guid

roleId Guid

userName String

email String

description String

profilePic String

Methods

ToString()

The ToString method returns a string representation of the UserDao object.

public string ToString()

Returns

String