fronted: login
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user