Files
Chatbot-ElDia/ChatbotApi/Data/Models/SystemPrompt.cs

26 lines
618 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ChatbotApi.Data.Models
{
[Table("SystemPrompts")]
public class SystemPrompt
{
[Key]
public int Id { get; set; }
[Required]
[MaxLength(100)]
public string Name { get; set; } = string.Empty;
[Required]
public string Content { get; set; } = string.Empty;
public bool IsActive { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
}