fronted: login

This commit is contained in:
2025-08-15 20:03:07 +02:00
parent f61b48fa4b
commit 1b2d95344a
184 changed files with 5238 additions and 232 deletions

View File

@@ -3,9 +3,11 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace back.DataModels;
[Table("Photo")]
[Table("Photos")]
public class PhotoModel
{
public PhotoModel() { }
[Key]
public string Id { get; set; }
[Required, MaxLength(100), MinLength(1)]
@@ -20,12 +22,16 @@ public class PhotoModel
public DateTime UpdatedAt { get; set; }
public string CreatedBy { get; set; }
public string UpdatedBy { get; set; }
[ForeignKey("EventId")]
public EventModel? Event { get; set; } = null;
[ForeignKey("TagId")]
public List<TagModel> Tags { get; set; } = [];
[ForeignKey("RankingId")]
public RankingModel Ranking { get; set; } = new RankingModel(0);
public bool IsFavorite { get; set; } = false;
public bool IsPublic { get; set; } = true;
public bool IsArchived { get; set; } = false;
[ForeignKey("PersonId")]
public List<PersonModel>? Persons { get; set; }
public PhotoModel(