mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 06:03:12 +00:00
- Add DispatchNumber and CompletedDate to Dispatch model - Add DispatchId to Comments for per-dispatch vendor threads - GetDispatchById endpoint with vendor communication thread - UpdateDispatch endpoint for status, NTE, dates, description - AddDispatchComment endpoint — saves comment + sends email to vendor with sender name - BackfillDispatchNumbers endpoint for existing dispatches - SyncVendorReplies endpoint — pulls from DynamoDB VendorReplies table - Fix reply-to address to include dispatch number - Include sender name in dispatch and comment emails
25 lines
965 B
C#
25 lines
965 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using static System.Runtime.InteropServices.JavaScript.JSType;
|
|
|
|
namespace Data.SeaHavenIndustries
|
|
{
|
|
public class Comments : FullAuditEntity
|
|
{
|
|
public string? Commenttext { get; set; }
|
|
public string? Commenter { get; set; }
|
|
public string? RecordType { get; set; }
|
|
public string? CommentType { get; set; }
|
|
public string? ExternalCommentId { get; set; }
|
|
public string? Documents { get; set; }
|
|
public string? UserId { get; set; }
|
|
[ForeignKey(nameof(UserId))]
|
|
public virtual ApplicationUser? ApplicationUser { get; set; }
|
|
public int? WorkerOrderId { get; set; }
|
|
[ForeignKey(nameof(WorkerOrderId))]
|
|
public virtual WorkOrder? WorkOrder { get; set; }
|
|
public int? DispatchId { get; set; }
|
|
[ForeignKey(nameof(DispatchId))]
|
|
public virtual Dispatch? Dispatch { get; set; }
|
|
}
|
|
}
|