aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data.Models/Post.cs
blob: 716248f308729521ebf966a0f1f7de1f9e447128 (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
26
27
28
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using DevHive.Data.Models.Interfaces;
using DevHive.Data.Models.Relational;

namespace DevHive.Data.Models
{
	[Table("Posts")]
	public class Post : IPost
	{
		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 int CurrentRating { get; set; }

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