using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Start.Server.Models {
/// A group of s
public class BookmarkContainer {
/// A unique ID for the container
[Key]
public int BookmarkContainerId { get; set; }
/// A title to disply to the user
[MaxLength(300)]
public string Title { get; set; }
/// Used for sorting lists of bookmark containers
public int SortOrder { get; set; }
/// The unique ID of the user that this container belongs to
public string ApplicationUserId { get; set; }
/// The user that this container belongs to
public ApplicationUser? ApplicationUser { get; set; }
/// The s in this container
public List? BookmarkGroups { get; set; }
public BookmarkContainer(string applicationUserId, string title, int sortOrder) {
this.ApplicationUserId = applicationUserId;
this.Title = title;
this.SortOrder = sortOrder;
}
public BookmarkContainer(int bookmarkContainerId, string applicationUserId, string title,
int sortOrder) : this(applicationUserId, title, sortOrder) {
this.BookmarkContainerId = bookmarkContainerId;
}
}
}