merge all extra tables back into player for now

This commit is contained in:
Tao Tien 2026-02-11 10:16:21 -08:00
parent 71ad4cada6
commit 9b01f6b96a
16 changed files with 66 additions and 579 deletions

View file

@ -27,34 +27,3 @@ pub struct Wall {
pub tiles: Vec<Tile>,
}
// TODO temp use deprecated RLS instead of view until bevy_spacetimedb supp is better
#[client_visibility_filter]
const HAND_FILTER: Filter = Filter::Sql(
"SELECT h.* FROM hand h
JOIN player p ON h.id = p.hand_id
WHERE p.identity = :sender",
);
#[table(name = hand, public)]
pub struct Hand {
#[primary_key]
#[auto_inc]
pub id: u32,
pub owner: player::PlayerOrBot,
pub sort: bool,
pub tiles: Vec<Tile>,
}
#[table(name = pond, public)]
pub struct Pond {
#[primary_key]
#[auto_inc]
pub id: u32,
pub owner: player::PlayerOrBot,
pub tiles: Vec<Tile>,
}