1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- namespace WCS.Entitys;
- using Microsoft.EntityFrameworkCore;
- using System;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- [Table("wcs_device")]
- public class WcsDevice
- {
- [Key]
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
- public int Id { get; set; }
- [Required]
- [StringLength(20)]
- public string Ip { get; set; }
- [Required]
- [StringLength(20)]
- [Column("protocol_type")]
- public string ProtocolType { get; set; }
- [Required]
- public bool State { get; set; } = true;
- [Required]
- [Column("use_state")]
- public bool UseState { get; set; } = false;
- [StringLength(100)]
- public string? Description { get; set; }
- [Column("disconnect_update_time")]
- public DateTime? DisconnectUpdateTime { get; set; }
- [Column("offline_update_time")]
- public DateTime? OfflineUpdateTime { get; set; }
- [Column("timeout_remind_duration", TypeName = "decimal(5,2)")]
- public decimal? TimeoutRemindDuration { get; set; }
- }
|