21 lines
597 B
C#
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!;
|
|
}
|
|
}
|