Added MariaDB and fanuc tool managing
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CMS_CORE_Application.ToolDatabase
|
||||
{
|
||||
public class ToolModels
|
||||
{
|
||||
[Table("tool")]
|
||||
|
||||
public class ToolModel
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
public int ToolId { get; set; }
|
||||
[Column("broken")]
|
||||
public bool Broken { get; set; }
|
||||
[Column("shank")]
|
||||
public int ShankId { get; set; }
|
||||
[ForeignKey("ShankId")]
|
||||
public ShankModel Shank { get; set; }
|
||||
[Column("family")]
|
||||
public int FamilyId { get; set; }
|
||||
[ForeignKey("FamilyId")]
|
||||
public FamilyModel Family { get; set; }
|
||||
}
|
||||
|
||||
[Table("shank")]
|
||||
public class ShankModel
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
public int ShankId { get; set; }
|
||||
[Column("manina")]
|
||||
public int? ManinaId { get; set; }
|
||||
[ForeignKey("ManinaId")]
|
||||
public FamilyModel Manina { get; set; }
|
||||
[Column("tablet_id")]
|
||||
public int TabletId { get; set; }
|
||||
}
|
||||
|
||||
[Table("family")]
|
||||
public class FamilyModel
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
public int FamilyId { get; set; }
|
||||
[Column("gamma")]
|
||||
public int Gamma { get; set; }
|
||||
}
|
||||
|
||||
[Table("manina")]
|
||||
public class ManinaModello
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
public int IdManina { get; set; }
|
||||
[Column("store")]
|
||||
public int Store { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user