Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user