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

24
YABA.Models/Bookmark.cs Normal file
View File

@ -0,0 +1,24 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using YABA.Models.Interfaces;
namespace YABA.Models
{
public class Bookmark : IIdentifiable, ISoftDeletable, IDateCreatedTrackable, IDateModifiedTrackable
{
public int Id { get; set; }
public bool IsDeleted { get; set; }
public DateTimeOffset CreatedOn { get; set; }
public DateTimeOffset LastModified { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string Note { get; set; }
public bool IsHidden { get; set; }
[Required]
[ForeignKey(nameof(User))]
public int UserId { get; set; }
public virtual User User { get; set; }
}
}