aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Entities/TimelinePostDataEntity.cs
blob: 6ae8fd24e5a4e7296ba08af9adf4cf339b1d52b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

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

        [Column("post")]
        public long PostId { get; set; }

        [ForeignKey(nameof(PostId))]
        public TimelinePostEntity Timeline { get; set; } = default!;

        [Column("index")]
        public long Index { get; set; }

        [Column("kind")]
        public string Kind { get; set; } = default!;

        [Column("data_tag")]
        public string DataTag { get; set; } = default!;

        [Column("last_updated")]
        public DateTime LastUpdated { get; set; }
    }
}