mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
4edf25b2d5
Targets Rec Room 2020.12.18 client.
Re-import after adding:
- DorkNet.ClientMod/dorknet-clientmod.json.template — config schema
the launcher's manifest-driven patcher renders into UserData/.
- tools/build-patcher-zip.ps1 — produces the dorknet-clientpatch-{key}.zip
Release asset the launcher fetches.
- .github/workflows/release.yml — auto-publishes both Release assets
on v1-december-* tag push.
Scrubbed via maintainer-side scrub-for-public.ps1: same drop rules as
the prior import, plus build-patcher-zip.ps1 added to the tools/
allow-list so it survives the scrub.
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
namespace DorkNet.Server.Data.Entities;
|
|
|
|
/// <summary>
|
|
/// One cheer (the watch's positive-feedback button). Targets exactly
|
|
/// one of: a player (stored on <see cref="TargetPlayerId"/>), a room
|
|
/// (<see cref="TargetRoomId"/>), or a photo (<see cref="TargetPhotoId"/>).
|
|
/// Unused targets are 0. Aggregated reputation queries SUM rows by
|
|
/// target.
|
|
///
|
|
/// One row per (FromPlayer, target, Type) — re-cheering is idempotent
|
|
/// (we upsert on the unique index).
|
|
/// </summary>
|
|
public class CheerEntity
|
|
{
|
|
public long Id { get; set; }
|
|
|
|
public long FromPlayerId { get; set; }
|
|
|
|
public long TargetPlayerId { get; set; }
|
|
public long TargetRoomId { get; set; }
|
|
public long TargetPhotoId { get; set; }
|
|
public long TargetInventionId { get; set; }
|
|
|
|
/// <summary>RoomieCheerType enum mirror: 0=General, 1=Helpful,
|
|
/// 2=GreatHost, 3=Sportsman, 4=Creative, 5=Credit. Stored as int
|
|
/// to leave room for future categories without a migration.</summary>
|
|
public int Type { get; set; }
|
|
|
|
public DateTime CheeredAt { get; set; } = DateTime.UtcNow;
|
|
}
|