Skip to content

Commit 8bcad79

Browse files
author
Adriano Sanges
committed
Add created_at timestamp column to properties table
- Modify database.py to include a default CURRENT_TIMESTAMP column for tracking property record creation time - Enhance database schema to provide temporal metadata for each property entry
1 parent 6ec01d1 commit 8bcad79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

real-estate-etl/database.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def create_properties_table(con: duckdb.DuckDBPyConnection) -> None:
1414
road VARCHAR,
1515
square_meters BIGINT,
1616
floor BIGINT,
17-
garage_info VARCHAR
17+
garage_info VARCHAR,
18+
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
1819
)
1920
""")
2021

0 commit comments

Comments
 (0)