BotSharp/Bot.Rasa/Agents/Agent.cs

27 lines
665 B
C#
Raw Normal View History

2017-12-30 20:26:35 +00:00
using Bot.Rasa.Entities;
using Bot.Rasa.Intents;
2017-12-18 05:30:20 +00:00
using EntityFrameworkCore.BootKit;
2017-12-30 20:26:35 +00:00
using Newtonsoft.Json;
2017-12-18 05:30:20 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2017-12-18 13:31:15 +00:00
using System.ComponentModel.DataAnnotations.Schema;
2017-12-18 05:30:20 +00:00
using System.Text;
namespace Bot.Rasa.Agents
{
2017-12-30 20:26:35 +00:00
[Table("Bot_Agent")]
public class Agent : DbRecord, IDbRecord
2017-12-18 05:30:20 +00:00
{
[MaxLength(64)]
public String Name { get; set; }
2017-12-18 13:31:15 +00:00
[ForeignKey("AgentId")]
2017-12-30 20:26:35 +00:00
public List<Intent> Intents { get; set; }
[ForeignKey("AgentId")]
[JsonProperty("entity_types")]
public List<EntityType> EntityTypes { get; set; }
2017-12-18 05:30:20 +00:00
}
}