summaryrefslogtreecommitdiff
path: root/src/db/game.rs
blob: e10006cb62da20fb1b2a5020c8fbeb25101ac80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::product::ProductMarker;

#[derive(Debug, serde::Serialize, sqlx::FromRow)]
pub struct Game {
    pub id: i64,
    pub repolink: String,
    pub pid: i64,
}

impl ProductMarker for Game {
    fn product_id(&self) -> i64 {
        self.pid
    }
}