upload 기능 구현 전에 일단 커밋

This commit is contained in:
2026-08-20 16:00:15 +09:00
commit 2ed3c72b77
24 changed files with 4959 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
-- Pole Mapper Supabase 스키마
-- Supabase 대시보드 > SQL Editor에서 실행
create table if not exists gus (
code text primary key,
name text not null unique,
updated_at timestamptz not null
);
create table if not exists dongs (
gu_name text not null,
dong text not null,
updated_at timestamptz not null,
primary key (gu_name, dong)
);
create index if not exists idx_dongs_gu on dongs(gu_name);
create table if not exists poles (
id text primary key,
lat double precision not null,
lng double precision not null,
gu text not null default '',
dong text not null default '',
timestamp text not null,
level text not null default '',
photo_path text
);
create index if not exists idx_poles_gu_dong on poles(gu, dong);
create index if not exists idx_poles_timestamp on poles(timestamp);