﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using HockeyApp.Models.Users;

namespace HockeyApp.Models.News
{
    [Table("FavoritePosts", Schema = "news")]
    public class FavoritePost
    {
        public long PostId { get; set; }
        public virtual Post Post { get; set; }

        public long UserId { get; set; }
        public virtual User User { get; set; }

        [Required]
        [Column(TypeName = "datetime")]
        public DateTime CreationDate { get; set; }
    }
}