add a tile table
This commit is contained in:
parent
9b01f6b96a
commit
a1c72b2c48
14 changed files with 232 additions and 42 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue