Add editorconfig and analyzers, format backend code
This commit is contained in:
@@ -1,43 +1,42 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Musify.Domain.Abstractions;
|
||||
|
||||
namespace Musify.Domain.Entities
|
||||
namespace Musify.Domain.Entities;
|
||||
|
||||
[Table("User")]
|
||||
public class User : IAuditable
|
||||
{
|
||||
[Table("User")]
|
||||
public class User : IAuditable
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public required long Id { get; set; }
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public required long Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(48)]
|
||||
public required string Name { get; set; }
|
||||
[Required]
|
||||
[MaxLength(48)]
|
||||
public required string Name { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(48)]
|
||||
public required string NormalizedName { get; set; }
|
||||
[Required]
|
||||
[MaxLength(48)]
|
||||
public required string NormalizedName { get; set; }
|
||||
|
||||
[MaxLength(48)]
|
||||
public string? FirstName { get; set; }
|
||||
[MaxLength(48)]
|
||||
public string? FirstName { get; set; }
|
||||
|
||||
[MaxLength(48)]
|
||||
public string? SecondName { get; set; }
|
||||
[MaxLength(48)]
|
||||
public string? SecondName { get; set; }
|
||||
|
||||
[MaxLength(2048)]
|
||||
public string? ProfilePictureUrl { get; set; }
|
||||
[MaxLength(2048)]
|
||||
public string? ProfilePictureUrl { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
[Required]
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
[Required]
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
[Required]
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public ICollection<UserHasTrack> UserTracks { get; set; } = new List<UserHasTrack>();
|
||||
public ICollection<UserHasTrack> UserTracks { get; set; } = new List<UserHasTrack>();
|
||||
|
||||
public ICollection<PlayList> PlayLists { get; set; } = new List<PlayList>();
|
||||
public ICollection<PlayList> PlayLists { get; set; } = new List<PlayList>();
|
||||
|
||||
public ICollection<ListeningHistory> ListeningHistories { get; set; } = new List<ListeningHistory>();
|
||||
}
|
||||
}
|
||||
public ICollection<ListeningHistory> ListeningHistories { get; set; } = new List<ListeningHistory>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user