25 lines
734 B
C#
25 lines
734 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using PARR.Domain.Entities.RobotEntities;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace PARR.Domain.Entities
|
|
{
|
|
[Table("Robots")]
|
|
[Index(nameof(Name), IsUnique = true)]
|
|
public class Robot
|
|
{
|
|
[Key]
|
|
public int Code { get; set; }
|
|
|
|
public required string Name { get; set; }
|
|
|
|
public required string Description { get; set; }
|
|
|
|
|
|
public ICollection<RobotConfiguration> RobotConfigurations { get; set; } = new HashSet<RobotConfiguration>();
|
|
|
|
public ICollection<RobotConfigurationSnapshot> ConfigurationSnapshots { get; set; } = new HashSet<RobotConfigurationSnapshot>();
|
|
}
|
|
}
|