Files
marechai/Marechai.Database/Models/MobyGamesCoverDownloadState.cs
Natalia Portillo d7f6cb4e6a feat(database): widen Countries column in MobyGamesCoverDownloadStates to 2048 characters
- Updated the Countries column in the MobyGamesCoverDownloadStates table to allow a maximum length of 2048 characters, increasing from the previous limit of 512 characters.
- Modified the corresponding model property in MobyGamesCoverDownloadState to reflect the new length constraint.
- Adjusted the migration snapshot to ensure the database schema is in sync with the updated model.
2026-06-05 12:34:53 +01:00

48 lines
1.0 KiB
C#

using System;
using System.ComponentModel.DataAnnotations;
using Marechai.Data;
namespace Marechai.Database.Models;
public class MobyGamesCoverDownloadState : BaseModel<long>
{
[Required]
[StringLength(64)]
public string MobyGameId { get; set; }
public ulong SoftwareId { get; set; }
[Required]
[StringLength(512)]
public string CoverPageUrl { get; set; }
[Required]
[StringLength(1024)]
public string CoverType { get; set; }
[Required]
[StringLength(256)]
public string Platform { get; set; }
[StringLength(2048)]
public string Countries { get; set; }
[StringLength(64)]
public string GroupId { get; set; }
[Required]
public MobyGamesCoverDownloadStatus Status { get; set; }
[StringLength(1024)]
public string ErrorMessage { get; set; }
public DateTime? ProcessedOn { get; set; }
public Guid? SoftwareCoverId { get; set; }
public ulong? SoftwareReleaseId { get; set; }
[StringLength(1024)]
public string OriginalUrl { get; set; }
}