From a7d833d6b7729f09bef891b0c8b7bd998ac17abf Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 8 Oct 2022 18:33:22 -0400 Subject: Add bridge table to db; introduce player ids from oauth subject ids --- protocol/Cargo.toml | 1 + protocol/src/lib.rs | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'protocol') diff --git a/protocol/Cargo.toml b/protocol/Cargo.toml index 2836fad..92c0a5e 100644 --- a/protocol/Cargo.toml +++ b/protocol/Cargo.toml @@ -8,3 +8,4 @@ edition = "2021" [dependencies] serde = { version = "1.0.145", features = ["derive"] } serde_json = "1.0.85" +uuid = "1.2.0" diff --git a/protocol/src/lib.rs b/protocol/src/lib.rs index a56554f..4b1bb06 100644 --- a/protocol/src/lib.rs +++ b/protocol/src/lib.rs @@ -1,6 +1,13 @@ use serde::{Deserialize, Serialize}; +use uuid::Uuid; #[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug)] pub struct UserInfo { pub username: String, + pub table: Option, +} + +#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug)] +pub struct Table { + pub id: Uuid, } -- cgit v1.2.3