AyCode.Core/AyCode.Entities/Users
Loretta fbe142c6f3 Add detailed README.md files for all projects and folders
Added comprehensive README.md documentation to every project and subfolder in the solution. Each README describes the purpose, key files, structure, dependencies, and design patterns for its area. This improves codebase navigability and maintainability, and includes a maintenance note to keep docs in sync with future code changes.
2026-03-28 17:24:56 +01:00
..
AcUser.cs
AcUserToCompany.cs
AcUserTokenBase.cs
README.md Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00

README.md

Users

Abstract base entities for user accounts, authentication tokens, and user-to-company membership mappings. Mapped to the Users, UserToken, and UserToServiceProvider database tables.

Key Files

  • AcUser.cs — Generic abstract class (AcUser<TProfile, TCompany, TUserToServiceProvider, TProfileAddress>) implementing IAcUser. Holds email, password, phone, refresh token, affiliate/referral IDs, and navigation properties to Profile, ServiceProviders, and UserToServiceProviders.
  • AcUserTokenBase.cs — Abstract class for user verification tokens with Token, IsActive, TokenSent, and TokenExpiration fields. Uses an auto-incremented int primary key.
  • AcUserToCompany.cs — Generic abstract class (AcUserToCompany<TUser, TCompany>) implementing IAcUserToCompany. Many-to-many join entity linking users to companies with a Permissions field.

LLM Maintenance: If you modify code in this folder, update this README to reflect the changes. If you notice the README content does not match the current code, automatically update the README to match the code.