Introduce a Drawing table that tracks unique drawing numbers with their current PDF content hash and revision counter. ExportRecord gains a DrawingId FK. Includes a data migration to seed Drawings from existing export records. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
439 B
C#
16 lines
439 B
C#
using System.Collections.Generic;
|
|
|
|
namespace FabWorks.Core.Models
|
|
{
|
|
public class Drawing
|
|
{
|
|
public int Id { get; set; }
|
|
public string DrawingNumber { get; set; }
|
|
public string Title { get; set; }
|
|
public string PdfContentHash { get; set; }
|
|
public int Revision { get; set; } = 1;
|
|
|
|
public virtual ICollection<ExportRecord> ExportRecords { get; set; } = new List<ExportRecord>();
|
|
}
|
|
}
|