using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Start.Server.Models {
/// A group of s
public class BookmarkGroup {
/// A unique ID for the group
[Key]
public int BookmarkGroupId { get; set; }
/// The title of the group
[MaxLength(300)]
public string Title { get; set; }
/// A hex color for the group
[MaxLength(6)]
public string Color { get; set; }
/// The unique ID of the container this group is in
public int BookmarkContainerId { get; set; }
/// The container this group is in
public BookmarkContainer? BookmarkContainer { get; set; }
/// The bookmarks in this group
public List? Bookmarks { get; set; }
public BookmarkGroup(string title, string color) {
this.Title = title;
this.Color = color;
}
public BookmarkGroup(int bookmarkGroupId, string title, string color) : this(title, color) {
this.BookmarkGroupId = bookmarkGroupId;
}
}
}