Aggiunge annunci in-app/sito, contatti e migliora UI copertina sul portale.

Include admin/API/banner nativi, form contatti e reset copertina standard con layout edit più ampio.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-20 15:30:49 +02:00
co-authored by Cursor
parent e502844b88
commit 5b723bf844
81 changed files with 2177 additions and 38 deletions
+24 -1
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_08_18_220000) do
ActiveRecord::Schema[7.2].define(version: 2026_08_20_140000) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@@ -51,6 +51,28 @@ ActiveRecord::Schema[7.2].define(version: 2026_08_18_220000) do
t.index ["username"], name: "index_admin_accounts_on_username", unique: true
end
create_table "app_announcements", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "kind", default: "info", null: false
t.string "severity", default: "info", null: false
t.string "status", default: "draft", null: false
t.boolean "show_on_app", default: true, null: false
t.boolean "show_on_web_public", default: false, null: false
t.boolean "show_on_web_private", default: false, null: false
t.string "title", null: false
t.text "body", null: false
t.string "action_url"
t.string "action_label"
t.boolean "dismissible", default: true, null: false
t.datetime "starts_at"
t.datetime "ends_at"
t.uuid "created_by_admin_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["created_by_admin_id"], name: "index_app_announcements_on_created_by_admin_id"
t.index ["status", "starts_at", "ends_at"], name: "index_app_announcements_on_status_and_starts_at_and_ends_at"
t.index ["status"], name: "index_app_announcements_on_status"
end
create_table "billing_club_quotes", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "club_id", null: false
t.string "plan_slug", null: false
@@ -471,6 +493,7 @@ ActiveRecord::Schema[7.2].define(version: 2026_08_18_220000) do
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
add_foreign_key "app_announcements", "admin_accounts", column: "created_by_admin_id"
add_foreign_key "billing_club_quotes", "admin_accounts", column: "created_by_admin_id"
add_foreign_key "billing_club_quotes", "clubs"
add_foreign_key "billing_invoices", "billing_payments"