diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-07-23 13:48:12 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-07-23 14:01:19 +0200 |
commit | 34487c1b1920c6a52108a7ed7b390d4b08728ff9 (patch) | |
tree | 112890b6ca8a60868c25e6b0ccca80e6d2ee8800 /schema.sql | |
parent | c52ca4b709a8752d870a9123b46cfd3764c608a7 (diff) | |
download | server-34487c1b1920c6a52108a7ed7b390d4b08728ff9.tar.gz |
New join page!
* Remove explicit (and redundant) role=Observer parameter.
* Remove old /play/:id redirects.
* Show "private" badge on game boxes.
* Forbid leave/kick in public games.
* Allow "rewind" by owner in public games.
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -474,6 +474,18 @@ create view game_view as on owner.user_id = games.owner_id ; +drop view if exists game_view_public; +create view game_view_public as + select + * + from + game_view + where + not is_private + and join_count > 0 + and join_count = user_count + ; + drop view if exists player_view; create view player_view as select @@ -502,11 +514,13 @@ create view player_view as 10.0 - (time_used - time_added) end end - ) as time_left + ) as time_left, + atime from games join players using(game_id) join users using(user_id) + left join user_last_seen using(user_id) ; drop view if exists time_control_view; |