2018-03-21 21:07:43 +00:00
|
|
|
|
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-03-21 21:07:43 +00:00
|
|
|
|
{
|
2018-05-06 17:41:36 +00:00
|
|
|
|
[Table("Bot_ConversationContext")]
|
|
|
|
|
|
public class ConversationContext : DbRecord, IDbRecord
|
2018-03-21 21:07:43 +00:00
|
|
|
|
{
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
[StringLength(36)]
|
2018-05-06 17:41:36 +00:00
|
|
|
|
public String ConversationId { get; set; }
|
2018-03-21 21:07:43 +00:00
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
|
[MaxLength(64)]
|
|
|
|
|
|
public String Context { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int Lifespan { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|