Khu vực dành riêng cho giảng viên và nhân viên trực gian hàng (Staff only). Vui lòng nhập mật khẩu bảo vệ để truy cập dữ liệu thời gian thực và cấp quà.
Theo dõi thời gian thực & xác nhận nhận quà gian hàng
experience_day_sessions chưa được khởi tạo trên Supabase. Dữ liệu đang được lưu cục bộ an toàn.
| Thời gian | Học sinh / Biệt danh | Arena | Số câu đúng | Độ chính xác | Điểm P&L | Thời gian còn | Trạng thái nhận quà |
|---|---|---|---|---|---|---|---|
| Đang tải dữ liệu phiên chơi... | |||||||
Chưa ghi nhận câu hỏi sai nào.
Mở Supabase Dashboard → SQL Editor → Dán đoạn mã này và bấm Run:
create table if not exists experience_day_sessions (
id uuid default gen_random_uuid() primary key,
participant_name text not null default 'Anonymous',
arena_id int not null,
arena_title text not null,
score int not null default 0,
pnl numeric not null default 0,
correct_count int not null default 0,
total_questions int not null default 5,
accuracy numeric not null default 0,
best_streak int not null default 0,
time_left_sec int not null default 0,
timed_out boolean not null default false,
is_prize_winner boolean not null default false,
missed_questions jsonb default '[]'::jsonb,
device_type text,
language text default 'vi',
created_at timestamptz default now()
);
alter table experience_day_sessions enable row level security;
create policy "Allow public insert" on experience_day_sessions for insert with check (true);
create policy "Allow public select" on experience_day_sessions for select using (true);