mirror of
https://github.com/dotnet/skills.git
synced 2026-09-20 09:49:54 +08:00
e4670b33a1
* Add code testing agent agents + tests PoC * Remove AssertionEvaluator.cs change (moved to dev/jankrivanek/agents-evals)
48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ContosoUniversity.Models
|
|
{
|
|
public class Notification
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(100)]
|
|
public string EntityType { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(50)]
|
|
public string EntityId { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(20)]
|
|
public string Operation { get; set; } // CREATE, UPDATE, DELETE
|
|
|
|
[Required]
|
|
[StringLength(256)]
|
|
public string Message { get; set; }
|
|
|
|
[Required]
|
|
[Column(TypeName = "datetime2")]
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
[StringLength(100)]
|
|
public string CreatedBy { get; set; }
|
|
|
|
public bool IsRead { get; set; }
|
|
|
|
[Column(TypeName = "datetime2")]
|
|
public DateTime? ReadAt { get; set; }
|
|
}
|
|
|
|
public enum EntityOperation
|
|
{
|
|
CREATE,
|
|
UPDATE,
|
|
DELETE
|
|
}
|
|
}
|