aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Entities/DataEntity.cs
blob: b21e2dbfdcdd6469b714dd08f8cbc038c4fcb26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Timeline.Entities
{
    [Table("data")]
    public class DataEntity
    {
        [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        [Column("tag"), Required]
        public string Tag { get; set; } = default!;

        [Column("data"), Required]
#pragma warning disable CA1819 // Properties should not return arrays
        public byte[] Data { get; set; } = default!;
#pragma warning restore CA1819 // Properties should not return arrays

        [Column("ref"), Required]
        public int Ref { get; set; }
    }
}