49 lines
1.4 KiB
C#
49 lines
1.4 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace RobotApp.Data;
|
|
|
|
#nullable disable
|
|
|
|
[Table("RobotSimulationConfig")]
|
|
public class RobotSimulationConfig
|
|
{
|
|
[Column("Id", TypeName = "uniqueidentifier")]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
[Key]
|
|
[Required]
|
|
public Guid Id { get; set; }
|
|
|
|
[Column("EnableSimulation", TypeName = "bit")]
|
|
public bool EnableSimulation { get; set; }
|
|
|
|
[Column("SimulationMaxVelocity", TypeName = "float")]
|
|
public double SimulationMaxVelocity { get; set; }
|
|
|
|
[Column("SimulationMaxAngularVelocity", TypeName = "float")]
|
|
public double SimulationMaxAngularVelocity { get; set; }
|
|
|
|
[Column("SimulationAcceleration", TypeName = "float")]
|
|
public double SimulationAcceleration { get; set; }
|
|
|
|
[Column("SimulationDeceleration", TypeName = "float")]
|
|
public double SimulationDeceleration { get; set; }
|
|
|
|
[Column("CreatedAt", TypeName = "datetime2")]
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
[Column("UpdatedAt", TypeName = "datetime2")]
|
|
public DateTime UpdatedAt { get; set; }
|
|
|
|
[Column("IsActive", TypeName = "bit")]
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
[Column("ConfigName", TypeName = "nvarchar(64)")]
|
|
[MaxLength(100)]
|
|
public string ConfigName { get; set; }
|
|
|
|
[Column("Description", TypeName = "ntext")]
|
|
[MaxLength(500)]
|
|
public string Description { get; set; }
|
|
}
|