All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Created Dockerfile for packing up API and Web projects as Docker image
22 lines
578 B
C#
22 lines
578 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using YABA.Models.Interfaces;
|
|
|
|
namespace YABA.Models
|
|
{
|
|
public class Tag : IIdentifiable
|
|
{
|
|
public int Id { get; set; }
|
|
public string Name { get; set; }
|
|
public bool IsHidden { get; set; }
|
|
|
|
[Required]
|
|
[ForeignKey(nameof(User))]
|
|
public int UserId { get; set; }
|
|
public virtual User User { get; set; }
|
|
|
|
public virtual ICollection<BookmarkTag> TagBookmarks { get; set; }
|
|
}
|
|
}
|