diff options
Diffstat (limited to 'src/db')
| -rw-r--r-- | src/db/gametag.rs | 5 | ||||
| -rw-r--r-- | src/db/mod.rs | 4 | ||||
| -rw-r--r-- | src/db/producttag.rs (renamed from src/db/storytag.rs) | 4 | ||||
| -rw-r--r-- | src/db/tooltag.rs | 5 |
4 files changed, 3 insertions, 15 deletions
diff --git a/src/db/gametag.rs b/src/db/gametag.rs deleted file mode 100644 index 335d2a4..0000000 --- a/src/db/gametag.rs +++ /dev/null @@ -1,5 +0,0 @@ -#[derive(Debug, serde::Serialize, sqlx::FromRow)] -pub struct Gametag { - pub gid: i64, - pub tgid: i64, -} diff --git a/src/db/mod.rs b/src/db/mod.rs index 0b310c6..7050527 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -4,13 +4,11 @@ use crate::error::AppError; use async_trait::async_trait; pub mod game; -pub mod gametag; pub mod product; +pub mod producttag; pub mod story; -pub mod storytag; pub mod tag; pub mod tool; -pub mod tooltag; #[async_trait] pub trait ProductDatabaseHandler { diff --git a/src/db/storytag.rs b/src/db/producttag.rs index 0953fc2..b3091c3 100644 --- a/src/db/storytag.rs +++ b/src/db/producttag.rs @@ -1,5 +1,5 @@ #[derive(Debug, serde::Serialize, sqlx::FromRow)] pub struct Storytag { - pub sid: i64, - pub tgid: i64, + pub pid: i64, + pub tid: i64, } diff --git a/src/db/tooltag.rs b/src/db/tooltag.rs deleted file mode 100644 index 393e687..0000000 --- a/src/db/tooltag.rs +++ /dev/null @@ -1,5 +0,0 @@ -#[derive(Debug, serde::Serialize, sqlx::FromRow)] -pub struct Tooltag { - pub tid: i64, - pub tgid: i64, -} |
