Files
marechai/Marechai.Database/Models/MachineVideo.cs
Natalia Portillo 33c79423a6 Add video management functionality for machines
- Implemented MachineVideos.razor and MachineVideos.razor.cs for managing videos associated with machines.
- Added UI components for linking videos, displaying existing videos, and handling video title updates.
- Integrated video linking functionality with YouTube and other providers.
- Added delete confirmation dialog for video removal.
- Updated Machines.razor to include a link to the video management page.
- Enhanced the Machines view to display associated videos.
- Added localization support for new video management strings in English, German, Spanish, French, and Italian.
- Extended MachinesService to handle video-related API calls.
2026-05-07 23:58:13 +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 MachineVideo : BaseModel<long>
{
[Required]
public int MachineId { get; set; }
public virtual Machine Machine { 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; }
}