aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data.Models/Post.cs
blob: a5e76427a8e223484758dbca18fbe0ed74be7763 (plain) (blame)
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
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using DevHive.Data.Models.Relational;

namespace DevHive.Data.Models
{
	[Table("Posts")]
	public class Post
	{
		public Guid Id { get; set; }

		public User Creator { get; set; }

		public string Message { get; set; }

		public DateTime TimeCreated { get; set; }

		public List<Comment> Comments { get; set; } = new();

		public List<Rating> Ratings { get; set; }

		public List<PostAttachments> Attachments { get; set; } = new();
	}
}