mirror of
https://github.com/15000rpm/Pole-Mapper.git
synced 2026-10-09 10:45:10 +09:00
upload 기능 구현 전에 일단 커밋
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user