modify event_id as integer on GpsCheckin

This commit is contained in:
2024-11-10 16:32:49 +09:00
parent 0abfd6cdb6
commit 18f3370f29
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ DROP VIEW IF EXISTS v_checkin_summary CASCADE;
-- チェックポイントの集計用ビュー
CREATE VIEW v_checkin_summary AS
SELECT
event_id,
event_code,
zekken_number, -- 文字列として保持
COUNT(*) as total_checkins,
@ -18,7 +19,7 @@ SELECT
FROM
gps_checkins
GROUP BY
event_code, zekken_number;
event_id,event_code, zekken_number;
-- カテゴリー内ランキング計算用ビュー
CREATE VIEW v_category_rankings AS