Files
mmorales.photo/back/DataModels/GalleryModel.cs

28 lines
972 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace back.DataModels;
[Table("Galleries")]
public class GalleryModel
{
[Key]
public string Id { get; set; }
[MaxLength(100)]
public string? Title { get; set; }
[MaxLength(500)]
public string? Description { get; set; }
public DateTime? CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
public string? CreatedBy { get; set; }
public string? UpdatedBy { get; set; }
public List<PhotoModel> Photos { get; set; } = new();
public bool? IsPublic { get; set; } = true;
public bool? IsArchived { get; set; } = false;
public bool? IsFavorite { get; set; } = false;
public EventModel? Event { get; set; } = null;
public List<TagModel>? Tags { get; set; } = null;
public List<PersonModel>? PersonsInvolved { get; set; } = null;
public List<PersonModel>? UsersWhoCanSee { get; set; } = null;
}