62a5121ffe
Build backend images / build content-svc (push) Failing after 56s
Build backend images / build file-svc (push) Failing after 54s
Build backend images / build gateway (push) Failing after 1m1s
Build backend images / build identity-svc (push) Failing after 55s
Build backend images / build notification-svc (push) Failing after 54s
Build backend images / build render-svc (push) Failing after 52s
Build backend images / build studio-svc (push) Failing after 1m2s
Modeled on the legacy DivineGateWeb admin (CRM + Security/* actions):
- identity-svc AdminService + AdminController (admin-gated):
- GET /v1/admin/crm/analytics — signups/buyers/conversion/revenue + daily series
(from identity.users + identity.payments)
- GET/PUT /v1/users/{id}/crm — tags / note / pipeline status (user_crm table, mig 20)
- power-actions: POST /v1/users/{id}/{balance,password,charge,moderator,grant-plan}
- admin UI: /admin/crm dashboard (funnel cards + daily signup/revenue bars);
per-user "مدیریت" modal in Users (balance, render charge, plan days, password,
moderator, CRM notes)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
442 B
C#
12 lines
442 B
C#
namespace FlatRender.IdentitySvc.Domain.Entities;
|
|
|
|
/// <summary>Lightweight CRM overlay for a customer (tags / note / pipeline status).</summary>
|
|
public class UserCrm
|
|
{
|
|
public Guid UserId { get; set; }
|
|
public string[] Tags { get; set; } = [];
|
|
public string? Note { get; set; }
|
|
public string Status { get; set; } = "new"; // new | contacted | customer | churned
|
|
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
|
}
|