Initial commit

This commit is contained in:
Carl Tibule
2023-01-25 00:06:14 -06:00
commit e0b38beff6
37 changed files with 1593 additions and 0 deletions

19
YABA.Models/Tag.cs Normal file
View File

@ -0,0 +1,19 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using YABA.Models.Interfaces;
namespace YABA.Models
{
public class Tag : IIdentifiable, ISoftDeletable
{
public int Id { get; set; }
public bool IsDeleted { 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; }
}
}