2023-10-05 12:28:31 +10:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
2026-04-30 10:35:31 +10:00
|
|
|
|
namespace PARR.Domain.Entities
|
2023-10-05 12:28:31 +10:00
|
|
|
|
{
|
|
|
|
|
|
[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>();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|