diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-10-08 18:33:22 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-10-08 18:33:22 -0400 |
commit | a7d833d6b7729f09bef891b0c8b7bd998ac17abf (patch) | |
tree | 018bba6c2ff1a58ed5b739939f63a3929d0dc662 /protocol | |
parent | 30102e5da48b53806b33f04041a46bec4c3b2fa3 (diff) |
Add bridge table to db; introduce player ids from oauth subject ids
Diffstat (limited to 'protocol')
-rw-r--r-- | protocol/Cargo.toml | 1 | ||||
-rw-r--r-- | protocol/src/lib.rs | 7 |
2 files changed, 8 insertions, 0 deletions
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<Table>, +} + +#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug)] +pub struct Table { + pub id: Uuid, } |