mirror of
https://gitee.com/xiarenalofs/squad-rain-ops-mini.git
synced 2026-08-10 23:11:56 +08:00
Initial commit: add RainOpsMini project and documentation
This commit is contained in:
24
Models/ServerInfoLog.cs
Normal file
24
Models/ServerInfoLog.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using SqlSugar;
|
||||
|
||||
namespace RainOpsMini.Models
|
||||
{
|
||||
[SugarTable("ServerInfoLogs")]
|
||||
public class ServerInfoLog
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
public DateTime Timestamp { get; set; }
|
||||
|
||||
public int PlayerCount { get; set; }
|
||||
|
||||
public int MaxPlayers { get; set; }
|
||||
|
||||
[SugarColumn(Length = 255)]
|
||||
public string MapName { get; set; } = string.Empty;
|
||||
|
||||
[SugarColumn(Length = 255, IsNullable = true)]
|
||||
public string ServerName { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user