FlowAPI / FlowAPI.Domain /Entities /Achievement.cs
danylokhodus's picture
init
b9c7f0e
Raw
History Blame Contribute Delete
789 Bytes
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;
}
}