using System.ComponentModel.DataAnnotations.Schema; namespace eprintServer.Entities; using System.Text.Json.Serialization; [Table("product_mockups")] public class Mockup { [Column("id")] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } [Column("name")] public string? Name { get; set; } [Column("design_width")] public double DesignWidth { get; set; } [Column("design_height")] public double DesignHeight { get; set; } [Column("print_width")] public double PrintWidth { get; set; } [Column("print_height")] public double PrintHeight { get; set; } [JsonIgnore] [Column("customizable_product_id")] public long CustomizableProductId { get; set; } [Column("file_id")] public long? FileId { get; set; } // Unidirectional relation to FileModel public FileModel? File { get; set; } [Column("thumbnail_file_id")] public long? ThumbnailFileId { get; set; } public FileModel? Thumbnail { get; set; } [Column("timestmp")] public DateTime Timestamp { get; set; } = DateTime.UtcNow; }