add mare profiles
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MareSynchronosShared.Models;
|
||||
|
||||
public class UserProfileData
|
||||
{
|
||||
public string Base64ProfileImage { get; set; }
|
||||
public bool FlaggedForReport { get; set; }
|
||||
public bool IsNSFW { get; set; }
|
||||
public bool ProfileDisabled { get; set; }
|
||||
public User User { get; set; }
|
||||
|
||||
public string UserDescription { get; set; }
|
||||
|
||||
[Required]
|
||||
[Key]
|
||||
[ForeignKey(nameof(User))]
|
||||
public string UserUID { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace MareSynchronosShared.Models;
|
||||
|
||||
public class UserProfileDataReport
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
|
||||
public DateTime ReportDate { get; set; }
|
||||
public User ReportedUser { get; set; }
|
||||
|
||||
[ForeignKey(nameof(ReportedUser))]
|
||||
public string ReportedUserUID { get; set; }
|
||||
|
||||
public User ReportingUser { get; set; }
|
||||
|
||||
[ForeignKey(nameof(ReportingUser))]
|
||||
public string ReportingUserUID { get; set; }
|
||||
|
||||
public string ReportReason { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user