21 lines
562 B
C#
21 lines
562 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace GazpromApp.Models;
|
|
public class Image
|
|
{
|
|
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
[JsonIgnore]
|
|
public int Id { get; set; }
|
|
[Required]
|
|
public byte[] Bytes { get; set; } = [];
|
|
// EF stuff
|
|
[JsonIgnore]
|
|
public List<Point> Points { get; set; } = [];
|
|
[JsonIgnore]
|
|
public List<Equipment> Equipment { get; set; } = [];
|
|
} |