-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNote.cs
More file actions
38 lines (32 loc) · 1.17 KB
/
Note.cs
File metadata and controls
38 lines (32 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Aquiis.Core.Entities
{
/// <summary>
/// Represents a timeline note/comment that can be attached to any entity
/// </summary>
public class Note : BaseModel
{
[Required]
[StringLength(5000)]
[Display(Name = "Content")]
public string Content { get; set; } = string.Empty;
[Required]
[StringLength(100)]
[Display(Name = "Entity Type")]
public string EntityType { get; set; } = string.Empty;
[Required]
[Display(Name = "Entity ID")]
public Guid EntityId { get; set; }
[StringLength(100)]
[Display(Name = "User Full Name")]
public string? UserFullName { get; set; }
// CreatedBy (UserId) comes from BaseModel - no navigation property needed in Core
// Individual projects can add navigation properties to their ApplicationUser if needed
// public partial class Note
// {
// [ForeignKey(nameof(CreatedBy))]
// public virtual ApplicationUser? User { get; set; }
// }
}
}