AyCode.Core/AyCode.Entities/Profiles/ProfileBase.cs

29 lines
802 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AyCode.Entities.Profiles
{
[Table("ProfileBase")]
public class ProfileBase : IProfileBase
{
public ProfileBase() { }
public ProfileBase(Guid ownerId) : this()
{
OwnerId = ownerId;
}
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
public Guid Id { get; set; }
public Guid OwnerId { get; }
public Guid UserMediaId { get; set; }
public string? ThumbnailUrl { get ; set; }
public DateTime Created { get; set; }
public DateTime Modified { get; set; }
}
}