diff --git a/api/model/schemas.py b/api/model/schemas.py index b1560c2..f0c6bfc 100644 --- a/api/model/schemas.py +++ b/api/model/schemas.py @@ -7,7 +7,7 @@ class ExcerptMetadataBase(BaseModel): uf: str cidade: str tema: str - data: datetime.date + data: datetime.datetime class ExcerptMetadataCreate(ExcerptMetadataBase): pass diff --git a/database/create_tables.sql b/database/create_tables.sql index e014869..ae387d3 100644 --- a/database/create_tables.sql +++ b/database/create_tables.sql @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS excerpt_metadata ( uf TEXT, cidade TEXT, tema TEXT, - data DATE, + data TIMESTAMP, PRIMARY KEY(excerpt_id) );