mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
* somewhat functional yes * some cleanup * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * review * missed one * why not params… * review 2 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
// File to store DeltaV-specific database models
|
|
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Content.Server.Database;
|
|
|
|
// ReSharper disable once InconsistentNaming
|
|
public static class DVModel
|
|
{
|
|
/// <summary>
|
|
/// Stores tip dismissal preferences for a player, tracking which tips they've marked
|
|
/// as "Don't show again".
|
|
/// </summary>
|
|
[Table("dv_seen_tips")]
|
|
[Index(nameof(PlayerUserId), nameof(TipProtoId), IsUnique = true)]
|
|
public class SeenTip
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// The player's user ID (GUID). References the Player table.
|
|
/// </summary>
|
|
public Guid PlayerUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The prototype ID of the tip that was dismissed.
|
|
/// </summary>
|
|
[MaxLength(64)]
|
|
public string TipProtoId { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// When the tip was dismissed.
|
|
/// </summary>
|
|
public DateTime DismissedAt { get; set; }
|
|
}
|
|
}
|