26 lines
568 B
SQL
26 lines
568 B
SQL
create extension citext; -- noqa
|
|
|
|
create table public.meteo_data
|
|
(
|
|
id serial primary key,
|
|
|
|
location_name citext not null,
|
|
max_temp numeric(5,2) not null,
|
|
min_temp numeric(5,2) not null,
|
|
rainfall numeric(5,2) not null,
|
|
cloudiness int not null,
|
|
|
|
created_at date 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,
|
|
raw_data text not null,
|
|
reason text default null,
|
|
|
|
created_at timestamp not null default now()
|
|
)
|