init_db
This commit is contained in:
32
PARR.DAL/Models/Job.cs
Normal file
32
PARR.DAL/Models/Job.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using PARR.DAL.Models.Base;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PARR.DAL.Models
|
||||
{
|
||||
[Table("Jobs")]
|
||||
public class Job : IBase
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
public DateTimeOffset DateCreated { get; set; }
|
||||
public DateTimeOffset? DateModified { get; set; }
|
||||
public required string Name { get; set; }
|
||||
|
||||
|
||||
public Guid JobModeId { get; set; }
|
||||
[ForeignKey(nameof(JobModeId))]
|
||||
public JobMode? JobMode { get; set; }
|
||||
|
||||
public Guid JobCategoryId { get; set; }
|
||||
[ForeignKey(nameof(JobCategoryId))]
|
||||
public JobCategory? JobCategorye { get; set; }
|
||||
|
||||
public Guid JobTypeId { get; set; }
|
||||
[ForeignKey(nameof(JobTypeId))]
|
||||
public JobType? JobType { get; set; }
|
||||
|
||||
|
||||
public ICollection<JobJournal> Journals { get; set; } = new HashSet<JobJournal>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user