Spaces:
Running
Running
| using System; | |
| using FlowAPI.Domain.Enums; | |
| namespace FlowAPI.Domain.Entities | |
| { | |
| public class Achievement | |
| { | |
| public Guid Id { get; set; } | |
| public string Title { get; set; } = string.Empty; | |
| public string Description { get; set; } = string.Empty; | |
| public string IconUrl { get; set; } = string.Empty; | |
| public string Category { get; set; } = string.Empty; | |
| public AchievementType Type { get; set; } | |
| public int TargetValue { get; set; } | |
| public int RewardPoints { get; set; } | |
| // This tells the backend what event triggers this achievement | |
| // e.g. "NodeCreated", "HabitCompleted", "EdgeCreated", "GraphDeleted" | |
| public string TriggerEventName { get; set; } = string.Empty; | |
| } | |
| } | |