Initial commit

This commit is contained in:
2026-07-03 16:31:37 +07:00
commit 899c7c637d
1939 changed files with 641750 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace RobotNet10.RobotApp.Data;
#nullable disable
[Table("RobotPlcConfig")]
public class RobotPlcConfig
{
[Column("Id", TypeName = "uniqueidentifier")]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Key]
[Required]
public Guid Id { get; set; }
[Column("PLCAddress", TypeName = "nvarchar(64)")]
[MaxLength(50)]
public string PLCAddress { get; set; }
[Column("PLCPort", TypeName = "int")]
public int PLCPort { get; set; }
[Column("PLCUnitId", TypeName = "tinyint")]
public byte PLCUnitId { 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; }
[Column("ConfigName", TypeName = "nvarchar(64)")]
[MaxLength(100)]
public string ConfigName { get; set; }
[Column("Description", TypeName = "ntext")]
[MaxLength(500)]
public string Description { get; set; }
}