blob: 9bc5d3e8d80275056044797c28c7206a92724fbd (
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
32
|
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; }
[Required]
[Column("post")]
public long PostId { get; set; }
[ForeignKey(nameof(PostId))]
public TimelinePostEntity Post { 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; }
}
}
|