Quellcode durchsuchen

Create model for a game

Lee Morgan vor 1 Monat
Ursprung
Commit
399d6051c2
2 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
  1. 10 0
      src/models/game.rs
  2. 1 0
      src/models/mod.rs

+ 10 - 0
src/models/game.rs

@@ -0,0 +1,10 @@
+use uuid::Uuid;
+use chrono::{DateTime, Utc};
+
+pub struct Game {
+    pub id: Uuid,
+    pub user_id: Uuid,
+    pub title: String,
+    pub world_context: String,
+    pub createdAt: DateTime<Utc>
+}

+ 1 - 0
src/models/mod.rs

@@ -1,2 +1,3 @@
 pub mod user;
 pub mod purchase;
+pub mod game;