Files
PowderCoatingLogix/src/PowderCoating.Core/Entities/JobPrepService.cs
T
2026-04-23 21:38:24 -04:00

21 lines
597 B
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace PowderCoating.Core.Entities
{
/// <summary>
/// Join table for the many-to-many relationship between Jobs and PrepServices
/// </summary>
public class JobPrepService : BaseEntity
{
public int JobId { get; set; }
public int PrepServiceId { get; set; }
// Navigation properties
[ForeignKey(nameof(JobId))]
public virtual Job Job { get; set; } = null!;
[ForeignKey(nameof(PrepServiceId))]
public virtual PrepService PrepService { get; set; } = null!;
}
}