Files
marechai/Marechai.Database/Models/SoftwarePlatformsByMachine.cs
Natalia Portillo 122fe89888 Add Software Platforms by Machine functionality
- Created migration to add `software_platforms_by_machine` table with necessary fields and constraints.
- Updated `MarechaiContext` to include `SoftwarePlatformsByMachine` DbSet and configured entity relationships.
- Implemented `SoftwarePlatformsByMachine` model to represent the junction between software platforms and machines.
- Developed `SoftwarePlatformsByMachineController` for CRUD operations, including endpoints to get, add, and delete software platforms associated with a machine.
- Enhanced `Machine` model to include a collection of `SoftwarePlatformsByMachine`.
- Updated UI components in `MachineDialog.razor` to manage software platforms, including search and removal functionalities.
- Added localization support for software platform management strings in multiple languages.
- Implemented service methods in `MachinesService` for managing software platforms associated with machines.
2026-04-30 01:54:04 +01:00

36 lines
1.6 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
*******************************************************************************/
namespace Marechai.Database.Models;
public class SoftwarePlatformsByMachine : BaseModel<long>
{
public ulong SoftwarePlatformId { get; set; }
public int MachineId { get; set; }
public virtual SoftwarePlatform SoftwarePlatform { get; set; }
public virtual Machine Machine { get; set; }
}