campus-errand/server/Models/SystemConfig.cs
2026-03-01 05:01:47 +08:00

23 lines
515 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.ComponentModel.DataAnnotations;
namespace CampusErrand.Models;
/// <summary>
/// 系统配置表
/// </summary>
public class SystemConfig
{
[Key]
public int Id { get; set; }
/// <summary>配置键</summary>
[MaxLength(64)]
public string Key { get; set; } = string.Empty;
/// <summary>配置值JSON</summary>
public string Value { get; set; } = string.Empty;
/// <summary>更新时间</summary>
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}