Files
Delta-v/Content.Server.Database/DVModel.cs
T
Milonandpre-commit-ci[bot] e0fd0cb2cd tips / tutorial system (#5199)
* 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>
2026-01-14 14:23:39 -06:00

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; }
}
}