Files
marechai/Marechai.Database/Models/MachinePromoArt.cs
Natalia Portillo 6199e9f623 Add machine promo art management features and localization support
- Implemented MachinePromoArtService for handling promo art operations including upload, update, and delete.
- Added new JavaScript helper for batch uploading promo art images.
- Enhanced localization files for Spanish, French, Italian, and Dutch with new promo art related strings.
- Registered MachinePromoArtService in the service container.
- Updated UI to support promo art management functionalities.
2026-06-19 19:13:13 +01:00

46 lines
1.7 KiB
C#

/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System;
using System.ComponentModel.DataAnnotations;
namespace Marechai.Database.Models;
public class MachinePromoArt : BaseModel<Guid>
{
[Required]
public int MachineId { get; set; }
public virtual Machine Machine { get; set; }
[Required]
public int GroupId { get; set; }
public virtual SoftwarePromoArtGroup Group { get; set; }
public string Caption { get; set; }
[Required]
public string OriginalExtension { get; set; }
}