Client has been renamed to launcher, and thus namespaces and artifact names had to change. The server project has also had some artifacts renamed in order to create a more clear separation of builds. This will break auto-updates before v0.9.0.
32 lines
872 B
C#
32 lines
872 B
C#
using LANCommander.Launcher.Data.Enums;
|
|
using LANCommander.SDK.Enums;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace LANCommander.Launcher.Data.Models
|
|
{
|
|
[Table("Media")]
|
|
public class Media : BaseModel
|
|
{
|
|
public Guid FileId { get; set; }
|
|
[MaxLength(64)]
|
|
public string? Name { get; set; }
|
|
public MediaType Type { get; set; }
|
|
|
|
[MaxLength(2048)]
|
|
public string? SourceUrl { get; set; }
|
|
|
|
[MaxLength(255)]
|
|
public string? MimeType { get; set; }
|
|
|
|
[MaxLength(8)]
|
|
public string Crc32 { get; set; }
|
|
|
|
public Guid? GameId { get; set; }
|
|
[JsonIgnore]
|
|
[ForeignKey(nameof(GameId))]
|
|
[InverseProperty("Media")]
|
|
public virtual Game? Game { get; set; }
|
|
}
|
|
}
|