Browse Source

Create model for devices

Lee Morgan 2 months ago
parent
commit
f019764324
2 changed files with 9 additions and 0 deletions
  1. 8 0
      src/models/device.rs
  2. 1 0
      src/models/mod.rs

+ 8 - 0
src/models/device.rs

@@ -0,0 +1,8 @@
+use uuid::Uuid;
+
+pub struct Device {
+    id: Uuid,
+    home_id: Uuid,
+    name: String,
+    description: String
+}

+ 1 - 0
src/models/mod.rs

@@ -1,2 +1,3 @@
 pub mod user;
 pub mod home;
+pub mod device;