using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; using eprintServer.Enums; namespace eprintServer.Entities; public class TextureSlot { [Column("id")] public long Id { get; set; } [Column("name")] public string Name { get; set; } [Column("texture_type")] public TextureType TextureType { get; set; } [Column("uv_coordinates", TypeName = "jsonb")] public UvCoordinates UvCoordinates { get; set; } = new UvCoordinates(); [Column("file_id")] public long? FileId { get; set; } [JsonIgnore] // Optional: prevents circular ref in some serializers public FileModel? File { get; set; } [Column("customizable_product_id")] public long CustomizableProductId { get; set; } }