remove location table
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
create table public.locations
|
||||
(
|
||||
id serial primary key,
|
||||
location_name varchar(255) not null unique
|
||||
);
|
||||
|
||||
|
||||
create table public.meteo_data
|
||||
(
|
||||
id serial primary key,
|
||||
|
||||
location_id int not null references public.locations (id),
|
||||
location_name citext not null,
|
||||
max_temp float not null,
|
||||
min_temp float not null,
|
||||
rainfall float not null,
|
||||
@@ -18,6 +11,8 @@ create table public.meteo_data
|
||||
created_at timestamp not null default now()
|
||||
);
|
||||
|
||||
create index idx_meteo_data_location_name on public.meteo_data (location_name);
|
||||
|
||||
create table public.rejected_data
|
||||
(
|
||||
id serial primary key,
|
||||
|
||||
Reference in New Issue
Block a user