Files
marechai/Marechai.Database/Models/ProcessorVideo.cs
Natalia Portillo 459880161d Add video management functionality for processors
- Created ProcessorVideos.razor and ProcessorVideos.razor.cs for managing videos associated with processors.
- Implemented video linking, title updating, and deletion features.
- Added UI components for video management, including input fields for YouTube URLs and video IDs.
- Integrated video display in the processor view with support for YouTube embeds.
- Updated localization files for new video management strings in multiple languages.
- Enhanced ProcessorsService to handle video-related API calls.
2026-05-08 09:00:58 +01:00

47 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.ComponentModel.DataAnnotations;
namespace Marechai.Database.Models;
public class ProcessorVideo : BaseModel<long>
{
[Required]
public int ProcessorId { get; set; }
public virtual Processor Processor { get; set; }
[Required]
[StringLength(32)]
public string Provider { get; set; }
[Required]
[StringLength(64)]
public string VideoId { get; set; }
[StringLength(512)]
public string Title { get; set; }
}