add a tile table

This commit is contained in:
Tao Tien 2026-02-12 17:06:28 -08:00
parent 9b01f6b96a
commit a1c72b2c48
14 changed files with 232 additions and 42 deletions

View file

@ -21,9 +21,19 @@ pub struct Lobby {
}
#[table(name = wall)]
pub struct Wall {
pub struct DbWall {
#[primary_key]
pub lobby_id: u32,
pub tiles: Vec<Tile>,
pub tiles: Vec<DbTile>,
}
#[table(name = tile)]
#[derive(Debug)]
pub struct DbTile {
#[primary_key]
#[auto_inc]
pub id: u32,
pub tile: jong_types::Tile,
}