2018-11-02 22:20:36 +00:00
|
|
|
|
using Roadie.Library.Enums;
|
|
|
|
|
using Roadie.Library.Identity;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace Roadie.Library.Data
|
|
|
|
|
{
|
|
|
|
|
[Table("bookmark")]
|
|
|
|
|
public partial class Bookmark : EntityBase
|
|
|
|
|
{
|
2019-11-28 17:38:26 +00:00
|
|
|
|
[Column("bookmarkTargetId")]
|
|
|
|
|
public int BookmarkTargetId { get; set; }
|
2018-11-02 22:20:36 +00:00
|
|
|
|
|
2019-07-03 16:21:29 +00:00
|
|
|
|
// public short? Type { get; set; }
|
2018-12-04 23:26:27 +00:00
|
|
|
|
|
2019-11-28 17:38:26 +00:00
|
|
|
|
[Column("bookmarkType")]
|
|
|
|
|
public BookmarkType? BookmarkType { get; set; }
|
2018-11-02 22:20:36 +00:00
|
|
|
|
|
2019-11-28 17:38:26 +00:00
|
|
|
|
[Column("Comment")]
|
|
|
|
|
[MaxLength(4000)]
|
|
|
|
|
public string Comment { get; set; }
|
2018-11-04 20:33:37 +00:00
|
|
|
|
|
2019-11-28 17:38:26 +00:00
|
|
|
|
[Column("position")]
|
|
|
|
|
public int? Position { get; set; }
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(UserId))]
|
|
|
|
|
[InverseProperty("Bookmarks")]
|
|
|
|
|
public virtual User User { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("userId")]
|
|
|
|
|
[Required]
|
|
|
|
|
public int UserId { get; set; }
|
2018-11-02 22:20:36 +00:00
|
|
|
|
}
|
|
|
|
|
}
|