Completa multi-sport su web, API score_action e controlli Android board-aware.

Allinea i form società/squadra al catalogo sport, espone score_action per basket/timed e corregge bug namespace Sports e Result nel period engine; l'app nativa gestisce overlay e punteggio per board con wizard regole esteso.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-09 21:48:29 +02:00
parent c0ede48091
commit ad9d67ddb6
25 changed files with 513 additions and 116 deletions

10
backend/db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.2].define(version: 2026_06_03_121000) do
ActiveRecord::Schema[7.2].define(version: 2026_06_09_100000) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@@ -147,7 +147,7 @@ ActiveRecord::Schema[7.2].define(version: 2026_06_03_121000) do
t.string "opponent_name", null: false
t.string "location"
t.datetime "scheduled_at"
t.string "sport", default: "volleyball"
t.string "sport_key", default: "pallavolo"
t.integer "sets_to_win", default: 3
t.jsonb "roster_numbers", default: []
t.string "category"
@@ -155,6 +155,8 @@ ActiveRecord::Schema[7.2].define(version: 2026_06_03_121000) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.jsonb "scoring_rules", default: {}, null: false
t.string "opponent_primary_color"
t.string "overlay_kind"
t.index ["team_id"], name: "index_matches_on_team_id"
end
@@ -217,6 +219,8 @@ ActiveRecord::Schema[7.2].define(version: 2026_06_03_121000) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.jsonb "set_partials", default: [], null: false
t.string "board_type", default: "volley", null: false
t.jsonb "data", default: {}, null: false
t.index ["stream_session_id"], name: "index_score_states_on_stream_session_id", unique: true
end
@@ -319,7 +323,7 @@ ActiveRecord::Schema[7.2].define(version: 2026_06_03_121000) do
create_table "teams", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name", null: false
t.string "sport", default: "volleyball"
t.string "sport_key", default: "pallavolo"
t.string "logo_url"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false