瀏覽代碼

Create home model

Lee Morgan 2 月之前
父節點
當前提交
a129570ff1
共有 2 個文件被更改,包括 9 次插入0 次删除
  1. 8 0
      src/models/home.rs
  2. 1 0
      src/models/mod.rs

+ 8 - 0
src/models/home.rs

@@ -0,0 +1,8 @@
+use uuid::Uuid;
+use chrono::{DateTime, Utc};
+
+pub struct Home {
+    pub id: Uuid,
+    pub name: String,
+    pub created_at: DateTime<Utc>
+}

+ 1 - 0
src/models/mod.rs

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