BotSharp/BotSharp.Core/Conversations/ConversationContext.cs

24 lines
583 B
C#
Raw Normal View History

using EntityFrameworkCore.BootKit;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
2018-05-06 17:41:36 +00:00
namespace BotSharp.Core.Conversations
{
2018-05-06 17:41:36 +00:00
[Table("Bot_ConversationContext")]
public class ConversationContext : DbRecord, IDbRecord
{
[Required]
[StringLength(36)]
2018-05-06 17:41:36 +00:00
public String ConversationId { get; set; }
[Required]
[MaxLength(64)]
public String Context { get; set; }
public int Lifespan { get; set; }
}
}