Spaces:
Running
Running
File size: 789 Bytes
b9c7f0e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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;
}
}
|