28 lines
635 B
C#
28 lines
635 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace CampusErrand.Models;
|
|
|
|
/// <summary>
|
|
/// 申诉记录表
|
|
/// </summary>
|
|
public class Appeal
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>订单 ID</summary>
|
|
public int OrderId { get; set; }
|
|
|
|
/// <summary>处理结果</summary>
|
|
[MaxLength(1024)]
|
|
public string Result { get; set; } = string.Empty;
|
|
|
|
/// <summary>处理时间</summary>
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
// 导航属性
|
|
[ForeignKey(nameof(OrderId))]
|
|
public Order? Order { get; set; }
|
|
}
|