change db types for better handling

This commit is contained in:
2025-10-23 17:23:52 +02:00
parent 5e8ccc6be1
commit 28c2c6a5d6
3 changed files with 21 additions and 7 deletions
@@ -1,14 +1,16 @@
create extension citext; -- noqa
create table public.meteo_data
(
id serial primary key,
location_name citext not null,
max_temp float not null,
min_temp float not null,
rainfall float not null,
cloudiness float 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 timestamp not null default now()
created_at date not null default now()
);
create index idx_meteo_data_location_name on public.meteo_data (location_name);