Files
GazpromApp/Models/Image.cs
T
2025-07-10 09:19:06 +03:00

17 lines
473 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GazpromApp.Models;
public class Image
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
public byte[] Bytes { get; set; } = [];
// EF stuff
public List<Point> Points { get; set; } = [];
public List<Equipment> Equipment { get; set; } = [];
}