Change editor rule

This commit is contained in:
2026-09-24 13:24:43 +02:00
parent 16478678b5
commit 73e37dbecd
401 changed files with 14735 additions and 12995 deletions
@@ -1,23 +1,24 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Musify.Domain.Entities;
[Table("UserFollows")]
public class UserFollow
namespace Musify.Domain.Entities
{
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
[Table("UserFollows")]
public class UserFollow
{
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
public required long FollowerId { get; set; }
public required long FollowerId { get; set; }
public required long FollowedId { get; set; }
public required long FollowedId { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
[ForeignKey(nameof(FollowerId))]
public User Follower { get; set; } = null!;
[ForeignKey(nameof(FollowerId))]
public User Follower { get; set; } = null!;
[ForeignKey(nameof(FollowedId))]
public User Followed { get; set; } = null!;
[ForeignKey(nameof(FollowedId))]
public User Followed { get; set; } = null!;
}
}