Migrate from User to Account domain concept

Renames core domain entities and services from "User" to "Account"

Refactors project-wide namespaces, classes, and database tables to use "Account" terminology
Updates related components, services, and database schema to reflect new domain naming
Standardizes naming conventions across authentication and organization setup features
This commit is contained in:
Janus C. H. Knudsen 2026-01-09 22:14:46 +01:00
parent e5e7c1c19f
commit 88812177a9
29 changed files with 288 additions and 298 deletions

View file

@ -3,6 +3,6 @@
public class CreateOrganizationCommand
{
public string ConnectionString { get; set; }
public Guid UserId { get; set; }
public Guid AccountId { get; set; }
}
}

View file

@ -26,9 +26,9 @@ namespace PlanTempus.Components.Organizations.Create
var orgResult = data.First();
await db.Connection.ExecuteAsync(@$"
INSERT INTO user_organizations (user_id, organization_id)
VALUES (@UserId, @OrganizationId)",
new { command.UserId, OrganizationId = orgResult.Id });
INSERT INTO account_organizations (account_id, organization_id)
VALUES (@AccountId, @OrganizationId)",
new { command.AccountId, OrganizationId = orgResult.Id });
transaction.Commit();