* Added machine model, and new database relations
* Added first centralized database config and added machine self-registration into db * Fix database migration with new database * Refactor
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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 Step.Model.DatabaseModels
|
||||
{
|
||||
[Table("machine")]
|
||||
public class MachineModel
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
public int MachineId { get; set; }
|
||||
[Column("name")]
|
||||
public string Name { get; set; }
|
||||
[Column("unique_id")]
|
||||
public string UniqueId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user